/* Soap Flower v1.0.52 — khóa kích thước thanh đặt hàng và tăng tương phản voucher */

:root {
  --sf-co-rose: #d94e7c;
  --sf-co-rose-dark: #c73e6b;
  --sf-co-rose-soft: #fff5f8;
  --sf-co-sage: #39a58f;
  --sf-co-sage-soft: #f3fbf9;
  --sf-co-ink: #272327;
  --sf-co-text: #5f595e;
  --sf-co-muted: #9a9498;
  --sf-co-line: #eeeeee;
  --sf-co-canvas: #f5f5f5;
}

.sf-checkout-mobile-head,
.sf-shipping-cards {
  display: none;
}

.sf-checkout-mobile-head svg,
.sf-address-pin svg,
.sf-address-change svg,
.sf-order-extra-value svg,
.sf-voucher-row-icon svg,
.sf-voucher-row-value > svg,
.sf-payment-method-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-address-pin {
  display: grid;
  place-items: center;
  color: var(--sf-co-rose);
}

.sf-address-card-body {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: start;
  column-gap: 9px;
  min-width: 0;
}

.sf-address-card-body > .sf-address-pin {
  grid-column: 1;
  margin-top: 1px;
}

.sf-address-card-body > .sf-address-summary {
  grid-column: 2;
  min-width: 0;
}

.sf-shop-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.sf-shop-row > span {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--sf-co-rose);
  color: #fff;
  font-size: 9px;
  line-height: 1.35;
}

.sf-shop-row > strong {
  color: var(--sf-co-ink);
  font-size: 14px;
}

.sf-shop-row > small {
  margin-left: auto;
  color: var(--sf-co-muted);
  font-size: 10px;
}

.sf-product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.sf-order-card-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 54px;
  padding: 13px 22px;
  background: #fff;
}

.sf-order-card-total span {
  color: #716b70;
  font-size: 12px;
}

.sf-order-card-total strong {
  color: var(--sf-co-ink);
  font-size: 16px;
}

.sf-voucher-row-label,
.sf-voucher-row-value,
.sf-voucher-row-selected {
  display: flex;
  align-items: center;
}

.sf-voucher-row-label {
  gap: 9px;
  min-width: 0;
}

.sf-voucher-row-label b {
  color: var(--sf-co-ink);
  font-size: 13px;
}

.sf-voucher-row-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: var(--sf-co-rose);
}

.sf-voucher-row-icon svg {
  width: 19px;
  height: 19px;
}

.sf-voucher-row-value {
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  color: #aaa4a8;
}

.sf-voucher-row-value > small {
  color: var(--sf-co-muted);
  font-size: 11px;
  white-space: nowrap;
}

.sf-voucher-row-selected {
  gap: 6px;
}

.sf-voucher-row-selected small {
  color: var(--sf-co-muted);
  font-size: 9px;
}

.sf-voucher-row-selected strong {
  font-size: 12px;
  white-space: nowrap;
}

.sf-order-extra-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  color: #aaa4a8;
}

