@charset "UTF-8";
/*
 * UI components based on the design system.
 * Colors / spacing / radius refer to css/design-tokens.css, so load that file first.
 * Class names are new and do not override existing classes.
 */

/* ------------------------------------------------------------
 * Checkbox
 *   <label class="c-form-check">
 *     <input type="checkbox" class="c-form-check__input">
 *     <span class="c-form-check__label">text</span>
 *   </label>
 *   Modifiers on the label: --s (small), --error
 * ------------------------------------------------------------ */
.c-form-check {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  min-height: 44px;
  cursor: pointer;
}

.c-form-check__input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid var(--object-neutral-tertiary);
  border-radius: var(--radius-small);
  background: var(--surface-basic) no-repeat center / 15.75px 10.5px;
  cursor: inherit;
}

.c-form-check__input:checked {
  border-color: var(--object-accent);
  background-color: var(--object-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.7453 10.4954'%3E%3Cpath fill='white' d='M5.89104 10.4952C5.87006 10.4952 5.84904 10.4942 5.82803 10.4932C5.54905 10.4752 5.29004 10.3422 5.11406 10.1242L0.223037 4.08118C-0.124978 3.65221 -0.0579575 3.02219 0.371035 2.67521C0.800027 2.32621 1.43005 2.39222 1.77804 2.82321L5.98404 8.0202L14.053 0.278177C14.4511 -0.103783 15.0851 -0.0907777 15.4671 0.307202C15.8491 0.706187 15.8361 1.33919 15.4381 1.72124L6.58406 10.2172C6.39704 10.3962 6.14904 10.4952 5.89105 10.4952L5.89104 10.4952Z'/%3E%3C/svg%3E");
}

.c-form-check.--error .c-form-check__input {
  border-color: var(--object-error);
}

.c-form-check__input:disabled {
  border-color: var(--object-disabled);
  cursor: default;
}

.c-form-check__input:checked:disabled {
  border-color: transparent;
  background-color: var(--object-disabled);
}

.c-form-check__input:focus-visible {
  outline: 2px solid var(--object-accent);
  outline-offset: 2px;
}

.c-form-check__label {
  flex: 1 1 0;
  min-width: 0;
  padding: var(--spacing-8) 0;
  color: var(--text-neutral-primary);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-form-check.--s {
  gap: var(--spacing-4);
  min-height: 36px;
}

.c-form-check.--s .c-form-check__input {
  width: 20px;
  height: 20px;
  background-size: 13px 8.8px;
}

.c-form-check.--s .c-form-check__input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 8.80009'%3E%3Cpath fill='white' fill-rule='evenodd' clip-rule='evenodd' d='M12.7657 0.234314C13.0781 0.546734 13.0781 1.05327 12.7657 1.36568L5.56571 8.56568C5.40914 8.72224 5.19469 8.80692 4.9734 8.79955C4.75211 8.79218 4.54376 8.69343 4.39796 8.5268L0.197963 3.7268C-0.0929826 3.39429 -0.0592886 2.88888 0.27322 2.59794C0.605729 2.30699 1.11114 2.34069 1.40208 2.67319L5.03899 6.82966L11.6343 0.234314C11.9467 -0.0781048 12.4533 -0.0781048 12.7657 0.234314Z'/%3E%3C/svg%3E");
}

.c-form-check.--s .c-form-check__label {
  padding: var(--spacing-4) 0;
  color: var(--text-neutral-secondary);
  font-size: 12px;
}

/* ------------------------------------------------------------
 * Radio button
 *   <label class="c-form-radio">
 *     <input type="radio" class="c-form-radio__input" name="...">
 *     <span class="c-form-radio__label">text</span>
 *   </label>
 *   Modifier on the label: --error
 * ------------------------------------------------------------ */
.c-form-radio {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
  min-height: 44px;
  cursor: pointer;
}

.c-form-radio__input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid var(--object-neutral-tertiary);
  border-radius: var(--radius-full);
  background: var(--surface-basic);
  cursor: inherit;
}

/* outer ring 0.75px + white gap + inner dot 15px */
.c-form-radio__input:checked {
  border: 0.75px solid var(--object-accent);
  background: var(--object-accent);
  box-shadow: inset 0 0 0 3.75px var(--surface-basic);
}

.c-form-radio.--error .c-form-radio__input {
  border-color: var(--object-error);
}

.c-form-radio__input:disabled {
  border-color: var(--object-disabled);
  cursor: default;
}

.c-form-radio__input:checked:disabled {
  background: var(--object-disabled);
}

.c-form-radio__input:focus-visible {
  outline: 2px solid var(--object-accent);
  outline-offset: 2px;
}

.c-form-radio__label {
  flex: 1 1 0;
  min-width: 0;
  padding: var(--spacing-8) 0;
  color: var(--text-neutral-primary);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
 * Text field (label + hint + input + error / note)
 *   <div class="c-form-field [--error]">
 *     <div class="c-form-field__title">
 *       <div class="c-form-field__label-row">
 *         <label class="c-form-field__label" for="id">label</label>
 *         <span class="c-form-field__tag">required</span>
 *       </div>
 *       <p class="c-form-field__hint">hint</p>
 *     </div>
 *     <div class="c-form-field__body">
 *       <input class="c-form-field__input" id="id">
 *       <p class="c-form-field__error">error</p>
 *       <p class="c-form-field__note">note</p>
 *     </div>
 *   </div>
 * ------------------------------------------------------------ */
.c-form-field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
}

.c-form-field__title,
.c-form-field__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.c-form-field__label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-8);
}

.c-form-field__label {
  color: var(--text-neutral-primary);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-form-field__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--surface-error-strong);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.c-form-field__tag.--optional {
  background: var(--object-neutral-secondary);
}

