/* ==========================================================================
   Section: Checkout Content
   rem = figma_px / 16  |  NO gap, NO aspect-ratio, NO px (except 1px borders)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.section-checkout-content {
  max-width: 87.5rem;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 2.5625rem;
  /* ~41px to match Figma section height */
}

.section-checkout-content__container {
}

/* H1 Title */
.section-checkout-content__title {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 2.5rem;
  /* 40px */
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: #424242;
  margin-bottom: 1.5rem;
  /* 24px */
}

.section-checkout-content__title strong {
  color: var(--Color-Brand-Primary, #09b8b3);
}

/* Two-column flex layout */
.section-checkout-content__layout {
  display: flex;
  align-items: flex-start;
}

.section-checkout-content__left {
  width: 53.5rem;
  /* 856px */
  flex-shrink: 0;
}

.section-checkout-content__right {
  width: 32.5rem;
  /* 520px */
  flex-shrink: 0;
  margin-left: 1.5rem;
  /* 24px gap between columns */
  position: sticky;
  top: 6rem;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Cards — shared white card style
   -------------------------------------------------------------------------- */
.checkout-card {
  background: #ffffff;
  border-radius: 1.25rem;
  /* 20px */
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  /* 24px */
}

.section-checkout-content__left .checkout-card + .checkout-card {
  margin-top: 1.5rem;
}

.section-checkout-content__right .checkout-card + .checkout-card {
  margin-top: 1rem;
}

.checkout-card__title {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1.25rem;
  /* 20px */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.0101rem;
  color: #424242;
  margin-bottom: 1.375rem;
  /* 22px */
}

#block-payment {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Form Fields
   -------------------------------------------------------------------------- */
.checkout-form__row {
  margin-bottom: 1.375rem;
  /* 22px — matches Figma gap between rows */
}

.checkout-form__row:last-child {
  margin-bottom: 0;
}

.checkout-form__row--2col {
  display: flex;
}

.checkout-form__row--2col .checkout-field + .checkout-field {
  margin-left: 0.75rem;
  /* 12px */
  flex: 1;
}

.checkout-form__row--2col .checkout-field:first-child {
  flex: 1;
}

.checkout-field {
  display: flex;
  flex-direction: column;
}

.checkout-field__label {
  display: flex;
  align-items: center;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  /* 14px */
  font-weight: 600;
  line-height: 1.1;
  color: rgba(66, 66, 66, 0.8);
  margin-bottom: 0.625rem;
  /* 10px */
  white-space: nowrap;
}

.checkout-field__required {
  margin-left: 0.25rem;
  /* 4px */
  flex-shrink: 0;
  width: 0.4375rem;
  height: 0.6875rem;
  margin-top: -0.3rem;
}

/* "(tuỳ chọn)" cạnh tiêu đề Email — nhạt + mảnh hơn để phân biệt với label.
   Dùng chung cho cả field desktop lẫn drawer mobile (label đều display:flex). */
.checkout-field__label-optional {
  margin-left: 0.25rem;
  /* 4px */
  font-weight: 400;
  color: rgba(66, 66, 66, 0.5);
}

.checkout-field__input {
  background: #ffffff;
  border: 0.8px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  /* 12px */
  height: 3rem;
  /* 48px */
  padding: 0 0.875rem;
  /* 14px horizontal */
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  /* 14px */
  font-weight: 500;
  line-height: 1.2;
  color: #1a1a1a;
  outline: none;
  width: 100%;
  transition: border-color 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
  -webkit-appearance: none;
  appearance: none;
}

.checkout-field__input::placeholder {
  color: rgba(26, 26, 26, 0.3);
  font-weight: 500;
}

.checkout-field__input:focus-visible {
  border-color: #09b8b3;
  outline: none;
}

.checkout-field__textarea {
  background: #ffffff;
  border: 0.8px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 0.875rem;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: #1a1a1a;
  outline: none;
  width: 100%;
  resize: none;
  transition: border-color 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-field__textarea--gift {
  height: 7.625rem;
  /* 122px */
}

.checkout-field__textarea--note {
  height: 6.25rem;
  /* 100px */
}

.checkout-field__textarea::placeholder {
  color: rgba(26, 26, 26, 0.3);
  font-weight: 500;
}

.checkout-field__textarea:focus-visible {
  border-color: #09b8b3;
  outline: none;
}

.checkout-field__input.is-invalid,
.checkout-field__textarea.is-invalid,
.checkout-field--error > .checkout-field__input,
.checkout-field--error > .checkout-field__textarea,
select.js-custom-select.is-invalid:not(.custom-select__native),
.custom-select--invalid .custom-select__trigger {
  border-color: #ff3b30;
  box-shadow: 0 0 0 0.125rem rgba(255, 59, 48, 0.12);
}

.checkout-field__input.is-invalid:focus-visible,
.checkout-field__textarea.is-invalid:focus-visible,
.custom-select--invalid .custom-select__trigger:focus-visible,
.custom-select--invalid.is-open .custom-select__trigger {
  border-color: #ff3b30;
}

.checkout-field__error {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.375rem;
  padding: 0 0.875rem;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  color: #ff3b30;
  text-align: left;
}

.checkout-field__helper {
  display: block;
  margin-top: 0.5rem;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  /* 12px */
  font-weight: 500;
  line-height: 1.1;
  color: rgba(66, 66, 66, 0.8);
}

/* Address selects row — custom-select component layout */
.checkout-form__selects {
  display: flex;
}

.checkout-field--error > .checkout-form__selects {
  margin-bottom: 1.25rem;
}

.checkout-form__selects > .custom-select,
.checkout-form__selects > select.js-custom-select {
  flex: 1;
  min-width: 0;
}

.checkout-form__selects > .custom-select > .checkout-field__error {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  margin-top: 0;
  pointer-events: none;
}

.checkout-form__selects > .custom-select + .custom-select,
.checkout-form__selects > select.js-custom-select + select.js-custom-select {
  margin-left: 0.75rem;
  /* 12px */
}

/* --------------------------------------------------------------------------
   Shipping Options
   -------------------------------------------------------------------------- */
.checkout-shipping__options {
  display: flex;
}

.checkout-shipping__option {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.625rem;
  /* 10px */
  padding: 0 0.75rem;
  height: 3.0856rem;
  /* ~49.37px */
  cursor: pointer;
  transition:
    border-color 400ms cubic-bezier(0.47, 0, 0.01, 1.01),
    background 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-shipping__option + .checkout-shipping__option {
  margin-left: 0.75rem;
  /* 12px */
}

.checkout-shipping__option--selected {
  border-color: #09b8b3;
  background: rgba(9, 184, 179, 0.04);
}

.checkout-shipping__option--disabled {
  cursor: not-allowed;
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(164, 164, 164, 0.12);
  color: rgba(66, 66, 66, 0.35);
}

.checkout-shipping__option--disabled .checkout-shipping__icon,
.checkout-shipping__option--disabled .checkout-shipping__label,
.checkout-shipping__option--disabled .checkout-shipping__radio-dot {
  opacity: 0.35;
}

.checkout-shipping__option--disabled .checkout-shipping__label {
  color: rgba(66, 66, 66, 0.45);
}

.checkout-shipping__option--disabled .checkout-shipping__radio-dot {
  background: rgba(164, 164, 164, 0.12);
  border-color: rgba(66, 66, 66, 0.25);
}

.checkout-shipping__option--disabled::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  z-index: 30;
  width: max-content;
  max-width: 17.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  background: rgba(26, 26, 26, 0.94);
  color: #ffffff;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.25rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.checkout-shipping__option--disabled::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.125rem);
  z-index: 31;
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(26, 26, 26, 0.94);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.25rem) rotate(45deg);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.checkout-shipping__option--disabled:hover::after,
.checkout-shipping__option--disabled:hover::before,
.checkout-shipping__option--disabled:focus-within::after,
.checkout-shipping__option--disabled:focus-within::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(0deg);
}

.checkout-shipping__option--disabled:hover::before,
.checkout-shipping__option--disabled:focus-within::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.checkout-shipping__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkout-shipping__option-inner {
  display: flex;
  align-items: center;
}

.checkout-shipping__icon {
  width: 2.0698rem;
  /* 33.12px */
  height: 1.5856rem;
  /* 25.37px */
  flex-shrink: 0;
}

.checkout-shipping__label {
  margin-left: 0.75rem;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(66, 66, 66, 0.8);
}

.checkout-shipping__option--selected .checkout-shipping__label {
  color: #09b8b3;
}

.checkout-shipping__radio-dot {
  width: 1.125rem;
  /* 18px */
  height: 1.125rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  position: relative;
  flex-shrink: 0;
  transition: border-color 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-shipping__option--selected .checkout-shipping__radio-dot {
  border-color: #09b8b3;
  background: #09b8b3;
}

.checkout-shipping__option--selected .checkout-shipping__radio-dot::after {
  content: "";
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: #ffffff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkout-shipping__eta {
  margin-top: 1.25rem;
  /* 20px from bottom of options to this text */
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(66, 66, 66, 0.8);
}

.checkout-shipping__eta strong {
  font-weight: 700;
  color: #424242;
}

/* --------------------------------------------------------------------------
   Cross-sell Section
   -------------------------------------------------------------------------- */
.checkout-card--crosssell {
  padding: 0;
  overflow: hidden;
}

.checkout-crosssell__header {
  background: #09b8b3;
  padding: 0.625rem 1rem;
  /* 10px 16px */
  height: 2.625rem;
  /* 42px */
  display: flex;
  align-items: center;
}

.checkout-crosssell__header-text {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1rem;
  /* 16px */
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
}

.checkout-crosssell__body {
  padding: 1.5rem 1rem 1rem;
}

/* Swiper container — slidesPerView: 'auto' giữ width 28.125rem của card. */
.checkout-crosssell__scroll {
  overflow: hidden;
}

.checkout-crosssell__card {
  width: 28.125rem;
  /* 450px — slide width khi slidesPerView=auto */
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  overflow: hidden;
  height: auto;
  /* Swiper default stretch all slides cùng height — override theo content.
       Variant dropdown bị clip ở đây + bởi Swiper container — JS portal sẽ
       move dropdown sang <body> khi mở (initCrosssellSelectPortal). */
}

.checkout-crosssell__card-inner {
  display: flex;
  align-items: center;
  padding: 0.75rem;
}

.checkout-crosssell__img-wrap {
  width: 6.5rem;
  /* 104px */
  height: 6.5rem;
  padding: 0.625rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #d0dbdb;
}

.checkout-crosssell__img-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(164, 164, 164, 0.15);
  border-radius: 0.5rem;
}

.checkout-crosssell__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.checkout-crosssell__card-info {
  flex: 1;
  margin-left: 0.75rem;
  display: flex;
  flex-direction: column;
}

.checkout-crosssell__card-title {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #424242;
  margin-bottom: 0.5rem;
}

.checkout-crosssell__variants {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.checkout-crosssell__variant-row {
  display: flex;
  align-items: center;
}

.checkout-crosssell__variant-row + .checkout-crosssell__variant-row {
  margin-top: 0.25rem;
}

.checkout-crosssell__variant-label {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #424242;
  margin-right: 0.375rem;
  white-space: nowrap;
}

.checkout-crosssell__card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-crosssell__prices {
  display: flex;
  align-items: center;
}

.checkout-crosssell__sale-price {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  color: #ff6a3d;
  line-height: normal;
}

.checkout-crosssell__orig-price {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a4a4a4;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.checkout-crosssell__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 8.75rem;
  background: linear-gradient(99.2deg, #09b8b3 3%, #4dcbdf 99%);
  border: none;
  border-radius: 1.25rem;
  padding: 0.5rem 0.875rem;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  transition:
    gap 400ms cubic-bezier(0.47, 0, 0.01, 1.01),
    opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-crosssell__add-btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  transition: transform 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-crosssell__add-btn img {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-left: 0;
  filter: brightness(0) saturate(100%) invert(96%) sepia(96%) saturate(0%)
    hue-rotate(85deg) brightness(105%) contrast(104%);
  transition: transform 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

@media (min-width: 1024px) {
  .checkout-crosssell__add-btn:not(:disabled):hover {
    gap: 1.25rem;
    opacity: 0.88;
  }

  .checkout-crosssell__add-btn:not(:disabled):hover
    .checkout-crosssell__add-btn-text {
    transform: translateX(-0.125rem);
  }

  .checkout-crosssell__add-btn:not(:disabled):hover img {
    transform: translateX(0.25rem);
  }
}

.checkout-crosssell__add-btn:focus-visible {
  outline: 2px solid #09b8b3;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Progress Bar (shared: cross-sell + voucher)
   -------------------------------------------------------------------------- */
.checkout-progress {
  margin-top: 0.875rem;
}

.checkout-progress__track {
  width: 100%;
  height: 0.3125rem;
  /* 5px */
  background: rgba(164, 164, 164, 0.25);
  border-radius: 0.625rem;
  overflow: hidden;
}

.checkout-progress__fill {
  cursor: grab;
  height: 100%;
  background: #09b8b3;
  border-radius: 0.625rem;
  transition: width 600ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

/* --------------------------------------------------------------------------
   Voucher Section
   -------------------------------------------------------------------------- */
.checkout-voucher__title-row {
  margin-bottom: 0;
}

/* Swiper container — slidesPerView: 'auto' giữ width 23.4375rem của card. */
.checkout-voucher__scroll {
  overflow: hidden;
  margin-bottom: 0.9375rem;
  padding-bottom: 0.25rem;
}

.checkout-voucher__card {
  width: 23.4375rem;
  /* 375px — slide width khi slidesPerView=auto */
  position: relative;
  border-radius: 0.625rem;
  overflow: hidden;
  cursor: pointer;
  height: auto;
}

.checkout-voucher__card--applied {
  border-color: #09b8b3;
}

.checkout-voucher__card--disabled {
  cursor: default;
}

.checkout-voucher__card--disabled .checkout-voucher__bg-img {
  filter: grayscale(1);
  opacity: 0.45;
}

.checkout-voucher__card--disabled .checkout-voucher__code,
.checkout-voucher__card--disabled .checkout-voucher__desc,
.checkout-voucher__card--disabled .checkout-voucher__expiry {
  color: rgba(66, 66, 66, 0.45);
}

.checkout-voucher__card--disabled .checkout-voucher__discount {
  color: rgba(66, 66, 66, 0.35);
}

.checkout-voucher__card--disabled .checkout-voucher__checkbox-wrap {
  cursor: not-allowed;
}

.checkout-voucher__card--disabled .checkout-voucher__checkbox-custom {
  background: #f2f2f2;
  border-color: rgba(66, 66, 66, 0.22);
}

.checkout-voucher__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.checkout-voucher__card-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 0.9375rem 1.4375rem;
  /* 15px 23px */
  min-height: 8.75rem;
  /* 140px */
}

.checkout-voucher__card-left {
  display: flex;
  flex-direction: column;
  width: 14.75rem;
  /* 236px */
}

.checkout-voucher__code {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1.25rem;
  /* 20px */
  font-weight: 600;
  line-height: 1.5;
  color: #424242;
  text-transform: uppercase;
}

.checkout-voucher__desc {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(66, 66, 66, 0.8);
  margin-top: 0.25rem;
}

.checkout-voucher__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.625rem;
}

.checkout-voucher__expiry {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.8125rem;
  /* 13px */
  font-weight: 400;
  color: rgba(66, 66, 66, 0.6);
}

.checkout-voucher__status {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #00a991;
  display: none;
  /* Toggle qua class --applied — markup luôn render để JS không phải tạo node */
}

.checkout-voucher__card--applied .checkout-voucher__status {
  display: inline;
}

.checkout-voucher__card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.checkout-voucher__checkbox-wrap {
  cursor: pointer;
}

input.checkout-voucher__checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkout-voucher__checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.25rem;
  background: #fff;
  transition: border-color 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-voucher__card--applied .checkout-voucher__checkbox-custom {
  border-color: #09b8b3;
  background: #09b8b3;
}

.checkout-voucher__checkbox-custom img {
  display: none;
  /* Toggle qua class --applied — markup luôn render */
}

.checkout-voucher__card--applied .checkout-voucher__checkbox-custom img {
  display: block;
  width: 100%;
  height: 100%;
}

.checkout-voucher__discount {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1.5rem;
  /* 24px */
  font-weight: 600;
  color: #09b8b3;
  line-height: 1;
  text-align: right;
}

.checkout-voucher__condition-link {
  position: relative;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #3895e2;
  text-decoration: underline;
  transition: opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-voucher__condition-tooltip {
  display: none;
}

@media (min-width: 1024px) {
  .checkout-voucher__condition-link:hover {
    opacity: 1;
  }

  .checkout-voucher__condition-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.5rem);
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: min(17.5rem, calc(100vw - 2rem));
    padding: 0.75rem 0.875rem;
    border: 1px solid rgba(9, 184, 179, 0.18);
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.12);
    color: #424242;
    text-align: left;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.25rem);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .checkout-voucher__condition-tooltip::before {
    content: "";
    position: absolute;
    right: 1rem;
    bottom: -0.375rem;
    width: 0.75rem;
    height: 0.75rem;
    border-right: 1px solid rgba(9, 184, 179, 0.18);
    border-bottom: 1px solid rgba(9, 184, 179, 0.18);
    background: #ffffff;
    transform: rotate(45deg);
  }

  .checkout-voucher__condition-tooltip-title,
  .checkout-voucher__condition-tooltip-text {
    position: relative;
    z-index: 1;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  }

  .checkout-voucher__condition-tooltip-title {
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #09b8b3;
  }

  .checkout-voucher__condition-tooltip-text {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(66, 66, 66, 0.84);
    white-space: normal;
  }

  .checkout-voucher__condition-link:hover .checkout-voucher__condition-tooltip,
  .checkout-voucher__condition-link:focus-visible .checkout-voucher__condition-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .checkout-voucher__condition-link:focus-visible {
    outline: 0.125rem solid #09b8b3;
    outline-offset: 0.1875rem;
    border-radius: 0.25rem;
  }
}

.checkout-voucher__applied-info {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(66, 66, 66, 0.8);
  margin-top: 0.75rem;
}

.checkout-voucher__applied-amount {
  font-weight: 700;
  color: #09b8b3;
}

.checkout-voucher__input-row {
  margin-top: 1.25rem;
}

.checkout-voucher__input-wrap {
  display: flex;
  align-items: center;
  margin-top: 0.625rem;
}

.checkout-voucher__input {
  flex: 1;
  border-radius: 0.75rem 0 0 0.75rem;
  border-right: none;
}

.checkout-voucher__apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 8.75rem;
  background: linear-gradient(99.2deg, #09b8b3 3%, #4dcbdf 99%);
  border: none;
  border-radius: 0 1.25rem 1.25rem 0;
  padding: 0 1.375rem;
  height: 3rem;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    gap 400ms cubic-bezier(0.47, 0, 0.01, 1.01),
    opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-voucher__apply-btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  transition: transform 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-voucher__apply-btn img {
  margin-left: 0;
  width: 1.05806rem;
  height: 1.05806rem;
  flex-shrink: 0;
  transition: transform 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

@media (min-width: 1024px) {
  .checkout-voucher__apply-btn:not(:disabled):hover {
    gap: 1.25rem;
    opacity: 0.88;
  }

  .checkout-voucher__apply-btn:not(:disabled):hover
    .checkout-voucher__apply-btn-text {
    transform: translateX(-0.125rem);
  }

  .checkout-voucher__apply-btn:not(:disabled):hover img {
    transform: translateX(0.25rem);
  }
}

.checkout-voucher__apply-btn:focus-visible {
  outline: 2px solid #09b8b3;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Payment Methods
   -------------------------------------------------------------------------- */
.checkout-payment__list {
  display: flex;
  flex-direction: column;
}

.checkout-payment__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.625rem;
  /* 10px */
  padding: 0 0.75rem;
  height: 3rem;
  /* 48px */
  cursor: pointer;
  transition:
    border-color 400ms cubic-bezier(0.47, 0, 0.01, 1.01),
    background 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-payment__option + .checkout-payment__option {
  margin-top: 0.625rem;
  /* 10px */
}

.checkout-payment__item + .checkout-payment__item {
  margin-top: 0.625rem;
  /* 10px */
}

.checkout-payment__option--selected {
  border-color: #09b8b3;
  background: rgba(9, 184, 179, 0.04);
}

.checkout-payment__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkout-payment__option-inner {
  display: flex;
  align-items: center;
  flex: 1;
}

.checkout-payment__icon {
  width: 2.6923rem;
  /* 43px */
  height: 1.25rem;
  /* 20px */
  flex-shrink: 0;
  object-fit: contain;
}

.checkout-payment__icon--img {
  border-radius: 0.1875rem;
}

/* Wrap cho icon do WC gateway tự render (HTML <img> từ $gateway->get_icon()).
   Một số gateway trả nhiều ảnh (Stripe: visa+master+amex) nên cho phép wrap
   tự co giãn theo nội dung, chỉ giới hạn chiều cao để không phá layout row. */
.checkout-payment__icon-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 8rem;
  height: 1.25rem;
}

.checkout-payment__icon-wrap img {
  max-height: 1.25rem;
  width: auto;
  object-fit: contain;
}

.checkout-payment__icon-wrap img + img {
  margin-left: 0.25rem;
}

.checkout-payment__label {
  margin-left: 0.875rem;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1rem;
  /* 16px */
  font-weight: 500;
  line-height: 1.5;
  color: rgba(66, 66, 66, 0.6);
}

.checkout-payment__label--selected {
  color: #09b8b3;
}

.checkout-payment__radio-dot {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-payment__radio-dot--active {
  border-color: #09b8b3;
  background: #09b8b3;
}

.checkout-payment__radio-dot--active::after {
  content: "";
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: #ffffff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkout-payment__detail {
  margin-top: 0.625rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(9, 184, 179, 0.18);
  border-radius: 0.625rem;
  background: rgba(9, 184, 179, 0.04);
  color: #424242;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.checkout-payment__detail p {
  margin: 0;
}

.checkout-payment__detail p + p {
  margin-top: 0.5rem;
}

.checkout-payment__detail img {
  display: block;
  max-width: min(100%, 14rem);
  height: auto;
  margin-top: 0.75rem;
  border-radius: 0.5rem;
}

/* --------------------------------------------------------------------------
   Order Items Panel (right column)
   -------------------------------------------------------------------------- */
.checkout-order {
  padding: 1rem 1.25rem 0;
  /* bottom padding comes from sticky bar */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
}

.checkout-order__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 0.75rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.checkout-order__header-left {
  display: flex;
  align-items: flex-end;
}

.checkout-order__title {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #424242;
  letter-spacing: 0.0101rem;
}

.checkout-order__count {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3125rem;
  color: rgba(66, 66, 66, 0.8);
  margin-left: 0.375rem;
}

.checkout-order__header-right {
  display: flex;
  align-items: center;
}

.checkout-order__select-all-label {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(66, 66, 66, 0.8);
  letter-spacing: 0.0156rem;
  margin-right: 0.5rem;
}

.checkout-order__select-all {
  position: absolute;
  /*     opacity: 0; */
  width: 0;
  height: 0;
}

.checkout-order__select-all-custom {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  /* border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.3125rem;
    background: #09B8B3; */
  cursor: pointer;
}

.checkout-order__select-all-custom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.checkout-order__items {
  max-height: 28.9375rem;
  /* 463px */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(164, 164, 164, 0.4) transparent;
  /* min-height:0 + flex:0 1 auto giữ max-height có hiệu lực khi cha là flex column */
  min-height: 0;
  flex: 0 1 auto;
}

.checkout-order__items::-webkit-scrollbar {
  width: 0.25rem;
}

.checkout-order__items::-webkit-scrollbar-track {
  background: transparent;
}

.checkout-order__items::-webkit-scrollbar-thumb {
  background: rgba(164, 164, 164, 0.4);
  border-radius: 0.25rem;
}

/* --------------------------------------------------------------------------
   Cart Item Card
   -------------------------------------------------------------------------- */
.checkout-cart-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.checkout-cart-item + .checkout-cart-item {
  margin-top: 0.75rem;
}

.checkout-cart-item--flash {
  border-color: #ff6a3d;
  overflow: hidden;
}

.checkout-cart-item__flash-badge {
  display: flex;
  align-items: center;
  background: #ff6a3d;
  margin: -0.75rem -0.75rem 0.75rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 0.75rem 0.75rem 0 0;
}

.checkout-cart-item__flash-text {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05rem;
}

.checkout-cart-item__flash-icon {
  color: #ffffff;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.checkout-cart-item__flash-timer {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  margin-left: auto;
  letter-spacing: 0.05rem;
}

.checkout-cart-item__main {
  display: flex;
  align-items: flex-start;
}

.checkout-cart-item__img-wrap {
  padding: 0.625rem;
  width: 5.8125rem;
  /* 93px */
  height: 5.75rem;
  /* 92px */
  flex-shrink: 0;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #d0dbdb;
}

.checkout-cart-item__img-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(164, 164, 164, 0.15);
  border-radius: 0.625rem;
}

.checkout-cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.checkout-cart-item__info {
  flex: 1;
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
}

.checkout-cart-item__top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.checkout-cart-item__title {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #424242;
  flex: 1;
}

.checkout-cart-item__checkbox-wrap {
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.checkout-cart-item__checkbox {
  position: absolute !important;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkout-cart-item__checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #09b8b3;
  border-radius: 0.3125rem;
  background: #09b8b3;
}

.checkout-cart-item__checkbox-custom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.checkout-cart-item__checkbox-wrap:has(
    .checkout-cart-item__checkbox:not(:checked)
  )
  .checkout-cart-item__checkbox-custom {
  background: #fff;
  border-color: #c8c8c8;
}

.checkout-cart-item__checkbox-wrap:has(
    .checkout-cart-item__checkbox:not(:checked)
  )
  .checkout-cart-item__checkbox-custom
  img {
  visibility: hidden;
}

.checkout-cart-item__variants {
  display: flex;
  margin-bottom: 0.625rem;
}

.checkout-cart-item__variants--mobile {
  display: none;
}

.checkout-cart-item__variants--desktop {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.checkout-cart-item__variants--desktop::-webkit-scrollbar {
  display: none;
}

.checkout-cart-item__variants--desktop .checkout-cart-item__variant {
  flex: 0 0 auto;
}

.checkout-cart-item__variant {
  display: flex;
  align-items: center;
}

.checkout-cart-item__variant + .checkout-cart-item__variant {
  margin-left: 1rem;
}

.checkout-cart-item__variant-label {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #424242;
  margin-right: 0.375rem;
  white-space: nowrap;
}

.checkout-cart-item__price-row {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
}

.checkout-cart-item__prices {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.checkout-cart-item__sale-price {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  color: #ff6a3d;
  line-height: normal;
}

.checkout-cart-item__orig-price {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a4a4a4;
  text-decoration: line-through;
  margin-left: 0.375rem;
}

/* Quantity stepper */
.checkout-cart-item__qty-wrap {
  display: flex;
  align-items: center;
  background: rgba(164, 164, 164, 0.1);
  border-radius: 62.5rem;
  padding: 0.125rem 0.1875rem;
}

.checkout-qty__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  /* 26px */
  height: 1.625rem;
  border-radius: 0.8125rem;
  background: #ffffff;
  border: 0.65px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
  padding: 0 0.40625rem;
  overflow: hidden;
}

.checkout-qty__btn img {
  width: 0.90275rem;
  height: 0.90275rem;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .checkout-qty__btn:hover {
    opacity: 0.7;
  }

  .checkout-qty__btn:disabled:hover {
    opacity: 0.2;
  }
}

.checkout-qty__btn:focus-visible {
  outline: 2px solid #09b8b3;
}

.checkout-qty__btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.checkout-qty__value {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1d1d1d;
  line-height: 1.2;
  letter-spacing: -0.00875rem;
  min-width: 1.375rem;
  text-align: center;
  padding: 0 0.3125rem;
}

.checkout-cart-item__trash {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-cart-item__trash img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 1024px) {
  .checkout-cart-item__trash:hover {
    opacity: 1;
  }
}

/* Gift row */
.checkout-cart-item__gift {
  display: flex;
  align-items: center;
  background: rgba(164, 164, 164, 0.1);
  border: 0.8px solid rgba(172, 187, 181, 0.25);
  border-radius: 0.625rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
  backdrop-filter: blur(6px);
}

.checkout-cart-item__gift-img-wrap {
  width: 2.4375rem;
  /* 39px */
  height: 2.375rem;
  /* 38px */
  border-radius: 0.375rem;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(164, 164, 164, 0.2);
}

.checkout-cart-item__gift-img-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(164, 164, 164, 0.2);
  border-radius: 0.375rem;
}

.checkout-cart-item__gift-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-cart-item__gift-info {
  flex: 1;
  margin-left: 0.5rem;
  display: flex;
  flex-direction: column;
}

.checkout-cart-item__gift-tag {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(66, 66, 66, 0.6);
}

.checkout-cart-item__gift-name {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: #424242;
}

.checkout-cart-item__gift-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.checkout-cart-item__gift-free {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #09b8b3;
}

.checkout-cart-item__gift-orig {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #a4a4a4;
  text-decoration: line-through;
}

/* Gift wrap toggle row */
.checkout-cart-item__wrap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(164, 164, 164, 0.1);
  border: 0.8px solid rgba(172, 187, 181, 0.25);
  border-radius: 0.625rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
  backdrop-filter: blur(6px);
}

.checkout-cart-item__wrap-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.checkout-cart-item__wrap-icon-wrap {
  width: 2.1875rem;
  height: 2.1875rem;
  padding: 0.53125rem;
  border-radius: 0.5rem;
  background: #f6f6f6;
  margin-right: 0.375rem;
}

.checkout-cart-item__wrap-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkout-cart-item__wrap-icon {
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.checkout-cart-item__wrap-text {
  display: flex;
  flex-direction: column;
}

.checkout-cart-item__wrap-label {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: #424242;
}

.checkout-cart-item__wrap-sub {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(66, 66, 66, 0.6);
  margin-top: 0.125rem;
}

.checkout-cart-item__wrap-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.checkout-cart-item__wrap-price {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #424242;
  margin-right: 0.5rem;
}

/* Toggle switch */
.checkout-toggle {
  position: relative;
  display: inline-block;
  width: 2rem;
  /* 32px */
  height: 1rem;
  /* 16px */
  cursor: pointer;
  flex-shrink: 0;
}

.checkout-toggle__input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.checkout-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(164, 164, 164, 0.4);
  border-radius: 0.5rem;
  transition: background 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-toggle__slider::before {
  content: "";
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  background: #ffffff;
  border-radius: 50%;
  top: 0.125rem;
  left: 0.125rem;
  transition: transform 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.2);
}

.checkout-toggle__input:checked + .checkout-toggle__slider {
  background: #09b8b3;
}

.checkout-toggle__input:checked + .checkout-toggle__slider::before {
  transform: translateX(1rem);
}

.checkout-toggle:has(.checkout-toggle__input:disabled),
.checkout-toggle--disabled {
  cursor: not-allowed;
}

.checkout-toggle__input:disabled + .checkout-toggle__slider {
  opacity: 0.55;
}

.checkout-cart-item__wrap-row--disabled {
  opacity: 0.65;
}

/* Shared variant select button */
.checkout-select-btn {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 0.8px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(66, 66, 66, 0.8);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-select-btn img {
  margin-left: 0.5rem;
}

@media (min-width: 1024px) {
  .checkout-select-btn:hover {
    border-color: #09b8b3;
  }
}

/* Checkout variant select — dropdown markup (mirror style header cart) */
.checkout-select {
  position: relative;
  display: inline-block;
  min-width: 0;
}

.checkout-select .custom-select__trigger {
  justify-content: space-between;
  width: 100%;
  height: auto;
}

.checkout-select .custom-select__trigger:focus-visible {
  outline: none;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.checkout-select.is-open .custom-select__trigger {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.checkout-select .custom-select__trigger-icon {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.checkout-select.is-open .custom-select__trigger-icon {
  transform: rotate(180deg);
}

.checkout-select .custom-select__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 7.875rem;
  max-height: 12rem;
  overflow-y: auto;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    visibility 0.15s ease,
    opacity 0.15s ease,
    transform 0.15s ease;
}

.checkout-select.is-open .custom-select__dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.checkout-select .custom-select__option {
  padding: 0.5rem;
  color: rgba(66, 66, 66, 0.8);
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 130%;
  white-space: nowrap;
  cursor: pointer;
}

.checkout-select .custom-select__option:hover,
.checkout-select .custom-select__option.is-selected {
  background-color: #f6f6f6;
}

.checkout-select .custom-select__option:focus-visible {
  outline: none;
  background-color: #f6f6f6;
}

/* Portaled state — khi crosssell variant dropdown được move sang <body> để
   thoát overflow:hidden + transform của Swiper. Selector ko phụ thuộc ancestor
   `.checkout-select` vì dropdown lúc này nằm dưới body. JS set inline
   position/top/left, CSS lo style + visibility. */
.custom-select__dropdown[data-portaled-checkout="true"] {
  max-height: 12rem;
  overflow-y: auto;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: none;
}

.custom-select__dropdown[data-portaled-checkout="true"] .custom-select__option {
  padding: 0.5rem;
  color: rgba(66, 66, 66, 0.8);
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 130%;
  white-space: nowrap;
  cursor: pointer;
}

.custom-select__dropdown[data-portaled-checkout="true"]
  .custom-select__option:hover,
.custom-select__dropdown[data-portaled-checkout="true"]
  .custom-select__option.is-selected {
  background-color: #f6f6f6;
}

/* --------------------------------------------------------------------------
   Order Summary (Chi tiết thanh toán)
   -------------------------------------------------------------------------- */
.checkout-summary {
  padding: 1rem 1.25rem;
}

.checkout-summary__title {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: #424242;
  margin-bottom: 1rem;
}

.checkout-summary__lines {
  display: flex;
  flex-direction: column;
}

.checkout-summary__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-summary__line + .checkout-summary__line {
  margin-top: 1.125rem;
}

.checkout-summary__line-label {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(66, 66, 66, 0.8);
}

.checkout-summary__line-value {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #424242;
  white-space: nowrap;
  margin-left: 0.5rem;
  text-align: right;
}

.checkout-summary__divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin-top: 1.25rem;
  margin-bottom: 0.8125rem;
}

.checkout-summary__total-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.checkout-summary__total-label {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(66, 66, 66, 0.8);
  padding-top: 0.25rem;
}

.checkout-summary__total-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.checkout-summary__total-amount {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1.1875rem;
  /* 19px — matches Figma "5.130.000đ" size */
  font-weight: 700;
  line-height: 1.2;
  color: #09b8b3;
}

.checkout-summary__total-saved {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(66, 66, 66, 0.6);
  margin-top: 0.25rem;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Order sticky bar — pinned inside the order card (right column)
   -------------------------------------------------------------------------- */
.checkout-order__sticky-bar {
  background: #ffffff;
  border-radius: 0 0 1.25rem 1.25rem;
  box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.08);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  display:none;
  /* extend to card edges by negating card padding */
  margin: 0.5rem -1.25rem 0;
  flex-shrink: 0;
}

.checkout-order__sticky-prices {
  display: flex;
  align-items: center;
  flex: 1;
}

.checkout-order__sticky-amount {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ff6a3d;
  line-height: 1.25;
}

.checkout-order__sticky-orig {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #a4a4a4;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.checkout-order__sticky-saving {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(66, 66, 66, 0.7);
  width: 100%;
  margin-top: 0.25rem;
  order: 3;
}

.checkout-order__sticky-btn {
  display: flex;
  align-items: center;
  background: linear-gradient(99.2deg, #09b8b3 3%, #4dcbdf 99%);
  border: none;
  border-radius: 1.375rem;
  padding: 0 1.375rem;
  height: 2.75rem;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-order__sticky-btn img {
  margin-left: 0.5rem;
}

@media (min-width: 1024px) {
  .checkout-order__sticky-btn:hover {
    opacity: 0.88;
  }
}

.checkout-order__sticky-btn:focus-visible {
  outline: 2px solid #09b8b3;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Full-width Bottom Bar
   -------------------------------------------------------------------------- */
.checkout-bottom-bar {
  display: none;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.checkout-bottom-bar__inner {
  max-width: 100rem;
  /* 1600px — match section container */
  margin-inline: auto;
  padding-left: 5.5rem;
  /* 88px — Figma info columns start at x=88 */
  padding-right: 6.25rem;
  /* 100px — match container right padding, button ends at x=1500 */
  height: 4.9375rem;
  /* 79px */
  display: flex;
  align-items: center;
}

.checkout-bottom-bar__info-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.checkout-bottom-bar__info {
  display: flex;
  flex-direction: column;
  width: 17.109rem;
  /* 273.75px — exact Figma info column width */
  flex-shrink: 0;
}

.checkout-bottom-bar__info-label {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.9375rem;
  /* 15px */
  font-weight: 400;
  line-height: 1.3;
  color: rgba(66, 66, 66, 0.7);
}

.checkout-bottom-bar__info-value {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1.0625rem;
  /* 17px */
  font-weight: 700;
  line-height: 1.3;
  color: #424242;
  margin-top: 0.1875rem;
}

.checkout-bottom-bar__divider {
  width: 1px;
  height: 2.8125rem;
  /* 45px */
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  margin: 0 1.25rem;
  /* 20px each side — total 40px gap between columns */
}

.checkout-bottom-bar__total-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  /* take remaining space between info group and button */
  padding-left: 2rem;
  /* left gap from info group */
  padding-right: 1rem;
  /* right gap to button */
}

.checkout-bottom-bar__total {
  display: flex;
  align-items: center;
}

.checkout-bottom-bar__amount {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1.5625rem;
  /* 25px */
  font-weight: 700;
  color: #ff6a3d;
  line-height: 1;
}

.checkout-bottom-bar__orig {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #a4a4a4;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.checkout-bottom-bar__saving {
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(66, 66, 66, 0.7);
  margin-top: 0.25rem;
  white-space: nowrap;
}

.checkout-bottom-bar__btn {
  display: flex;
  align-items: center;
  background: linear-gradient(99.2deg, #09b8b3 3%, #4dcbdf 99%);
  border: none;
  border-radius: 1.375rem;
  padding: 0 1.75rem;
  height: 2.75rem;
  font-family: "SVN-Gilroy", "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 400ms cubic-bezier(0.47, 0, 0.01, 1.01);
}

.checkout-bottom-bar__btn img {
  margin-left: 0.5rem;
}

@media (min-width: 1024px) {
  .checkout-bottom-bar__btn:hover {
    opacity: 0.88;
  }
}

.checkout-bottom-bar__btn:focus-visible {
  outline: 2px solid #09b8b3;
  outline-offset: 2px;
}

/* ==========================================================================
   DASH PANELS (desktop: hidden)
   ========================================================================== */
.checkout-dash-panels {
  display: none;
}

.checkout-dash--voucher {
  display: none;
}

.checkout-buy-more {
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* "Xem chi tiết" link — desktop: hidden */
.checkout-bottom-bar__detail-link {
  display: none;
}

/* ==========================================================================
   DRAWERS — desktop: hidden
   ========================================================================== */
.checkout-drawer {
  display: none;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media screen and (max-width: 639.98px) {
  /* ------------------------------------------------------------------
       Layout Reset
       ------------------------------------------------------------------ */
  .section-checkout-content {
    padding-top: 0;
    padding-bottom: 5.5rem;
    background-color: #f7f8fa;
  }

  .section-checkout-content__container {
    padding-left: 0;
    padding-right: 0;
  }

  .section-checkout-content__title {
    display: none;
  }

  /* Make layout a single-column flex so all blocks can be reordered together */
  .section-checkout-content__layout {
    display: flex;
    flex-direction: column;
  }

  /* display:contents lifts children into parent flex context on mobile */
  .section-checkout-content__left {
    display: contents;
  }

  .section-checkout-content__right {
    display: contents;
  }

  /* ------------------------------------------------------------------
       Mobile Section Reorder (CSS order)
       All blocks are now direct flex children of __layout
       ------------------------------------------------------------------ */
  .checkout-dash-panels {
    order: 1;
    width: 100%;
  }

  #block-order-items {
    order: 2;
    width: 100%;
  }

  #block-shipping {
    order: 3;
    width: 100%;
  }

  #block-crosssell {
    order: 4;
    width: 100%;
  }

  #checkout-buy-more {
    order: 5;
    width: calc(100% - 1.5rem);
    margin: 0.625rem 0.75rem 0;
  }

  .checkout-dash--voucher {
    order: 6;
    width: 100%;
  }

  #block-payment {
    order: 7;
    width: 100%;
  }

  /* Keep hidden blocks from affecting layout */
  #block-customer-info {
    order: 10;
  }

  #block-voucher {
    order: 11;
  }

  #block-order-summary {
    order: 12;
  }

  /* Hide desktop-only elements on mobile */
  #block-customer-info {
    display: none;
  }

  #block-voucher {
    display: none;
  }

  #block-order-summary {
    display: none;
  }

  .checkout-order__sticky-bar {
    display: none;
  }

  /* Reset card + card margin — desktop rules bleed through display:contents */
  .section-checkout-content__left .checkout-card + .checkout-card,
  .section-checkout-content__right .checkout-card + .checkout-card {
    margin-top: 0;
  }
  .checkout-order__header-left{
    align-items: center;
  }

  /* Add explicit spacing between main mobile sections */
  #block-order-items,
  #block-crosssell,
  #block-shipping,
  .checkout-dash--voucher,
  #block-payment {
    margin-top: 0.625rem;
  }

  /* Dash panels sit flush at top — no top margin */
  .checkout-dash-panels {
    margin-top: 0;
  }

  /* ------------------------------------------------------------------
       Dash Panels
       ------------------------------------------------------------------ */
  .checkout-dash-panels {
    display: flex;
    flex-direction: column;
    order: 1;
  }

  .checkout-dash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 0.625rem 0.75rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    -webkit-appearance: none;
    appearance: none;
  }

  .checkout-dash--voucher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 0.625rem 0.75rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    -webkit-appearance: none;
    appearance: none;
  }

  .checkout-dash__content {
    flex: 1;
    min-width: 0;
  }

  .checkout-dash__title-row {
    display: flex;
    align-items: center;
  }

  .checkout-dash__title-row img {
    margin-left: 0.25rem;
  }

  .checkout-dash__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    color: #424242;
  }

  .checkout-dash__sub {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(66, 66, 66, 0.6);
    margin-top: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .checkout-dash__sub--bold {
    font-weight: 600;
    color: #424242;
    display: inline;
    margin-top: 0;
  }

  .checkout-dash__sub-row {
    display: flex;
    align-items: center;
    margin-top: 0.125rem;
  }

  .checkout-dash__sub-row .checkout-dash__sub {
    margin-top: 0;
    margin-right: 0.25rem;
  }

  .checkout-dash__summary {
    margin-top: 0.25rem;
    display: none;
  }

  .checkout-dash__summary.is-filled {
    display: block;
  }

  .checkout-dash__summary-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .checkout-dash__summary-text {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: #424242;
  }

  .checkout-dash__summary-text--muted {
    font-weight: 500;
    color: rgba(66, 66, 66, 0.6);
  }

  .checkout-dash__summary-dot {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: rgba(66, 66, 66, 0.4);
    margin: 0 0.375rem;
    flex-shrink: 0;
  }

  .checkout-dash__arrow {
    flex-shrink: 0;
    margin-left: 0.5rem;
  }

  /* ------------------------------------------------------------------
       Cart Items — Mobile (direct flex child, order: 2)
       ------------------------------------------------------------------ */
  .checkout-order {
    padding: 0.75rem;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
    margin-top: 0;
  }

  /* Remove desktop card spacing rules — not relevant with display:contents */
  .section-checkout-content__right .checkout-card + .checkout-card {
    margin-top: 0;
  }

  .checkout-order__header {
    margin-bottom: 0.5rem;
    padding-right: 0;
  }

  .checkout-order__title {
    font-size: 0.875rem;
    font-weight: 600;
    text-box-edge: cap alphabetic;
    text-box-trim: trim-both;
  }

  .checkout-order__count {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(66, 66, 66, 0.6);
  }

  .checkout-order__select-all-label {
    font-size: 0.75rem;
  }

  .checkout-order__select-all-custom {
    width: 1.125rem;
    height: 1.125rem;
  }

  .checkout-order__select-all-custom img {
    width: 1.125rem;
    height: 1.125rem;
  }

  .checkout-order__items {
    max-height: none;
    overflow-y: visible;
  }

  /* Cart item card — compact mobile */
  .checkout-cart-item {
    padding: 0.75rem;
    border-radius: 0.75rem;
  }

  .checkout-cart-item__img-wrap {
    width: 4.5rem;
    height: 4.5rem;
  }

  .checkout-cart-item__info {
    margin-left: 0.75rem;
  }

  .checkout-cart-item__title {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 13.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .checkout-cart-item__top-row {
    margin-bottom: 0.375rem;
  }

  .checkout-cart-item__checkbox-custom {
    width: 1.125rem;
    height: 1.125rem;
  }

  .checkout-cart-item__checkbox-custom img {
    width: 1.125rem;
    height: 1.125rem;
  }

  .checkout-cart-item__variants {
    margin-bottom: 0.375rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .checkout-cart-item__variants--desktop {
    display: none;
  }

  .checkout-cart-item__variants--mobile {
    display: flex;
  }

  .checkout-cart-item__variant + .checkout-cart-item__variant {
    margin-left: 0;
  }

  .checkout-cart-item__variant-label {
    font-size: 0.75rem;
  }

  .checkout-select-btn {
    padding: 0.1875rem 0.5rem;
    font-size: 0.625rem;
  }

  .checkout-select-btn img {
    margin-left: 0.375rem;
  }

  .checkout-cart-item__sale-price {
    font-size: 0.75rem;
  }

  .checkout-cart-item__orig-price {
    font-size: 0.625rem;
  }

  .checkout-qty__btn {
    width: 1.375rem;
    height: 1.375rem;
  }

  .checkout-qty__value {
    font-size: 0.625rem;
    min-width: 1rem;
    padding: 0 0.25rem;
  }

  .checkout-cart-item__trash {
    width: 1.125rem;
    height: 1.125rem;
  }

  .checkout-cart-item__trash img {
    width: 1.125rem;
    height: 1.125rem;
  }

  /* Gift wrap row — mobile */
  .checkout-cart-item__wrap-row {
    padding: 0.375rem;
    background: transparent;
    border: none;
    padding-left: 0;
    padding-right: 0;
  }

  .checkout-cart-item__wrap-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .checkout-cart-item__wrap-label {
    font-size: 0.75rem;
    color: rgba(26, 26, 26, 0.75);
  }

  .checkout-cart-item__wrap-sub {
    /* font-size: 0.75rem; */
    color: rgba(66, 66, 66, 0.8);
  }

  .checkout-cart-item__wrap-price {
    font-size: 0.75rem;
  }

  .checkout-toggle {
    width: 2rem;
    height: 1rem;
  }

  /* Flash sale badge — mobile */
  .checkout-cart-item__flash-badge {
    padding: 0.1875rem 0.5rem;
  }

  .checkout-cart-item__flash-text {
    font-size: 0.625rem;
  }

  .checkout-cart-item__flash-timer {
    font-size: 0.625rem;
  }

  /* ------------------------------------------------------------------
       Cross-sell — Compact Mobile
       ------------------------------------------------------------------ */
  .checkout-card--crosssell {
    border-radius: 0;
    box-shadow: none;
  }

  .checkout-crosssell__header {
    padding: 0.5rem 0.875rem;
    height: auto;
  }

  .checkout-crosssell__header-text {
    font-size: 0.875rem;
  }

  .checkout-crosssell__body {
    padding: 0.5rem 0.75rem;
  }

  .checkout-crosssell__card {
    width: 19.5625rem;
    height: 4.5rem;
    flex-shrink: 0;
  }

  .checkout-crosssell__card-inner {
    padding: 0;
    height: 100%;
  }

  .checkout-crosssell__img-wrap {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.375rem;
  }

  .checkout-crosssell__card-info {
    margin-left: 0.5rem;
    justify-content: center;
  }

  .checkout-crosssell__card-title {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 14rem;
  }

  .checkout-crosssell__variants {
    margin-bottom: 0.25rem;
  }

  .checkout-crosssell__variant-label {
    font-size: 0.625rem;
  }

  .checkout-crosssell__card-bottom {
    align-items: center;
  }

  .checkout-crosssell__sale-price {
    font-size: 0.75rem;
  }

  .checkout-crosssell__orig-price {
    font-size: 0.625rem;
    margin-left: 0.375rem;
  }

  .checkout-crosssell__add-btn {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    gap: 0.2em;
    min-width: auto;
    font-size: 0.625rem;
    font-weight: 600;
    padding-right: 0.5rem;
    color: #09b8b3;
    white-space: nowrap;
  }

  .checkout-crosssell__add-btn img {
    width: 0.875rem;
    height: 0.875rem;
    margin-left: 0;
    display: none;
  }

  .checkout-crosssell__add-btn::after {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 0.875rem;
    height: 0.875rem;
    margin-left: 0;
    background-color: currentColor;
    -webkit-mask: url("../../../../assets/images/checkout/ic-add.svg") center / contain no-repeat;
    mask: url("../../../../assets/images/checkout/ic-add.svg") center / contain no-repeat;
  }

  .checkout-progress {
    display: none;
  }

  /* ------------------------------------------------------------------
       Shipping — Mobile
       ------------------------------------------------------------------ */
  #block-shipping {
    border-radius: 0;
    box-shadow: none;
    padding: 0.625rem 0.75rem;
  }

  .checkout-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }

  .checkout-shipping__options {
    flex-direction: column;
  }

  .checkout-shipping__option {
    padding: 0.75rem 0.625rem;
    border-radius: 0.625rem;
  }

  .checkout-shipping__option + .checkout-shipping__option {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .checkout-shipping__icon {
    width: 1.5rem;
    height: 1.125rem;
  }

  .checkout-shipping__label {
    font-size: 0.75rem;
  }

  .checkout-shipping__radio-dot {
    width: 0.875rem;
    height: 0.875rem;
  }

  .checkout-shipping__option--selected .checkout-shipping__radio-dot::after {
    width: 0.25rem;
    height: 0.25rem;
  }

  .checkout-shipping__eta {
    margin-top: 0.625rem;
    font-size: 0.75rem;
  }

  .checkout-shipping__eta strong {
    font-size: 0.75rem;
  }

  /* ------------------------------------------------------------------
       Payment — Mobile
       ------------------------------------------------------------------ */
  #block-payment {
    border-radius: 0;
    box-shadow: none;
    padding: 0.625rem 0.75rem;
  }

  .checkout-payment__option {
    padding: 0.75rem;
    border-radius: 0.625rem;
  }

  .checkout-payment__option + .checkout-payment__option {
    margin-top: 0.5rem;
  }

  .checkout-payment__label {
    font-size: 0.875rem;
  }

  .checkout-payment__radio-dot {
    width: 1.125rem;
    height: 1.125rem;
  }

  /* ------------------------------------------------------------------
       Bottom Bar — Mobile
       ------------------------------------------------------------------ */
  .checkout-bottom-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    margin-top: 0;
    border-top: none;
    box-shadow: 0 -0.25rem 0.75rem rgba(0, 0, 0, 0.04);
  }

  .checkout-bottom-bar__inner {
    height: auto;
    padding: 0.625rem;
    padding-bottom: calc(0.625rem + env(safe-area-inset-bottom));
    flex-wrap: wrap;
    align-items: center;
  }

  .checkout-bottom-bar__info-group {
    display: none;
  }

  .checkout-bottom-bar__total-group {
    flex: 1;
    padding-left: 0;
    padding-right: 0;
    flex-direction: row;
    align-items: center;
  }

  .checkout-bottom-bar__total {
    display: flex;
    align-items: center;
  }

  .checkout-bottom-bar__amount {
    font-size: 1rem;
    font-weight: 800;
    order: 2;
  }

  .checkout-bottom-bar__orig {
    font-size: 0.75rem;
    order: 3;
    margin-left: 0.375rem;
  }

  .checkout-bottom-bar__saving {
    display: none;
  }

  .checkout-bottom-bar__total-group::before {
    content: "Tổng:";
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #424242;
    margin-right: 0.375rem;
    order: 0;
    flex-shrink: 0;
  }

  .checkout-bottom-bar__total {
    order: 1;
  }

  .checkout-bottom-bar__detail-link {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #09b8b3;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .checkout-bottom-bar__detail-link img {
    margin-left: 0.25rem;
  }

  .checkout-bottom-bar__btn {
    width: 100%;
    justify-content: center;
    height: auto;
    padding: 0.75rem 1.5rem;
    border-radius: 62.5rem;
    font-size: 0.75rem;
    margin-top: 0.625rem;
  }

  .checkout-bottom-bar__btn img {
    width: 0.875rem;
    height: 0.875rem;
  }

  /* ------------------------------------------------------------------
       Drawer / Bottom Sheet
       ------------------------------------------------------------------ */
  .checkout-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 900;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.4s;
  }

  .checkout-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;
  }

  .checkout-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .checkout-drawer.is-open .checkout-drawer__overlay {
    opacity: 1;
  }

  .checkout-drawer__wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
  }

  .checkout-drawer.is-open .checkout-drawer__wrapper {
    transform: translateY(0);
  }

  .checkout-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0.75rem;
  }

  .checkout-drawer__title {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    color: #ffffff;
    text-transform: capitalize;
    margin: 0;
  }

  .checkout-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .checkout-drawer__sheet {
    background: #ffffff;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(85vh - 3rem);
  }

  .checkout-drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.875rem;
  }

  .checkout-drawer__footer {
    background: #ffffff;
    box-shadow: 0 -0.25rem 0.75rem rgba(0, 0, 0, 0.04);
    padding: 0.625rem;
    padding-bottom: calc(0.625rem + env(safe-area-inset-bottom));
    flex-shrink: 0;
  }

  .checkout-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(110.6deg, #09b8b3 3%, #4dcbdf 99%);
    border: none;
    border-radius: 62.5rem;
    padding: 0.75rem 1.5rem;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
  }

  .checkout-drawer__cta img {
    margin-left: 0.375rem;
  }

  /* Drawer: cart item variant */
  .checkout-drawer--variant {
    z-index: 20000;
  }

  .checkout-drawer--variant[data-portaled-variant-drawer="1"] {
    z-index: 2147483000;
  }

  body.variant-drawer-open #block-crosssell,
  body.variant-drawer-open .checkout-bottom-bar {
    visibility: hidden;
    pointer-events: none;
  }

  .checkout-drawer--variant .checkout-drawer__sheet {
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__body {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    min-height: 0;
    max-height: calc(85vh - 3rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__product {
    display: flex;
    align-items: center;
    padding: 1rem 1rem 1.25rem;
    border-bottom: 0.0375rem solid rgba(0, 0, 0, 0.15);
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__product-image {
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.5rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #d0dbdb;
    margin-right: 0.5rem;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__product-info {
    min-width: 0;
    flex: 1;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__product-title {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #424242;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__product-price {
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__price-sale {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    color: #ff6a3d;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__price-regular {
    margin-left: 0.375rem;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1;
    color: #a4a4a4;
    text-decoration: line-through;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__product-variant {
    margin-top: 0.375rem;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(66, 66, 66, 0.8);
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__group {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
    margin-top: 1.25rem;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__group-title {
    margin-bottom: 0.375rem;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #424242;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__options {
    display: flex;
    flex-wrap: wrap;
  }

  .checkout-drawer--variant
    .header-cart-product-gift-drawer__option
    + .header-cart-product-gift-drawer__option {
    margin-left: 0.375rem;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.75rem;
    height: 1.625rem;
    padding: 0 0.625rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 62.5rem;
    background: #ffffff;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(66, 66, 66, 0.6);
    cursor: pointer;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__option.is-active {
    border-color: transparent;
    background: linear-gradient(100.3deg, #6f6f6f 0%, #383838 100%);
    color: #ffffff;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__option.is-static {
    cursor: default;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__footer {
    margin-top: 3.75rem;
    padding: 1rem;
    border-top: 0.0375rem solid rgba(0, 0, 0, 0.15);
    background: #ffffff;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.375rem;
    border-radius: 62.5rem;
    background: linear-gradient(110.6deg, #09b8b3 3%, #4dcbdf 99%);
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
  }

  .checkout-drawer--variant .header-cart-product-gift-drawer__confirm svg {
    width: 0.875rem;
    height: 0.875rem;
    margin-left: 0.375rem;
  }

  /* Drawer form fields */
  .checkout-drawer__form {
    display: flex;
    flex-direction: column;
  }

  .checkout-drawer__field {
    display: flex;
    flex-direction: column;
  }

  .checkout-drawer__field + .checkout-drawer__field {
    margin-top: 0.75rem;
  }

  .checkout-drawer__label {
    display: flex;
    align-items: center;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(66, 66, 66, 0.8);
    margin-bottom: 0.5rem;
  }

  .checkout-drawer__label img {
    margin-left: 0.25rem;
  }

  .checkout-drawer__input {
    background: #ffffff;
    border: 0.8px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    padding: 0.8125rem 0.75rem;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1a;
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
  }

  .checkout-drawer__input::placeholder {
    color: rgba(26, 26, 26, 0.3);
    font-weight: 500;
  }

  .checkout-drawer__input:focus-visible {
    border-color: #09b8b3;
  }

  .checkout-drawer__field--error .checkout-drawer__input,
  .checkout-drawer__field--error .custom-select__trigger {
    border-color: #ff3b30;
    box-shadow: 0 0 0 0.125rem rgba(255, 59, 48, 0.12);
  }

  .checkout-drawer__textarea {
    background: #ffffff;
    border: 0.8px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    padding: 0.8125rem 0.75rem;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1a;
    outline: none;
    width: 100%;
    min-height: 7rem;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
  }

  .checkout-drawer__textarea::placeholder {
    color: rgba(26, 26, 26, 0.3);
  }

  .checkout-drawer__textarea:focus-visible {
    border-color: #09b8b3;
  }

  /* iOS Safari tự phóng to (zoom) khi focus input có font-size < 16px (drawer dùng
     0.875rem ≈ 14px tại 375px). Pin 16px để chặn auto-zoom + layout nhảy khi nhập
     SĐT/email/địa chỉ/voucher. Ngoại lệ px bắt buộc theo nền tảng iOS. */
  .checkout-drawer__input,
  .checkout-drawer__textarea {
    font-size: 16px;
  }

  .checkout-drawer__helper {
    display: block;
    margin-top: 0.5rem;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(66, 66, 66, 0.6);
  }

  /* Address selects inside drawer */
  .checkout-drawer__address-selects {
    display: flex;
    flex-direction: column;
  }

  .checkout-drawer__address-selects > .custom-select,
  .checkout-drawer__address-selects > select.js-custom-select {
    width: 100%;
  }

  /* Native <select> (touch, không hydrate) hoặc wrapper .custom-select (desktop) —
     đều cần margin-top so với hàng quận/xã bên dưới. */
  .checkout-drawer__address-selects > .custom-select + .checkout-drawer__address-row,
  .checkout-drawer__address-selects > select.js-custom-select + .checkout-drawer__address-row {
    margin-top: 0.625rem;
  }

  .checkout-drawer__address-row {
    display: flex;
  }

  .checkout-drawer__address-row > .custom-select,
  .checkout-drawer__address-row > select.js-custom-select {
    flex: 1;
    min-width: 0;
  }

  .checkout-drawer__address-row > .custom-select + .custom-select,
  .checkout-drawer__address-row > select.js-custom-select + select.js-custom-select {
    margin-left: 0.625rem;
  }

  .checkout-drawer__address-selects + .checkout-drawer__input {
    margin-top: 0.625rem;
  }

  /* ------------------------------------------------------------------
       Drawer: Voucher variant
       ------------------------------------------------------------------ */
  .checkout-drawer__body--voucher {
    padding: 0;
    background: #f9f9f9;
  }

  .checkout-drawer__voucher-input-row {
    background: #ffffff;
    padding: 0.75rem 1rem;
  }

  .checkout-drawer__voucher-input-wrap {
    display: flex;
    align-items: center;
    border: 0.8px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
  }

  .checkout-drawer__voucher-input {
    border: none;
    border-radius: 0;
    flex: 1;
  }

  .checkout-drawer__voucher-apply-btn {
    flex-shrink: 0;
    background: linear-gradient(110.6deg, #09b8b3 3%, #4dcbdf 99%);
    border: none;
    border-radius: 0.625rem;
    padding: 0.75rem 1.25rem;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.925rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    margin: 0.125rem;
  }

  .checkout-drawer__voucher-list {
    padding: 0.75rem 0.875rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .checkout-drawer__voucher-card {
    position: relative;
    border-radius: 0.625rem;
    overflow: visible;
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.08);
    cursor: pointer;
  }

  .checkout-drawer__voucher-card--disabled {
    cursor: default;
  }

  .checkout-drawer__voucher-card--disabled .checkout-drawer__voucher-bg-img {
    filter: grayscale(1);
    opacity: 0.45;
  }

  .checkout-drawer__voucher-card--disabled .checkout-drawer__voucher-code,
  .checkout-drawer__voucher-card--disabled .checkout-drawer__voucher-desc,
  .checkout-drawer__voucher-card--disabled .checkout-drawer__voucher-expiry {
    color: rgba(66, 66, 66, 0.45);
  }

  .checkout-drawer__voucher-card--disabled .checkout-drawer__voucher-discount {
    color: rgba(66, 66, 66, 0.35);
  }

  .checkout-drawer__voucher-card + .checkout-drawer__voucher-card {
    margin-top: 0.625rem;
  }

  .checkout-drawer__voucher-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.625rem;
    pointer-events: none;
  }

  .checkout-drawer__voucher-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    min-height: 7.5625rem;
  }

  .checkout-drawer__voucher-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }

  .checkout-drawer__voucher-code {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #424242;
    text-transform: uppercase;
    letter-spacing: 0.013rem;
  }

  .checkout-drawer__voucher-desc {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(66, 66, 66, 0.6);
    margin-top: 0.25rem;
    letter-spacing: -0.0075rem;
    padding-right: 0.88rem;
  }

  .checkout-drawer__voucher-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
  }

  .checkout-drawer__voucher-expiry {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(66, 66, 66, 0.6);
    margin-right: 0.75rem;
  }

  .checkout-drawer__voucher-status {
    font-size: 0.75rem;
    font-weight: 500;
    color: #00a991;
    margin-right: 0.75rem;
    display: none;
  }

  .checkout-drawer__voucher-card--applied .checkout-drawer__voucher-status {
    display: inline;
  }

  .checkout-drawer__voucher-condition {
    font-size: 0.75rem;
    font-weight: 500;
    color: #3895e2;
    text-decoration: underline;
  }

  .checkout-drawer__voucher-condition-note {
    position: absolute;
    z-index: 6;
    width: max-content;
    max-width: min(16.5rem, calc(100% - 1.25rem));
    margin: 0;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    background: rgba(26, 26, 26, 0.94);
    color: #ffffff;
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.16);
    transform: translate(-50%, -100%);
  }

  .checkout-drawer__voucher-condition-note::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(26, 26, 26, 0.94);
    transform: translateX(-50%) rotate(45deg);
  }

  .checkout-drawer__voucher-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    flex-shrink: 0;
    margin-left: 0.5rem;
  }

  .checkout-drawer__voucher-cb-wrap {
    cursor: pointer;
  }

  .checkout-drawer__voucher-card--disabled .checkout-drawer__voucher-cb-wrap {
    cursor: not-allowed;
  }

  .checkout-drawer__voucher-cb-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .checkout-drawer__voucher-cb-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
  }

  .checkout-drawer__voucher-discount {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #09b8b3;
    line-height: 1;
  }

  .checkout-drawer__footer--voucher {
    display: flex;
    flex-direction: column;
  }

  .checkout-drawer__voucher-savings {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(66, 66, 66, 0.6);
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .checkout-drawer__voucher-savings-amount {
    font-weight: 700;
    color: #ff6a3d;
  }

  /* ------------------------------------------------------------------
       Drawer: Detail (Xem chi tiết) — header inside sheet
       ------------------------------------------------------------------ */
  .checkout-drawer__wrapper--detail {
    max-height: none;
  }

  .checkout-drawer--detail .checkout-drawer__header {
    display: none;
  }

  .checkout-drawer__sheet--detail {
    border-radius: 1rem 1rem 0 0;
  }

  .checkout-drawer__detail-header {
    position: relative;
    padding: 0.875rem 0.75rem 0.75rem;
    border-bottom: 0.8px solid rgba(0, 0, 0, 0.1);
  }

  .checkout-drawer__detail-price-row {
    display: flex;
    align-items: center;
  }

  .checkout-drawer__detail-label {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #424242;
    margin-right: 0.375rem;
  }

  .checkout-drawer__detail-sale {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #ff6a3d;
  }

  .checkout-drawer__detail-orig {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #a4a4a4;
    text-decoration: line-through;
    margin-left: 0.375rem;
  }

  .checkout-drawer__detail-saving {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(66, 66, 66, 0.6);
    margin-top: 0.25rem;
  }

  .checkout-drawer__detail-saving strong {
    font-weight: 700;
    color: #424242;
  }

  .checkout-drawer__close--detail {
    position: absolute;
    top: 0.875rem;
    right: 0.75rem;
  }

  .checkout-drawer__detail-body {
    padding: 0.625rem 0.875rem 0.75rem;
  }

  .checkout-drawer__detail-lines {
    display: flex;
    flex-direction: column;
  }

  .checkout-drawer__detail-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .checkout-drawer__detail-line + .checkout-drawer__detail-line {
    margin-top: 0.625rem;
  }

  .checkout-drawer__detail-line-label {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(66, 66, 66, 0.6);
  }

  .checkout-drawer__detail-line-value {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #424242;
  }

  .checkout-drawer__detail-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.75rem 0;
  }

  .checkout-drawer__detail-total-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .checkout-drawer__detail-total-label {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(66, 66, 66, 0.6);
    padding-top: 0.125rem;
  }

  .checkout-drawer__detail-total-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .checkout-drawer__detail-total-amount {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 800;
    color: #09b8b3;
  }

  .checkout-drawer__detail-total-saved {
    font-family: "SVN-Gilroy", "Open Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(66, 66, 66, 0.8);
    margin-top: 0.125rem;
  }

  .checkout-drawer__detail-total-saved strong {
    font-weight: 700;
    color: #424242;
  }

  /* Body scroll lock when drawer is open */
  body.drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Async pending states — voucher / totals recalc
   -------------------------------------------------------------------------- */
.checkout-voucher__card--loading {
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.checkout-recalc-pending .checkout-summary__line-value,
.checkout-recalc-pending .checkout-summary__total-amount,
.checkout-recalc-pending .checkout-summary__total-saved,
.checkout-recalc-pending .checkout-order__sticky-amount,
.checkout-recalc-pending .checkout-order__sticky-orig,
.checkout-recalc-pending .checkout-order__sticky-saving,
.checkout-recalc-pending .checkout-bottom-bar__amount,
.checkout-recalc-pending .checkout-bottom-bar__orig,
.checkout-recalc-pending .checkout-bottom-bar__saving,
.checkout-recalc-pending .checkout-voucher__applied-amount {
  opacity: 0.4;
  transition: opacity 0.15s ease;
}