.sf-order-extra-value small {
  max-width: 260px;
  overflow: hidden;
  color: var(--sf-co-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-order-extra-toggle {
  color: #888286;
  font-size: 11px;
  white-space: nowrap;
}

.sf-shipping-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sf-shipping-heading h3,
.sf-checkout-section-title h3,
.sf-total-heading h3 {
  margin: 0;
  color: var(--sf-co-ink);
  font-size: 15px;
}

.sf-shipping-heading strong {
  color: var(--sf-co-ink);
  font-size: 13px;
  white-space: nowrap;
}

.sf-shipping-native {
  width: 100%;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0 11px;
  background: #fff;
}

.sf-shipping-cards {
  gap: 8px;
}

.sf-shipping-card {
  position: relative;
  width: 100%;
  min-height: 78px;
  overflow: hidden;
  padding: 11px 13px 10px 16px;
  border: 1px solid #e1e1e1;
  border-radius: 7px;
  background: #fff;
  color: var(--sf-co-ink);
  text-align: left;
}

.sf-shipping-card.is-selected {
  border-color: var(--sf-co-sage);
  background: var(--sf-co-sage-soft);
}

.sf-shipping-card:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.sf-shipping-check {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  display: none;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1px 0 0 3px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background: var(--sf-co-sage);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.sf-shipping-card.is-selected .sf-shipping-check {
  display: flex;
}

.sf-shipping-card-copy,
.sf-shipping-card-copy b,
.sf-shipping-card-copy span,
.sf-shipping-card-copy small {
  display: block;
}

.sf-shipping-card-copy b {
  margin-bottom: 3px;
  font-size: 12.5px;
}

.sf-shipping-card-copy span {
  color: #4f4a4e;
  font-size: 11px;
  line-height: 1.4;
}

.sf-shipping-card-copy small {
  margin-top: 2px;
  color: #918b8f;
  font-size: 9.5px;
  line-height: 1.35;
}

.sf-shipping-live-note,
.sf-ghtk-breakdown:not([hidden]) {
  margin-top: 7px;
  color: var(--sf-co-muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.sf-payment-method-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--sf-co-rose);
}

.sf-payment-method-icon svg {
  width: 21px;
  height: 21px;
}

.sf-payment-copy,
.sf-payment-copy b,
.sf-payment-copy small {
  display: block;
}

.sf-payment-copy {
  min-width: 0;
}

.sf-payment-copy b {
  color: var(--sf-co-ink);
  font-size: 13px;
  font-weight: 500;
}

.sf-payment-copy small {
  margin-top: 2px;
  color: var(--sf-co-muted);
  font-size: 9.5px;
}

.sf-payment-radio {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid #d4d0d2;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 11px;
  font-weight: 800;
}

.payoption:has(input:checked) .sf-payment-radio {
  border-color: var(--sf-co-rose);
  background: var(--sf-co-rose);
  color: #fff;
}

.payoption > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.sf-order-protection {
  color: #777176;
  font-size: 10px;
  line-height: 1.45;
}

.sf-placeorder-total {
  display: none;
}

@media (min-width: 769px) {
  .sf-order-card {
    display: contents;
  }

  .sf-order-card-total {
    border-bottom: 1px solid var(--sf-co-line);
  }

  .sf-checkout-products-section .checkout-product {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-checkout-products-section .cartproduct {
    align-items: flex-start;
  }

  .sf-checkout-product-copy {
    flex: 1;
  }

  .sf-payment-section .payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .sf-payment-section .payoption {
    position: relative;
    min-height: 62px;
  }
}

@media (max-width: 768px) {
  html {
    background: var(--sf-co-canvas);
  }

  body.sf-checkout-body {
    min-width: 0;
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
    background: var(--sf-co-canvas);
    color: var(--sf-co-ink);
    font-size: 12px;
  }

  .sf-checkout-body > .header,
  .sf-checkout-body > .footer,
  .sf-checkout-body > .sf-chat-launcher,
  .sf-checkout-body .sf-checkout-desktop-tools,
  .sf-checkout-body .breadcrumb {
    display: none !important;
  }

  .sf-checkout-body .sf-chat-panel:not(.open):not(.show) {
    display: none;
  }

  .sf-checkout-mobile-head {
    position: sticky;
    z-index: 70;
    top: 0;
    height: calc(56px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
  }

  .sf-checkout-mobile-head button {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--sf-co-rose);
  }

  .sf-checkout-mobile-head button svg {
    width: 25px;
    height: 25px;
  }

  .sf-checkout-mobile-head strong {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
  }

  .sf-checkout-body .checkoutpage.container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 8px 9px 0;
  }

  .sf-checkout-body .checkoutbox {
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sf-checkout-body #checkoutForm {
    display: grid;
    gap: 8px;
  }

  .sf-checkout-body .checkout-section {
    margin: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  /* Địa chỉ: một hàng gọn như app */
  .sf-checkout-body .sf-address-card {
    position: relative;
    min-height: 84px;
    padding: 15px 38px 14px 14px;
    border-radius: 11px;
    cursor: pointer;
  }

  .sf-checkout-body .sf-address-card-body {
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    align-items: start;
    column-gap: 9px;
    min-width: 0;
  }

  .sf-checkout-body .sf-address-pin {
    grid-column: 1;
    margin-top: 1px;
  }

  .sf-checkout-body .sf-address-summary {
    grid-column: 2;
    min-width: 0;
  }

  .sf-checkout-body .sf-address-pin svg {
    width: 21px;
    height: 21px;
  }

  .sf-checkout-body .sf-address-summary,
  .sf-checkout-body .sf-address-summary.is-empty {
    display: block;
  }

  .sf-checkout-body .sf-address-summary-contact {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    margin-bottom: 4px;
  }

  .sf-checkout-body .sf-address-summary-contact strong {
    color: var(--sf-co-ink);
    font-size: 13.5px;
  }

  .sf-checkout-body .sf-address-summary-contact span {
    overflow: hidden;
    color: #8d878b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sf-checkout-body .sf-address-summary-copy {
    display: -webkit-box;
    overflow: hidden;
    color: #625d61;
    font-size: 11.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .sf-checkout-body .sf-address-default {
    display: none !important;
  }

  .sf-checkout-body .sf-address-change {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 28px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    color: #b0aaae;
  }

  .sf-checkout-body .sf-address-change span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .sf-checkout-body .sf-address-change svg {
    width: 18px;
    height: 18px;
  }

  /* Form địa chỉ dạng sheet phẳng, ít trang trí */
  .sf-checkout-body .sf-address-editor-dialog {
    max-width: 520px;
    max-height: 95dvh;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
  }

  .sf-checkout-body .sf-address-editor-head {
    min-height: 54px;
    align-items: center;
    padding: 11px 14px;
    border-bottom-color: #eee;
  }

  .sf-checkout-body .sf-address-editor-head h3 {
    font-size: 15px;
    font-weight: 600;
  }

  .sf-checkout-body .sf-address-editor-head p {
    display: none;
  }

  .sf-checkout-body .sf-address-editor-x {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    background: transparent;
  }

  .sf-checkout-body .sf-address-editor-body {
    padding: 12px 14px 15px;
  }

  .sf-checkout-body .sf-address-editor-body .sf-address-guide {
    margin: 0 0 11px;
    padding: 0;
    background: transparent;
    color: #918a8f;
    font-size: 9.5px;
  }

  .sf-checkout-body .sf-address-editor-body .formgrid {
    gap: 10px;
  }

  .sf-checkout-body .sf-address-editor-body .field {
    gap: 4px;
  }

  .sf-checkout-body .sf-address-editor-body .field label {
    font-size: 10.5px;
    font-weight: 550;
  }

  .sf-checkout-body .sf-address-editor-body .field input,
  .sf-checkout-body .sf-address-editor-body .field textarea {
    height: 44px;
    border-color: #dfdfdf;
    border-radius: 5px;
    font-size: 16px;
  }

  .sf-checkout-body .sf-address-editor-foot {
    padding: 10px 14px max(11px, env(safe-area-inset-bottom));
    border-top-color: #eee;
    box-shadow: none;
  }

  .sf-checkout-body .sf-address-remember b {
    font-size: 10.5px;
  }

  .sf-checkout-body .sf-address-remember small {
    font-size: 8.5px;
  }

  .sf-checkout-body .sf-address-editor-actions {
    margin-top: 10px;
  }

  .sf-checkout-body .sf-address-editor-actions button {
    height: 43px;
    border-radius: 5px;
    font-size: 12px;
  }

  /* Một khối đơn hàng duy nhất */
  .sf-checkout-body .sf-order-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 11px;
    background: #fff;
  }

  .sf-checkout-body .sf-order-card > .checkout-section {
    border-bottom: 1px solid var(--sf-co-line);
    border-radius: 0;
  }

  .sf-checkout-body .sf-checkout-products-section { order: 1; padding: 14px 14px 13px; }
  .sf-checkout-body .sf-order-extra { order: 2; padding: 0 14px; }
  .sf-checkout-body .sf-shipping-section { order: 3; padding: 15px 14px 14px; }
  .sf-checkout-body .sf-checkout-voucher-section { order: 4; padding: 0 14px; border-bottom: 1px solid var(--sf-co-line); }
  .sf-checkout-body .sf-order-card-total { order: 5; }

  .sf-checkout-body .sf-shop-row {
    margin-bottom: 12px;
  }

  .sf-checkout-body .sf-shop-row > strong {
    font-size: 13px;
    font-weight: 650;
  }

  .sf-checkout-body .sf-direct-checkout-note {
    margin: -4px 0 10px;
    color: var(--sf-co-muted);
    font-size: 9px;
  }

  .sf-checkout-body .checkout-products {
    gap: 0;
  }

  .sf-checkout-body .checkout-product {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
  }

  .sf-checkout-body .checkout-product:first-child { padding-top: 0; }
  .sf-checkout-body .checkout-product:last-child { padding-bottom: 0; border-bottom: 0; }

  .sf-checkout-body .checkout-product .cartproduct {
    align-items: flex-start;
    gap: 10px;
  }

  .sf-checkout-body .checkout-product .cartproduct img {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border: 1px solid #ededed;
    border-radius: 4px;
    object-fit: cover;
  }

  .sf-checkout-body .sf-checkout-product-copy {
    min-width: 0;
    flex: 1;
  }

  .sf-checkout-body .sf-checkout-product-copy > b {
    display: -webkit-box;
    overflow: hidden;
    color: #393438;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .sf-checkout-body .checkout-product .variant {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 3px;
    color: #999397;
    font-size: 10px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .sf-checkout-body .sf-product-bottom {
    margin-top: 8px;
  }

  .sf-checkout-body .sf-checkout-product-price {
    color: var(--sf-co-rose-dark);
    font-size: 14px;
  }

  .sf-checkout-body .sf-checkout-product-qty {
    color: #777176;
    font-size: 10.5px;
  }

  /* Voucher và lời nhắn là hàng danh sách, không còn thẻ con */
  .sf-checkout-body #voucher-shop .sf-modern-voucher-trigger {
    width: 100%;
    max-width: none;
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sf-checkout-body #voucher-shop .sf-voucher-row-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid var(--voucher-line, #efb0c4);
    border-radius: 8px;
    background: var(--voucher-soft, #fff0f5);
    color: var(--voucher-accent-deep, #b92f60);
  }

  .sf-checkout-body #voucher-shop .sf-voucher-row-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.15;
  }

  .sf-checkout-body #voucher-shop .sf-voucher-timer.is-trigger {
    max-width: 90px;
    overflow: hidden;
    margin: 0;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sf-checkout-body #voucher-shop .sf-voucher-row-value > svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  .sf-checkout-body .voucher-inline-status,
  .sf-checkout-body #voucher-shop .voucher-warning {
    margin: 0 0 10px;
  }

  .sf-checkout-body .sf-order-extra > summary {
    min-height: 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    list-style: none;
  }

  .sf-checkout-body .sf-order-extra > summary::-webkit-details-marker { display: none; }

  .sf-checkout-body .sf-order-extra > summary b {
    font-size: 12.5px;
    font-weight: 500;
  }

  .sf-checkout-body .sf-order-extra-value small {
    display: none;
  }

  .sf-checkout-body .sf-order-extra[open] .sf-order-extra-toggle {
    font-size: 0;
  }

  .sf-checkout-body .sf-order-extra[open] .sf-order-extra-toggle::before {
    content: 'Thu gọn';
    font-size: 10.5px;
  }

  .sf-checkout-body .sf-order-extra-value svg {
    width: 17px;
    height: 17px;
  }

  .sf-checkout-body .sf-order-extra-fields {
    margin: 0;
    padding: 0 0 13px;
    border-top: 0;
  }

  .sf-checkout-body .sf-order-extra-fields .field {
    gap: 4px;
  }

  .sf-checkout-body .sf-order-extra-fields .field label {
    font-size: 10px;
  }

  .sf-checkout-body .sf-order-extra-fields .field input,
  .sf-checkout-body .sf-order-extra-fields .field textarea {
    border-color: #e2e2e2;
    border-radius: 5px;
    font-size: 16px;
  }

  .sf-checkout-body .sf-order-extra-fields textarea {
    min-height: 72px;
  }

  .sf-checkout-body .sf-order-extra-note {
    color: var(--sf-co-muted);
    font-size: 8.5px;
  }

  .sf-checkout-body.sf-mobile-checkout-ready .sf-shipping-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
  }

  .sf-checkout-body.sf-mobile-checkout-ready .sf-shipping-cards {
    display: grid;
  }

  .sf-checkout-body .sf-order-card-total {
    min-height: 54px;
    gap: 16px;
    padding: 12px 14px;
  }

  .sf-checkout-body .sf-order-card-total span { font-size: 11px; }
  .sf-checkout-body .sf-order-card-total strong { font-size: 14px; }

  /* Thanh toán và tổng tiền là hai khối phẳng */
  .sf-checkout-body .sf-payment-section,
  .sf-checkout-body .sf-checkout-total-section {
    overflow: hidden;
    padding: 0;
    border-radius: 11px;
  }

  .sf-checkout-body .sf-payment-section .sf-checkout-section-title,
  .sf-checkout-body .sf-total-heading {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 14px;
  }

  .sf-checkout-body .sf-payment-section h3,
  .sf-checkout-body .sf-total-heading h3 {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .sf-checkout-body .sf-payment-section .payment-options {
    display: block;
  }

  .sf-checkout-body .sf-payment-section .payoption {
    position: relative;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 0;
    border-top: 1px solid var(--sf-co-line);
    border-radius: 0;
    background: #fff;
  }

  .sf-checkout-body .sf-payment-section .payoption:has(input:checked) {
    border-color: var(--sf-co-line);
    background: #fff;
    color: inherit;
  }

  .sf-checkout-body .checkout-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 15px;
    max-width: none;
    margin: 0;
    padding: 0 14px 14px;
    color: #6d676b;
    font-size: 11.5px;
  }

  .sf-checkout-body .checkout-summary > b,
  .sf-checkout-body .checkout-summary > strong {
    padding-top: 10px;
    border-top: 1px solid var(--sf-co-line);
    color: var(--sf-co-ink);
  }

  .sf-checkout-body .checkout-summary > b {
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .sf-checkout-body .checkout-summary > strong {
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
  }

  .sf-checkout-body .sf-order-protection {
    margin: 0;
    padding: 12px 14px 3px;
    background: var(--sf-co-canvas);
    color: #777176;
    font-size: 9.5px;
  }

  /* Thanh đặt hàng cố định */
  .sf-checkout-body .placeorder {
    position: fixed;
    z-index: 65;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: calc(60px + env(safe-area-inset-bottom));
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 116px !important;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 9px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid #e9e9e9;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
    overflow: visible;
  }

  .sf-checkout-body .sf-placeorder-total {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-content: end;
    gap: 0 5px;
    justify-items: end;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    justify-self: stretch;
    overflow: visible;
  }

  .sf-checkout-body .sf-placeorder-total > span {
    color: #555055;
    font-family: inherit;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .sf-checkout-body .sf-placeorder-total > strong {
    color: var(--sf-co-rose-dark);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .sf-checkout-body .sf-placeorder-total > small {
    grid-column: 1 / -1;
    color: var(--sf-co-rose);
    font-family: inherit;
    font-size: 8.5px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .sf-checkout-body .placeorder .pinkbtn {
    width: 116px !important;
    max-width: 116px !important;
    min-width: 0 !important;
    height: 44px;
    padding: 0 10px;
    border-radius: 5px;
    background: var(--sf-co-rose);
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0;
    flex: 0 0 116px !important;
    justify-self: end;
    margin: 0 !important;
  }

  .sf-checkout-body .toast {
    bottom: calc(68px + env(safe-area-inset-bottom));
  }

  /* Popup voucher cũng phẳng và nhỏ chữ hơn */
  .sf-checkout-body .sf-modern-voucher-modal .voucher-dialog {
    max-width: 520px;
    max-height: 94dvh;
    border: 0;
    border-radius: 14px 14px 0 0;
    background: #fff;
    box-shadow: 0 -10px 34px rgba(0, 0, 0, .14);
  }

  .sf-checkout-body .sf-modern-voucher-modal .voucher-dialog-head {
    min-height: 58px;
    padding: 13px 14px 11px;
    border-bottom: 1px solid #eee;
    background: #fff;
  }

  .sf-checkout-body .sf-modern-voucher-modal .sf-dialog-eyebrow,
  .sf-checkout-body .sf-modern-voucher-modal .voucher-dialog-head p {
    display: none;
  }

  .sf-checkout-body .sf-modern-voucher-modal .voucher-dialog-head h3 {
    margin: 5px 0 0;
    font-size: 16px;
    font-weight: 600;
  }

  .sf-checkout-body .sf-modern-voucher-modal .voucher-list {
    padding: 10px 10px max(14px, env(safe-area-inset-bottom));
  }

  .sf-checkout-body .sf-modern-voucher-modal .voucher-ticket {
    min-height: 98px;
    grid-template-columns: 56px minmax(0, 1fr) 31px;
    border-radius: 7px;
    box-shadow: none;
  }

  .sf-checkout-body .sf-modern-voucher-modal .voucher-ticket-content {
    padding: 10px 4px 9px 0;
  }

  .sf-checkout-body .sf-modern-voucher-modal .sf-voucher-title {
    font-size: 12.5px;
  }

  .sf-checkout-body .sf-modern-voucher-modal .sf-voucher-description,
  .sf-checkout-body .sf-modern-voucher-modal .condition {
    font-size: 9px;
  }

  .sf-checkout-body button:focus-visible,
  .sf-checkout-body a:focus-visible,
  .sf-checkout-body label:has(input:focus-visible) {
    outline: 2px solid rgba(217, 78, 124, .28);
    outline-offset: 2px;
  }
}

@media (max-width: 360px) {
  .sf-checkout-body .checkoutpage.container {
    padding-right: 6px;
    padding-left: 6px;
  }

  .sf-checkout-body .sf-address-card {
    padding-right: 34px;
    padding-left: 12px;
  }

  .sf-checkout-body .checkout-product .cartproduct img {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .sf-checkout-body .sf-voucher-row-selected small,
  .sf-checkout-body #voucher-shop .sf-voucher-timer.is-trigger {
    display: none;
  }

  .sf-checkout-body .placeorder {
    grid-template-columns: minmax(0, 1fr) 112px !important;
    padding-right: 7px;
    padding-left: 7px;
  }

  .sf-checkout-body .placeorder .pinkbtn {
    width: 112px !important;
    max-width: 112px !important;
    flex-basis: 112px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-shipping-card,
  .sf-checkout-body .placeorder .pinkbtn {
    transition: none;
  }
}


/* v1.0.59 fix mobile checkout section order */
@media (max-width: 768px) {
  .sf-checkout-body #checkoutForm > .sf-address-card { order: 1; }
  .sf-checkout-body #checkoutForm > .sf-address-editor-overlay { order: 2; }
  .sf-checkout-body #checkoutForm > .sf-order-card { order: 3; }
  .sf-checkout-body #checkoutForm > .sf-checkout-voucher-section { order: 4; }
  .sf-checkout-body #checkoutForm > .sf-payment-section { order: 5; }
  .sf-checkout-body #checkoutForm > .sf-checkout-total-section { order: 6; }
}