.c-form-field__hint {
  margin: 0;
  color: var(--text-neutral-secondary);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-form-field__input {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: var(--spacing-8) var(--spacing-12);
  border: 1px solid var(--object-neutral-tertiary);
  border-radius: var(--radius-small);
  background: var(--surface-basic);
  color: var(--text-neutral-primary);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-form-field__input::placeholder {
  color: var(--text-neutral-tertiary);
  opacity: 1;
}

/* the design draws a thicker border; use inset shadow so the text does not move */
.c-form-field.--error .c-form-field__input {
  border-color: var(--object-error);
  box-shadow: inset 0 0 0 1px var(--object-error);
}

.c-form-field__input:focus,
.c-form-field.--error .c-form-field__input:focus {
  outline: none;
  border-color: var(--object-accent);
  box-shadow: inset 0 0 0 3px var(--object-accent);
}

.c-form-field__input:disabled {
  background: var(--surface-disabled);
  color: var(--text-disabled);
}

.c-form-field__error {
  margin: 0;
  color: var(--text-error);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-form-field__note {
  display: flex;
  gap: var(--spacing-4);
  margin: 0;
  color: var(--text-neutral-secondary);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-form-field__note::before {
  content: "\203B";
  flex: none;
}

/* ------------------------------------------------------------
 * Dialog
 *   <dialog class="c-dialog">  (or <div class="c-dialog" role="dialog">)
 *     <div class="c-dialog__body">
 *       <p class="c-dialog__text">text</p>
 *       <div class="c-dialog__actions [--row]">
 *         <button class="c-dialog__secondary">...</button>
 *         <button class="c-dialog__primary">...</button>
 *       </div>
 *     </div>
 *   </dialog>
 *   Vertical layout puts primary first; --row puts secondary on the left.
 * ------------------------------------------------------------ */
.c-dialog {
  box-sizing: border-box;
  width: 342px;
  max-width: calc(100% - var(--spacing-32));
  margin: auto;
  padding: var(--spacing-24);
  border: 0;
  border-radius: var(--radius-medium);
  background: var(--surface-basic);
  color: var(--text-neutral-primary);
}

.c-dialog::backdrop {
  /* fallback for browsers where ::backdrop does not inherit custom properties */
  background: rgba(0, 0, 0, 0.4);
  background: var(--overlay-basic);
}

.c-dialog__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
}

.c-dialog__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-dialog__actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
}

.c-dialog__actions.--row {
  flex-direction: row;
  align-items: center;
}

.c-dialog__actions.--row > * {
  flex: 1 1 0;
  min-width: 0;
}

.c-dialog__primary {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: var(--spacing-8) var(--spacing-24);
  border: 0;
  border-radius: var(--radius-small);
  background: var(--surface-accent-strong);
  color: var(--text-inverse);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.c-dialog__secondary {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-accent);
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

/* ------------------------------------------------------------
 * Icon
 *   <span class="c-icon --search" aria-hidden="true"></span>
 *   <span class="c-icon --search" role="img" aria-label="..."></span>
 *   Size: 24px (default) / 32px (--l). Category icons are 32px.
 *   The shape is a mask, so the color follows the text color (color: ...).
 * ------------------------------------------------------------ */
.c-icon {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  /* common.css resets span color, so inherit the parent color explicitly */
  color: inherit;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: middle;
}

.c-icon.--l {
  width: 32px;
  height: 32px;
}

.c-icon.--add {
  -webkit-mask-image: url(icons/system/add.svg);
  mask-image: url(icons/system/add.svg);
}

.c-icon.--arrow-down {
  -webkit-mask-image: url(icons/system/arrow-down.svg);
  mask-image: url(icons/system/arrow-down.svg);
}

.c-icon.--basket {
  -webkit-mask-image: url(icons/system/basket.svg);
  mask-image: url(icons/system/basket.svg);
}

.c-icon.--beginner {
  -webkit-mask-image: url(icons/system/beginner.svg);
  mask-image: url(icons/system/beginner.svg);
}

.c-icon.--bellmark {
  -webkit-mask-image: url(icons/system/bellmark.svg);
  mask-image: url(icons/system/bellmark.svg);
}

.c-icon.--buy-box {
  -webkit-mask-image: url(icons/system/buy-box.svg);
  mask-image: url(icons/system/buy-box.svg);
}

.c-icon.--cashback {
  -webkit-mask-image: url(icons/system/cashback.svg);
  mask-image: url(icons/system/cashback.svg);
}

.c-icon.--checked {
  -webkit-mask-image: url(icons/system/checked.svg);
  mask-image: url(icons/system/checked.svg);
}

.c-icon.--chevron-down {
  -webkit-mask-image: url(icons/system/chevron-down.svg);
  mask-image: url(icons/system/chevron-down.svg);
}

.c-icon.--chevron-left {
  -webkit-mask-image: url(icons/system/chevron-left.svg);
  mask-image: url(icons/system/chevron-left.svg);
}

.c-icon.--chevron-right {
  -webkit-mask-image: url(icons/system/chevron-right.svg);
  mask-image: url(icons/system/chevron-right.svg);
}

.c-icon.--chevron-up {
  -webkit-mask-image: url(icons/system/chevron-up.svg);
  mask-image: url(icons/system/chevron-up.svg);
}

.c-icon.--close {
  -webkit-mask-image: url(icons/system/close.svg);
  mask-image: url(icons/system/close.svg);
}

.c-icon.--contact {
  -webkit-mask-image: url(icons/system/contact.svg);
  mask-image: url(icons/system/contact.svg);
}

.c-icon.--coupon {
  -webkit-mask-image: url(icons/system/coupon.svg);
  mask-image: url(icons/system/coupon.svg);
}

.c-icon.--date {
  -webkit-mask-image: url(icons/system/date.svg);
  mask-image: url(icons/system/date.svg);
}

.c-icon.--delivery {
  -webkit-mask-image: url(icons/system/delivery.svg);
  mask-image: url(icons/system/delivery.svg);
}

.c-icon.--error {
  -webkit-mask-image: url(icons/system/error.svg);
  mask-image: url(icons/system/error.svg);
}

.c-icon.--external-link {
  -webkit-mask-image: url(icons/system/external-link.svg);
  mask-image: url(icons/system/external-link.svg);
}

.c-icon.--fav {
  -webkit-mask-image: url(icons/system/fav.svg);
  mask-image: url(icons/system/fav.svg);
}

.c-icon.--fav-filled {
  -webkit-mask-image: url(icons/system/fav-filled.svg);
  mask-image: url(icons/system/fav-filled.svg);
}

.c-icon.--frozen {
  -webkit-mask-image: url(icons/system/frozen.svg);
  mask-image: url(icons/system/frozen.svg);
}

.c-icon.--gift-code {
  -webkit-mask-image: url(icons/system/gift-code.svg);
  mask-image: url(icons/system/gift-code.svg);
}

.c-icon.--help {
  -webkit-mask-image: url(icons/system/help.svg);
  mask-image: url(icons/system/help.svg);
}

.c-icon.--information {
  -webkit-mask-image: url(icons/system/information.svg);
  mask-image: url(icons/system/information.svg);
}

.c-icon.--item-search {
  -webkit-mask-image: url(icons/system/item-search.svg);
  mask-image: url(icons/system/item-search.svg);
}

.c-icon.--mail {
  -webkit-mask-image: url(icons/system/mail.svg);
  mask-image: url(icons/system/mail.svg);
}

.c-icon.--menu {
  -webkit-mask-image: url(icons/system/menu.svg);
  mask-image: url(icons/system/menu.svg);
}

.c-icon.--my-account {
  -webkit-mask-image: url(icons/system/my-account.svg);
  mask-image: url(icons/system/my-account.svg);
}

.c-icon.--myset {
  -webkit-mask-image: url(icons/system/myset.svg);
  mask-image: url(icons/system/myset.svg);
}

.c-icon.--order {
  -webkit-mask-image: url(icons/system/order.svg);
  mask-image: url(icons/system/order.svg);
}

.c-icon.--payment {
  -webkit-mask-image: url(icons/system/payment.svg);
  mask-image: url(icons/system/payment.svg);
}

.c-icon.--place {
  -webkit-mask-image: url(icons/system/place.svg);
  mask-image: url(icons/system/place.svg);
}

.c-icon.--point {
  -webkit-mask-image: url(icons/system/point.svg);
  mask-image: url(icons/system/point.svg);
}

.c-icon.--present {
  -webkit-mask-image: url(icons/system/present.svg);
  mask-image: url(icons/system/present.svg);
}

.c-icon.--purchase-history {
  -webkit-mask-image: url(icons/system/purchase-history.svg);
  mask-image: url(icons/system/purchase-history.svg);
}

.c-icon.--recommend {
  -webkit-mask-image: url(icons/system/recommend.svg);
  mask-image: url(icons/system/recommend.svg);
}

.c-icon.--reserve {
  -webkit-mask-image: url(icons/system/reserve.svg);
  mask-image: url(icons/system/reserve.svg);
}

.c-icon.--search {
  -webkit-mask-image: url(icons/system/search.svg);
  mask-image: url(icons/system/search.svg);
}

.c-icon.--setting {
  -webkit-mask-image: url(icons/system/setting.svg);
  mask-image: url(icons/system/setting.svg);
}

.c-icon.--star {
  -webkit-mask-image: url(icons/system/star.svg);
  mask-image: url(icons/system/star.svg);
}

.c-icon.--star-half {
  -webkit-mask-image: url(icons/system/star-half.svg);
  mask-image: url(icons/system/star-half.svg);
}

.c-icon.--subtract {
  -webkit-mask-image: url(icons/system/subtract.svg);
  mask-image: url(icons/system/subtract.svg);
}

.c-icon.--time-limit {
  -webkit-mask-image: url(icons/system/time-limit.svg);
  mask-image: url(icons/system/time-limit.svg);
}

.c-icon.--vip {
  -webkit-mask-image: url(icons/system/vip.svg);
  mask-image: url(icons/system/vip.svg);
}

.c-icon.--category-alcohol {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/alcohol.svg);
  mask-image: url(icons/category/alcohol.svg);
}

.c-icon.--category-babyfood {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/babyfood.svg);
  mask-image: url(icons/category/babyfood.svg);
}

.c-icon.--category-bread {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/bread.svg);
  mask-image: url(icons/category/bread.svg);
}

.c-icon.--category-can {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/can.svg);
  mask-image: url(icons/category/can.svg);
}

.c-icon.--category-drink {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/drink.svg);
  mask-image: url(icons/category/drink.svg);
}

.c-icon.--category-fish {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/fish.svg);
  mask-image: url(icons/category/fish.svg);
}

.c-icon.--category-flour {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/flour.svg);
  mask-image: url(icons/category/flour.svg);
}

.c-icon.--category-frozen {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/frozen.svg);
  mask-image: url(icons/category/frozen.svg);
}

.c-icon.--category-fruit {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/fruit.svg);
  mask-image: url(icons/category/fruit.svg);
}

.c-icon.--category-greencheck {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/greencheck.svg);
  mask-image: url(icons/category/greencheck.svg);
}

.c-icon.--category-health-support {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/health-support.svg);
  mask-image: url(icons/category/health-support.svg);
}

.c-icon.--category-items {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/items.svg);
  mask-image: url(icons/category/items.svg);
}

.c-icon.--category-kit {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/kit.svg);
  mask-image: url(icons/category/kit.svg);
}

.c-icon.--category-meat {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/meat.svg);
  mask-image: url(icons/category/meat.svg);
}

.c-icon.--category-milk {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/milk.svg);
  mask-image: url(icons/category/milk.svg);
}

.c-icon.--category-pasta {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/pasta.svg);
  mask-image: url(icons/category/pasta.svg);
}

.c-icon.--category-rice {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/rice.svg);
  mask-image: url(icons/category/rice.svg);
}

.c-icon.--category-seasoning {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/seasoning.svg);
  mask-image: url(icons/category/seasoning.svg);
}

.c-icon.--category-sweets {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/sweets.svg);
  mask-image: url(icons/category/sweets.svg);
}

.c-icon.--category-tofu {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/tofu.svg);
  mask-image: url(icons/category/tofu.svg);
}

.c-icon.--category-vegetable {
  width: 32px;
  height: 32px;
  -webkit-mask-image: url(icons/category/vegetable.svg);
  mask-image: url(icons/category/vegetable.svg);
}

/* ------------------------------------------------------------
 * Heading
 *   <h2 class="c-heading --h2">text</h2>
 *   Size modifiers: --h1 (28px) / --h2 (24px) / --h3 (20px, default) / --h4 (16px).
 *   The size does not depend on the tag, so choose the tag by document outline.
 * ------------------------------------------------------------ */
.c-heading {
  margin: 0;
  color: var(--text-neutral-primary);
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.c-heading.--h1 {
  font-size: 28px;
}

.c-heading.--h2 {
  font-size: 24px;
}

.c-heading.--h3 {
  font-size: 20px;
}

.c-heading.--h4 {
  font-size: 16px;
}

/* ------------------------------------------------------------
 * Pagination
 *   <nav class="c-pagination" aria-label="...">
 *     <a class="c-pagination__arrow" href="..." aria-label="..."><span class="c-icon --chevron-left" aria-hidden="true"></span></a>
 *     <ul class="c-pagination__list">
 *       <li><a class="c-pagination__page" href="...">1</a></li>
 *       <li><span class="c-pagination__page" aria-current="page">2</span></li>
 *     </ul>
 *     <span class="c-pagination__arrow --disabled" aria-disabled="true"><span class="c-icon --chevron-right" aria-hidden="true"></span></span>
 *   </nav>
 *   Show at most 5 page numbers.
 * ------------------------------------------------------------ */
.c-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.c-pagination__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-16);
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-pagination__arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  border: 1px solid var(--object-accent);
  border-radius: var(--radius-small);
  background: var(--surface-basic);
  color: var(--object-accent);
}

/* PC common.css colors a:link / a:visited / a:hover, so repeat the color for link states */
.c-pagination__arrow:link,
.c-pagination__arrow:visited,
.c-pagination__arrow:hover,
.c-pagination__arrow:active {
  color: var(--object-accent);
}

.c-pagination__arrow.--disabled {
  border-color: transparent;
  background: var(--surface-disabled);
  color: var(--object-disabled);
}

.c-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  color: var(--text-accent);
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: underline;
}

.c-pagination__page:link,
.c-pagination__page:visited,
.c-pagination__page:hover,
.c-pagination__page:active {
  color: var(--text-accent);
  text-decoration: underline;
}

.c-pagination__page[aria-current="page"] {
  color: var(--text-neutral-primary);
  text-decoration: none;
}

/* ------------------------------------------------------------
 * Loading spinner
 *   <span class="c-loading-spinner" role="status" aria-label="..."></span>
 *   8 gray dots in a 48px circle; one accent dot moves around it.
 * ------------------------------------------------------------ */
.c-loading-spinner {
  display: inline-block;
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  vertical-align: middle;
}

/* gray dots: one 8px dot at the center, copied to the 8 positions with box-shadow */
.c-loading-spinner::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  box-shadow:
    0 -20px 0 0 var(--object-neutral-quaternary),
    14.142px -14.142px 0 0 var(--object-neutral-quaternary),
    20px 0 0 0 var(--object-neutral-quaternary),
    14.142px 14.142px 0 0 var(--object-neutral-quaternary),
    0 20px 0 0 var(--object-neutral-quaternary),
    -14.142px 14.142px 0 0 var(--object-neutral-quaternary),
    -20px 0 0 0 var(--object-neutral-quaternary),
    -14.142px -14.142px 0 0 var(--object-neutral-quaternary);
}

/* accent dot: starts at the top and jumps to the next position clockwise */
.c-loading-spinner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--object-accent);
  transform-origin: 4px 24px;
  animation: c-loading-spinner-step 3s steps(8) infinite;
}

@keyframes c-loading-spinner-step {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-loading-spinner::after {
    animation-duration: 6s;
  }
}

/* ------------------------------------------------------------
 * Toast
 *   <div class="c-toast-region" role="status" aria-live="polite">
 *     <div class="c-toast">
 *       <p class="c-toast__text">message</p>
 *       <button type="button" class="c-toast__close" aria-label="..."><span class="c-icon --close" aria-hidden="true"></span></button>
 *     </div>
 *   </div>
 *   Keep the region in the page; to show a toast, put the text in and add --show
 *   to .c-toast (JS), so screen readers announce it.
 *   The region is fixed to the bottom; set --c-toast-bottom to clear a fixed bar.
 * ------------------------------------------------------------ */
.c-toast-region {
  position: fixed;
  right: 0;
  bottom: var(--c-toast-bottom, var(--spacing-16));
  left: 0;
  /* above the fixed bars and modals of the site (same layer as the existing toast) */
  z-index: 30000;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 var(--spacing-16);
  pointer-events: none;
}

.c-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-16);
  box-sizing: border-box;
  width: fit-content;
  min-width: 264px;
  max-width: min(400px, 100%);
  padding: var(--spacing-12) var(--spacing-12) var(--spacing-12) var(--spacing-16);
  border-radius: var(--radius-small);
  background: var(--surface-neutral-strong);
  /* shadow level 2 of the design (no token yet) */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity 300ms ease-in, visibility 300ms ease-in;
}

.c-toast.--show {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease-out, visibility 300ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .c-toast,
  .c-toast.--show {
    transition: none;
  }
}

.c-toast__text {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: var(--text-inverse);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: pre-line;
}

.c-toast__close:focus-visible {
  outline: 2px solid var(--object-inverse);
  outline-offset: 2px;
}

.c-toast__close {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--object-inverse);
  cursor: pointer;
}

/* ------------------------------------------------------------
 * Tag (product attributes)
 *   <ul class="c-tag-list"><li class="c-tag">text</li></ul>
 *   or a single <span class="c-tag">text</span>
 * ------------------------------------------------------------ */
.c-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 22px;
  padding: 2px 6px;
  border: 1px solid var(--object-neutral-quaternary);
  border-radius: var(--radius-small);
  background: var(--surface-basic);
  color: var(--text-neutral-primary);
  font-size: 12px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ------------------------------------------------------------
 * Badge (unread dot)
 *   <span class="c-badge-anchor">
 *     <span class="c-icon --bellmark" aria-hidden="true"></span>
 *     <span class="c-badge"></span>
 *   </span>
 *   The dot sits on the top-right corner of the anchor (the icon area).
 *   Add text for screen readers to the link itself (e.g. "unread").
 * ------------------------------------------------------------ */
.c-badge-anchor {
  display: inline-flex;
  position: relative;
  vertical-align: middle;
}

.c-badge {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--object-hot);
}

.c-badge-anchor > .c-badge {
  position: absolute;
  top: 0;
  right: 0;
}

/* ------------------------------------------------------------
 * Pop-up
 *   <dialog class="c-popup [--two-buttons]" aria-labelledby="id">
 *     <div class="c-popup__head [--no-title]">
 *       <h2 class="c-popup__title" id="id">title</h2>
 *       <button type="button" class="c-popup__close" aria-label="..."><span class="c-icon --close" aria-hidden="true"></span></button>
 *     </div>
 *     <div class="c-popup__body">
 *       <img class="c-popup__image" src="..." alt="...">
 *       <p class="c-popup__text">text</p>
 *     </div>
 *     <div class="c-popup__actions">
 *       <a class="c-popup__primary" href="...">...</a>
 *       <button type="button" class="c-popup__secondary">...</button>
 *     </div>
 *   </dialog>
 *   Width 350px, centered. The body scrolls when it is taller than the limit.
 * ------------------------------------------------------------ */
.c-popup {
  box-sizing: border-box;
  width: 350px;
  max-width: calc(100% - var(--spacing-32));
  /* keep the buttons on screen on short viewports; the body shrinks and scrolls */
  max-height: calc(100vh - var(--spacing-32));
  max-height: calc(100dvh - var(--spacing-32));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-medium);
  background: var(--surface-basic);
  color: var(--text-neutral-primary);
}

/* flex only while shown, so a closed <dialog> stays hidden */
.c-popup[open],
.c-popup:not(dialog) {
  display: flex;
  flex-direction: column;
}

.c-popup::backdrop {
  /* fallback for browsers where ::backdrop does not inherit custom properties */
  background: rgba(0, 0, 0, 0.4);
  background: var(--overlay-basic);
}

.c-popup__head {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--spacing-20);
  box-sizing: border-box;
  height: 56px;
  padding: 0 var(--spacing-16);
  border-bottom: 1px solid var(--border-basic);
}

.c-popup__head.--no-title {
  justify-content: flex-end;
  border-bottom: 0;
}

.c-popup__title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  color: var(--text-neutral-primary);
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.c-popup__close {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--object-neutral-primary);
  cursor: pointer;
}

.c-popup__body {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 396px;
  overflow-y: auto;
}

.c-popup.--two-buttons .c-popup__body {
  max-height: 340px;
}

.c-popup__image {
  display: block;
  width: 100%;
  height: auto;
}

.c-popup__text {
  margin: 0;
  padding: var(--spacing-16) var(--spacing-24) 0;
  color: var(--text-neutral-primary);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-popup__actions {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: var(--spacing-12);
  padding: var(--spacing-24);
}

/* less space above the buttons when the body ends with text */
.c-popup__body:has(> .c-popup__text:last-child) + .c-popup__actions {
  padding-top: var(--spacing-16);
}

.c-popup__primary,
.c-popup__secondary {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: var(--spacing-8) var(--spacing-16);
  border-radius: var(--radius-small);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.c-popup__close:focus-visible,
.c-popup__primary:focus-visible,
.c-popup__secondary:focus-visible {
  outline: 2px solid var(--object-accent);
  outline-offset: 2px;
}

/* PC common.css colors a:link / a:visited / a:hover, so repeat the color for link states */
.c-popup__primary,
.c-popup__primary:link,
.c-popup__primary:visited,
.c-popup__primary:hover,
.c-popup__primary:active {
  border: 0;
  background: var(--surface-accent-strong);
  color: var(--text-inverse);
  text-decoration: none;
}

.c-popup__secondary,
.c-popup__secondary:link,
.c-popup__secondary:visited,
.c-popup__secondary:hover,
.c-popup__secondary:active {
  border: 1px solid var(--object-accent);
  background: var(--surface-basic);
  color: var(--text-accent);
  text-decoration: none;
}

/* ------------------------------------------------------------
 * Button
 *   <button type="button" class="c-button --primary">label</button>
 *   <a class="c-button --secondary" href="...">label</a>
 *   Types: --primary / --secondary / --tertiary / --destructive / --reservation
 *   Size: 48px (default) / 36px (--s). Full width: --full.
 *   Disabled: disabled attribute, aria-disabled="true" or --disabled.
 *   Optional leading icon: <span class="c-icon --add" aria-hidden="true"></span>
 * ------------------------------------------------------------ */
.c-button {
  --c-button-bg: var(--surface-accent-strong);
  --c-button-border: transparent;
  --c-button-color: var(--text-inverse);
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-4);
  box-sizing: border-box;
  height: 48px;
  margin: 0;
  padding: var(--spacing-8) var(--spacing-16);
  border: 1px solid var(--c-button-border);
  border-radius: var(--radius-small);
  background: var(--c-button-bg);
  color: var(--c-button-color);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
}

/* PC common.css colors a:link / a:visited / a:hover, so repeat the color for link states */
.c-button:link,
.c-button:visited,
.c-button:hover,
.c-button:active {
  color: var(--c-button-color);
  text-decoration: none;
}

.c-button.--secondary {
  --c-button-bg: var(--surface-basic);
  --c-button-border: var(--object-accent);
  --c-button-color: var(--text-accent);
}

.c-button.--tertiary {
  --c-button-bg: var(--surface-basic);
  --c-button-border: var(--object-neutral-tertiary);
  --c-button-color: var(--text-neutral-secondary);
}

.c-button.--destructive {
  --c-button-bg: var(--surface-error-strong);
}

.c-button.--reservation {
  --c-button-bg: var(--service-reservation);
}

.c-button.--s {
  height: 36px;
}

.c-button.--full {
  display: flex;
  width: 100%;
}

@media (hover: hover) {
  .c-button:hover {
    opacity: 0.6;
  }
}

.c-button:disabled,
.c-button[aria-disabled="true"],
.c-button.--disabled {
  --c-button-bg: var(--surface-disabled);
  --c-button-border: transparent;
  --c-button-color: var(--text-disabled);
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

/* ------------------------------------------------------------
 * Text button
 *   <a class="c-text-button" href="...">label<span class="c-icon --chevron-right" aria-hidden="true"></span></a>
 *   Size: 16px (default) / 14px (--m) / 12px (--s). Always underlined.
 *   A leading icon goes before the label; only the chevron goes after it.
 * ------------------------------------------------------------ */
.c-text-button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-4);
  box-sizing: border-box;
  height: 36px;
  margin: 0;
  padding: 0 var(--spacing-12);
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  color: var(--text-accent);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: underline;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
}

.c-text-button:link,
.c-text-button:visited,
.c-text-button:hover,
.c-text-button:active {
  color: var(--text-accent);
  text-decoration: underline;
}

.c-text-button .c-icon.--chevron-right {
  width: 22px;
  height: 22px;
}

.c-text-button.--m {
  gap: 2px;
  font-size: 14px;
}

.c-text-button.--m .c-icon.--chevron-right {
  width: 20px;
  height: 20px;
}

.c-text-button.--s {
  gap: 2px;
  font-size: 12px;
}

.c-text-button.--s .c-icon {
  width: 20px;
  height: 20px;
}

.c-text-button.--s .c-icon.--chevron-right {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .c-text-button:hover {
    opacity: 0.6;
  }
}

.c-text-button:disabled,
.c-text-button[aria-disabled="true"],
.c-text-button.--disabled {
  color: var(--text-disabled);
  opacity: 1;
  cursor: default;
  pointer-events: none;
}

/* ------------------------------------------------------------
 * Star rating
 *   <span class="c-star-rating [--high]" role="img" aria-label="...">
 *     <span class="c-star-rating__stars" aria-hidden="true">
 *       <span class="c-star-rating__star --full"></span> x5 (--full / --half / empty)
 *     </span>
 *     <span class="c-star-rating__score" aria-hidden="true">3.5</span>
 *     <span class="c-star-rating__count" aria-hidden="true">(count)</span>
 *   </span>
 *   Stars are yellow below 4.0 and red (--high) from 4.0. Round the average
 *   down to 0.5 steps when choosing full / half stars.
 * ------------------------------------------------------------ */
.c-star-rating {
  /* the rating yellow is a one-off color of the design (no token) */
  --c-star-rating-color: #eca224;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-4);
  vertical-align: middle;
}

.c-star-rating.--high {
  --c-star-rating-color: var(--object-hot);
}

.c-star-rating__stars {
  display: flex;
}

.c-star-rating__star {
  display: block;
  width: 16px;
  height: 16px;
  background: var(--object-neutral-quaternary);
  -webkit-mask: url(icons/rating/star.svg) no-repeat center / contain;
  mask: url(icons/rating/star.svg) no-repeat center / contain;
}

.c-star-rating__star.--full {
  background: var(--c-star-rating-color);
}

.c-star-rating__star.--half {
  background: linear-gradient(90deg, var(--c-star-rating-color) 50%, var(--object-neutral-quaternary) 50%);
}

.c-star-rating__score,
.c-star-rating__count {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-star-rating__score {
  color: var(--text-neutral-primary);
  font-weight: bold;
}

.c-star-rating__count {
  color: var(--text-neutral-secondary);
}

/* ------------------------------------------------------------
 * Chip
 *   <div class="c-chip-list [--scroll]">
 *     <button type="button" class="c-chip" aria-pressed="false">label</button>
 *     <button type="button" class="c-chip" aria-pressed="true">label<span class="c-icon --checked" aria-hidden="true"></span></button>
 *   </div>
 *   Selected: aria-pressed="true" (or --selected). Disabled: disabled attribute.
 * ------------------------------------------------------------ */
.c-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-8);
}

.c-chip-list.--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.c-chip {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-4);
  box-sizing: border-box;
  height: 36px;
  margin: 0;
  padding: 0 var(--spacing-16);
  overflow: hidden;
  border: 1px solid var(--object-neutral-tertiary);
  border-radius: var(--radius-full);
  background: var(--surface-basic);
  color: var(--text-neutral-primary);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.5;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
}

.c-chip[aria-pressed="true"],
.c-chip.--selected {
  border-color: var(--object-accent);
  background: var(--surface-accent-subtle);
  color: var(--text-accent);
  font-weight: bold;
}

.c-chip .c-icon {
  width: 18px;
  height: 18px;
}

.c-chip:disabled,
.c-chip.--disabled {
  border-color: transparent;
  background: var(--surface-disabled);
  color: var(--text-disabled);
  font-weight: normal;
  cursor: default;
  pointer-events: none;
}

/* ------------------------------------------------------------
 * Tab
 *   Switching panels on the page:
 *   <div class="c-tab-list [--l]" role="tablist">
 *     <button type="button" class="c-tab" role="tab" aria-selected="true" aria-controls="panel-id">label</button>
 *   </div>
 *   (needs role="tabpanel" panels and arrow-key moving between tabs)
 *   Moving to other pages: <nav class="c-tab-list"> with <a class="c-tab" aria-current="page"> (no roles).
 *   Height 48px (SP / app) or 60px (--l, PC). Tabs share the width equally.
 * ------------------------------------------------------------ */
.c-tab-list {
  display: flex;
  gap: var(--spacing-4);
  height: 48px;
}

.c-tab-list.--l {
  height: 60px;
}

.c-tab {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  position: relative;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: var(--spacing-4) var(--spacing-8) 0;
  border: 0;
  background: var(--surface-neutral);
  color: var(--text-neutral-primary);
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.c-tab:link,
.c-tab:visited,
.c-tab:hover,
.c-tab:active {
  color: var(--text-neutral-primary);
  text-decoration: none;
}

.c-tab[aria-selected="true"],
.c-tab[aria-current="page"],
.c-tab.--selected {
  background: var(--surface-basic);
  font-weight: bold;
}

.c-tab[aria-selected="true"]::before,
.c-tab[aria-current="page"]::before,
.c-tab.--selected::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--object-accent);
}

/* ------------------------------------------------------------
 * Tooltip
 *   <div class="c-tooltip --bottom" role="tooltip">
 *     <p class="c-tooltip__text">text</p>
 *     <button type="button" class="c-tooltip__close" aria-label="..."><span class="c-icon --close" aria-hidden="true"></span></button>
 *   </div>
 *   Placement relative to the target (the arrow points at it):
 *   --bottom (below the target, default) / --top / --left / --right.
 *   Positioning next to the target is done by the page.
 * ------------------------------------------------------------ */
.c-tooltip {
  display: flex;
  position: relative;
  align-items: flex-start;
  gap: var(--spacing-8);
  box-sizing: border-box;
  width: fit-content;
  padding: var(--spacing-16);
  border-radius: var(--radius-small);
  background: var(--surface-neutral-strong);
  /* drop-shadow so the arrow gets the shadow too */
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.16));
}

.c-tooltip::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--surface-neutral-strong);
  transform: rotate(45deg);
}

.c-tooltip.--bottom::after,
.c-tooltip:not(.--top):not(.--left):not(.--right)::after {
  top: -6px;
  left: calc(50% - 6px);
}

.c-tooltip.--top::after {
  bottom: -6px;
  left: calc(50% - 6px);
}

.c-tooltip.--right::after {
  top: calc(50% - 6px);
  left: -6px;
}

.c-tooltip.--left::after {
  top: calc(50% - 6px);
  right: -6px;
}

.c-tooltip__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-tooltip__close {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--object-inverse);
  cursor: pointer;
}

/* ------------------------------------------------------------
 * Page indicator (display only)
 *   <div class="c-page-indicator" role="img" aria-label="...">
 *     <span class="c-page-indicator__dot --current"></span>
 *     <span class="c-page-indicator__dot"></span>
 *   </div>
 * ------------------------------------------------------------ */
.c-page-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
}

.c-page-indicator__dot {
  display: block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--object-neutral-quaternary);
}

.c-page-indicator__dot.--current {
  background: var(--object-accent);
}

/* ------------------------------------------------------------
 * Bottom sheet
 *   <dialog class="c-bottom-sheet [--scroll]" aria-labelledby="id">
 *     <div class="c-bottom-sheet__head">
 *       <h2 class="c-bottom-sheet__title" id="id">title</h2>
 *       <button type="button" class="c-bottom-sheet__close" aria-label="..."><span class="c-icon --close" aria-hidden="true"></span></button>
 *     </div>
 *     <div class="c-bottom-sheet__body">...</div>
 *     <div class="c-bottom-sheet__actions">
 *       <button type="button" class="c-button --secondary">...</button>
 *       <button type="button" class="c-button --primary">...</button>
 *     </div>
 *   </dialog>
 *   Height follows the content, up to the screen height minus 56px (then the body
 *   scrolls). --scroll: always that tall, with a fade above the buttons.
 *   Two long buttons: <div class="c-bottom-sheet__actions --column">.
 *   The backdrop does not close the sheet (do not add a click handler for it).
 * ------------------------------------------------------------ */
.c-bottom-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  /* up to the screen height minus 56px; the body scrolls when the content is longer */
  max-height: calc(100% - 56px);
  margin: auto 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-medium) var(--radius-medium) 0 0;
  background: var(--surface-basic);
  color: var(--text-neutral-primary);
}

/* flex only while shown, so a closed <dialog> stays hidden */
.c-bottom-sheet[open] {
  display: flex;
  flex-direction: column;
}

.c-bottom-sheet::backdrop {
  /* fallback for browsers where ::backdrop does not inherit custom properties */
  background: rgba(0, 0, 0, 0.4);
  background: var(--overlay-basic);
}

.c-bottom-sheet__head {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--spacing-20);
  box-sizing: border-box;
  height: 56px;
  padding: 0 var(--spacing-16);
  border-bottom: 1px solid var(--border-basic);
}

.c-bottom-sheet__title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text-neutral-primary);
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 24px icon with a 44px tap area */
.c-bottom-sheet__close {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--object-neutral-primary);
  cursor: pointer;
}

.c-bottom-sheet__close:focus-visible {
  outline: 2px solid var(--object-accent);
  outline-offset: -6px;
}

.c-bottom-sheet__body {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--spacing-16) var(--spacing-16) var(--spacing-24);
}

.c-bottom-sheet__actions {
  display: flex;
  position: relative;
  flex: none;
  gap: var(--spacing-12);
  padding: 0 var(--spacing-24) var(--spacing-32);
  /* translucent white of the design (one-off value, no token) */
  background: rgba(255, 255, 255, 0.75);
}

.c-bottom-sheet__actions > * {
  flex: 1 1 0;
  min-width: 0;
}

.c-bottom-sheet__actions.--column {
  flex-direction: column;
}

.c-bottom-sheet__actions.--column > * {
  flex: none;
}

/* --scroll: always as tall as allowed; the end of the body fades under the buttons */
.c-bottom-sheet.--scroll {
  height: calc(100% - 56px);
}

.c-bottom-sheet.--scroll .c-bottom-sheet__body {
  flex: 1 1 auto;
  /* room for the fade so the last line can scroll above it */
  padding: var(--spacing-16) var(--spacing-16) 80px;
}

.c-bottom-sheet.--scroll .c-bottom-sheet__actions::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 80px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
  pointer-events: none;
}

/* ------------------------------------------------------------
 * List
 *   <ul class="c-list">
 *     <li class="c-list__item">
 *       <a class="c-list__row" href="...">
 *         <span class="c-list__body">
 *           <span class="c-list__label">text</span>
 *           <span class="c-list__description">text</span>
 *         </span>
 *         <span class="c-icon --chevron-right c-list__chevron" aria-hidden="true"></span>
 *       </a>
 *     </li>
 *   </ul>
 *   Row height follows the content (min 56px). Vertical padding 16px;
 *   with a leading icon (.c-list__icon) use --with-icon (12px, bold label).
 *   Accordion: <li><details class="c-list__item"><summary class="c-list__row --with-icon">...</summary>
 *   <ul class="c-list --child">...</ul></details></li>
 * ------------------------------------------------------------ */
.c-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-list__item {
  display: block;
  border-bottom: 1px solid var(--border-basic);
}

.c-list__row {
  display: flex;
  align-items: center;
  gap: var(--spacing-16);
  box-sizing: border-box;
  min-height: 56px;
  padding: var(--spacing-16) 0;
  color: var(--text-neutral-primary);
  text-decoration: none;
}

/* PC common.css colors a:link / a:visited / a:hover, so repeat the color for link states */
.c-list__row:link,
.c-list__row:visited,
.c-list__row:hover,
.c-list__row:active {
  color: var(--text-neutral-primary);
  text-decoration: none;
}

summary.c-list__row {
  cursor: pointer;
  list-style: none;
}

summary.c-list__row::-webkit-details-marker {
  display: none;
}

.c-list__row.--with-icon {
  gap: var(--spacing-12);
  padding: var(--spacing-12) 0;
}

.c-list__row.--with-icon .c-list__label {
  font-weight: bold;
}

.c-list__icon {
  flex: none;
  color: var(--object-neutral-primary);
}

.c-list__body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--spacing-8);
  min-width: 0;
}

.c-list__label {
  color: var(--text-neutral-primary);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-list__label.--bold {
  font-weight: bold;
}

.c-list__description {
  color: var(--text-neutral-secondary);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-list__value {
  flex: none;
  color: var(--text-neutral-primary);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: right;
}

.c-list__chevron {
  color: var(--object-neutral-tertiary);
}

details[open] > .c-list__row .c-list__chevron.--chevron-down {
  transform: rotate(180deg);
}

/* rows under an accordion are indented by the leading icon width + gap */
.c-list.--child {
  border-top: 1px solid var(--border-basic);
}

.c-list.--child .c-list__row {
  padding-left: 48px;
}

.c-list.--child .c-list__item:last-child {
  border-bottom: 0;
}

.c-list__link {
  flex: none;
  color: var(--text-accent);
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: underline;
}

.c-list__link:link,
.c-list__link:visited,
.c-list__link:hover,
.c-list__link:active {
  color: var(--text-accent);
  text-decoration: underline;
}

/* ------------------------------------------------------------
 * On-boarding banner
 *   <div class="c-onboarding-banner">
 *     <div class="c-onboarding-banner__body">
 *       <p class="c-onboarding-banner__title">title</p>
 *       <p class="c-onboarding-banner__text">text</p>
 *       <a class="c-onboarding-banner__link" href="...">link</a>
 *     </div>
 *     <button type="button" class="c-onboarding-banner__close" aria-label="..."><span class="c-icon --close" aria-hidden="true"></span></button>
 *   </div>
 *   Without a title the text is 13px bold. Hiding it after the close button must
 *   persist across page loads (handled by the page script).
 * ------------------------------------------------------------ */
.c-onboarding-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-8);
  box-sizing: border-box;
  padding: var(--spacing-16);
  border-radius: var(--radius-medium);
  background: var(--surface-accent-subtle);
  color: var(--text-neutral-primary);
}

.c-onboarding-banner__body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--spacing-4);
  min-width: 0;
}

.c-onboarding-banner__title {
  margin: 0;
  color: var(--text-neutral-primary);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-onboarding-banner__text {
  margin: 0;
  color: var(--text-neutral-primary);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.c-onboarding-banner__text:first-child {
  font-size: 13px;
  font-weight: bold;
}

.c-onboarding-banner__link,
.c-onboarding-banner__link:link,
.c-onboarding-banner__link:visited,
.c-onboarding-banner__link:hover,
.c-onboarding-banner__link:active {
  align-self: flex-end;
  color: var(--text-neutral-primary);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-decoration: underline;
}

.c-onboarding-banner__close {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--object-neutral-primary);
  cursor: pointer;
}
