/* ES standard v2 (component theme 5) — commerce: cart, checkout wizard, order page.
   Literal values from dev_template/UI mockups setup/Marketplace Pro.dc.html lines
   604-849 (inline styles). Every rule is scoped to .sf-scope[data-ct="5"]; logical
   properties only (RTL first-class); the design's mobile layout at < 1000 px.
   Tokens / buttons / fields: css/es/tokens.css. */

/* ---------- shared: order summary aside (cart + checkout) ---------- */
.sf-scope[data-ct="5"] .es-summary { position: sticky; top: 190px; display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 20px; }
.sf-scope[data-ct="5"] .es-summary__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-summary__count { font-size: 14px; font-weight: 500; color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-summary__rows { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.sf-scope[data-ct="5"] .es-summary__r { display: flex; justify-content: space-between; gap: 12px; }
.sf-scope[data-ct="5"] .es-summary__r dt { color: var(--es-muted); font-weight: 400; }
.sf-scope[data-ct="5"] .es-summary__r dd { margin: 0; text-align: end; }
.sf-scope[data-ct="5"] .es-summary__r--credit,
.sf-scope[data-ct="5"] .es-summary__r--credit dt { color: var(--es-green); }
.sf-scope[data-ct="5"] .es-summary__r--total { padding-top: 10px; border-top: 1px solid var(--es-border); font-size: 17px; font-weight: 800; }
.sf-scope[data-ct="5"] .es-summary__r--total dt { color: var(--es-text); font-weight: 800; }
.sf-scope[data-ct="5"] .es-summary__r--note { font-size: 12px; }
.sf-scope[data-ct="5"] .es-summary__r--note dd { color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-summary__note { color: var(--es-muted); font-size: 13px; }
.sf-scope[data-ct="5"] .es-summary__code { display: inline-block; padding: 1px 6px; border-radius: 6px; background: var(--es-line); font-size: 11px; font-weight: 700; color: var(--es-text-2); vertical-align: middle; }
.sf-scope[data-ct="5"] .es-summary__was { color: var(--es-muted); margin-inline-end: 4px; }
.sf-scope[data-ct="5"] .es-summary__free { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--es-amber-soft); color: var(--es-amber-ink); font-size: 13px; font-weight: 600; }
.sf-scope[data-ct="5"] .es-summary__bar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--es-amber-ink) 15%, transparent); overflow: hidden; }
.sf-scope[data-ct="5"] .es-summary__fill { display: block; height: 100%; background: var(--es-amber); border-radius: 3px; }
.sf-scope[data-ct="5"] .es-summary__checkout { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px; border: 0; background: var(--es-blue); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.sf-scope[data-ct="5"] .es-summary__checkout:hover { background: var(--es-blue-ink); color: #fff; }
.sf-scope[data-ct="5"] .es-summary__continue { display: flex; align-items: center; justify-content: center; min-height: 44px; background: none; border: 0; color: var(--es-blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.sf-scope[data-ct="5"] .es-summary__issues { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FEE2E2; color: #B91C1C; font-size: 13px; font-weight: 600; }
.sf-scope[data-ct="5"] .es-summary__secure { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-summary__secure svg { flex: none; }

/* the shared discount-code partial (partial/coupon_box.html), restyled as the design's coupon row */
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon { display: flex; flex-direction: column; gap: 8px; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__toggle { padding: 0; min-height: 20px; background: none; border: 0; color: var(--es-blue); font-size: 13px; font-weight: 600; cursor: pointer; text-align: start; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__form { display: flex; flex-direction: column; gap: 6px; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__form[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__row { display: flex; gap: 8px; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--es-border); border-radius: 12px; background: var(--es-surface); font-size: 14px; font-weight: 400; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__input:focus { outline: none; border-color: var(--es-blue); }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__input.is-invalid { border-color: var(--es-red); }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__btn { height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--es-navy); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__error { margin: -2px 0 0; min-height: 16px; font-size: 13px; color: var(--es-red); }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__error[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #DCFCE7; color: var(--es-green); font-size: 13px; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__applied[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__tag { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__code { font-weight: 700; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__remove { flex: none; padding: 0; min-height: 24px; background: none; border: 0; color: var(--es-green); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__warn { margin: 0; font-size: 13px; color: var(--es-red); }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon__warn[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-summary__coupon .sf-coupon.is-busy { opacity: .7; }

/* ---------- cart ---------- */
/* The design's root line-height is `normal` (the scope sets 1.5); the lead's frame already
   leaves 20px under the header, so the page roots carry no top margin of their own. */
.sf-scope[data-ct="5"] .es-cart,
.sf-scope[data-ct="5"] .es-co,
.sf-scope[data-ct="5"] .es-ord { line-height: normal; }
.sf-scope[data-ct="5"] .es-cart { width: var(--es-wrap); margin: 0 auto; }
.sf-scope[data-ct="5"] .es-cart__title { margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-cart__count { font-size: 16px; font-weight: 500; color: var(--es-muted); letter-spacing: 0; }
.sf-scope[data-ct="5"] .es-cart__msg,
.sf-scope[data-ct="5"] .es-co__msg { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #FEE2E2; color: #B91C1C; font-size: 14px; }
.sf-scope[data-ct="5"] .es-cart__msg.is-error,
.sf-scope[data-ct="5"] .es-co__msg.is-error { display: block; }
.sf-scope[data-ct="5"] .es-cart__grid,
.sf-scope[data-ct="5"] .es-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sf-scope[data-ct="5"] .es-cart__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sf-scope[data-ct="5"] .es-cart__panel { background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 20px; overflow: hidden; }
.sf-scope[data-ct="5"] .es-cart__lines { list-style: none; margin: 0; padding: 0 18px; }
.sf-scope[data-ct="5"] .es-cart__line { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--es-line); }
.sf-scope[data-ct="5"] .es-cart__line.is-issue .es-cart__name,
.sf-scope[data-ct="5"] .es-cart__line.is-issue .es-cart__linetotal { color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-cart__media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--es-line); }
.sf-scope[data-ct="5"] .es-cart__img { width: 100%; height: 100%; object-fit: cover; }
.sf-scope[data-ct="5"] .es-cart__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sf-scope[data-ct="5"] .es-cart__top { display: flex; justify-content: space-between; gap: 12px; }
.sf-scope[data-ct="5"] .es-cart__name { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-cart__linetotal { font-size: 15px; font-weight: 700; white-space: nowrap; }
.sf-scope[data-ct="5"] .es-cart__meta { font-size: 13px; color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-cart__flags { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-scope[data-ct="5"] .es-cart__flag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.sf-scope[data-ct="5"] .es-cart__flag--out { background: #FEE2E2; color: #B91C1C; }
.sf-scope[data-ct="5"] .es-cart__flag--info { background: var(--es-amber-soft); color: var(--es-amber-ink); }
.sf-scope[data-ct="5"] .es-cart__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.sf-scope[data-ct="5"] .es-cart__qty { display: inline-flex; align-items: center; border: 1px solid var(--es-border); border-radius: 12px; }
.sf-scope[data-ct="5"] .es-cart__qtybtn { width: 40px; height: 40px; padding: 0; background: none; border: 0; color: var(--es-text); font-size: 18px; line-height: 1; cursor: pointer; }
.sf-scope[data-ct="5"] .es-cart__qtyinput { width: 44px; min-width: 28px; height: 40px; padding: 0; border: 0; background: none; text-align: center; font-size: 14px; font-weight: 700; color: var(--es-text); -moz-appearance: textfield; appearance: textfield; }
.sf-scope[data-ct="5"] .es-cart__qtyinput::-webkit-outer-spin-button,
.sf-scope[data-ct="5"] .es-cart__qtyinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sf-scope[data-ct="5"] .es-cart__qtyinput:focus { outline: none; }
.sf-scope[data-ct="5"] .es-cart__acts { display: flex; gap: 4px; }
.sf-scope[data-ct="5"] .es-cart__remove { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 8px; background: none; border: 0; color: var(--es-muted); font-size: 13px; cursor: pointer; }
.sf-scope[data-ct="5"] .es-cart__remove:hover { color: var(--es-red); }
.sf-scope[data-ct="5"] .es-cart__remove[disabled] { opacity: .55; cursor: wait; }
.sf-scope[data-ct="5"] .es-cart__empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 24px; text-align: center; background: var(--es-surface); border: 1px dashed #CBD5E1; border-radius: 22px; }
.sf-scope[data-ct="5"] .es-cart__emptyicon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--es-blue-soft); color: var(--es-blue); margin-bottom: 6px; }
.sf-scope[data-ct="5"] .es-cart__emptytitle { margin: 0; font-size: 19px; font-weight: 700; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-cart__emptytext { margin: 0; font-size: 14px; color: var(--es-muted); max-width: 36ch; line-height: 1.55; }
.sf-scope[data-ct="5"] .es-cart__start { display: inline-flex; align-items: center; margin-top: 10px; min-height: 46px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--es-blue); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.sf-scope[data-ct="5"] .es-cart__start:hover { background: var(--es-blue-ink); color: #fff; }
.sf-scope[data-ct="5"] .es-cart__saved { margin-top: 40px; }
.sf-scope[data-ct="5"] .es-cart__savedtitle { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-cart__savedgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - 60px) / 4)), 1fr)); gap: 20px; }
.sf-scope[data-ct="5"] .es-cart__savedgrid > li { display: flex; flex-direction: column; }

/* ---------- checkout wizard ---------- */
.sf-scope[data-ct="5"] .es-co { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.sf-scope[data-ct="5"] .es-co--empty { width: var(--es-wrap); }
.sf-scope[data-ct="5"] .es-co__steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; align-items: center; gap: 8px; }
.sf-scope[data-ct="5"] .es-co__step { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sf-scope[data-ct="5"] .es-co__stepnum { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--es-line); color: var(--es-muted-2); border: 2px solid var(--es-border); font-size: 13px; font-weight: 800; }
.sf-scope[data-ct="5"] .es-co__steplabel { font-size: 14px; font-weight: 500; color: var(--es-muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-scope[data-ct="5"] .es-co__stepline { flex: 1; height: 2px; background: var(--es-border); min-width: 10px; }
.sf-scope[data-ct="5"] .es-co__step--last .es-co__stepline { background: transparent; }
.sf-scope[data-ct="5"] .es-co__step.is-current .es-co__stepnum { background: var(--es-surface); color: var(--es-blue); border-color: var(--es-blue); }
.sf-scope[data-ct="5"] .es-co__step.is-done .es-co__stepnum { background: var(--es-blue); color: #fff; border-color: var(--es-blue); }
.sf-scope[data-ct="5"] .es-co__step.is-current .es-co__steplabel { font-weight: 700; color: var(--es-navy); }
.sf-scope[data-ct="5"] .es-co__step.is-done .es-co__steplabel { color: var(--es-navy); }
.sf-scope[data-ct="5"] .es-co__step.is-done .es-co__stepline { background: var(--es-blue); }
.sf-scope[data-ct="5"] .es-co__step--last.is-done .es-co__stepline { background: transparent; }
.sf-scope[data-ct="5"] .es-co__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sf-scope[data-ct="5"] .es-co__card { padding: 22px; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 20px; display: flex; flex-direction: column; gap: 16px; }
.sf-scope[data-ct="5"] .es-co__card[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__card--review { gap: 18px; }
.sf-scope[data-ct="5"] .es-co__h { margin: 0; font-size: 19px; font-weight: 700; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-co__guest { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--es-blue-soft); color: #1E40AF; font-size: 14px; }
.sf-scope[data-ct="5"] .es-co__guestlink { color: var(--es-blue-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sf-scope[data-ct="5"] .es-co__alert,
.sf-scope[data-ct="5"] .es-co__steperr { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FEE2E2; color: #B91C1C; font-size: 14px; }
.sf-scope[data-ct="5"] .es-co__steperr[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sf-scope[data-ct="5"] .es-co__fields[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sf-scope[data-ct="5"] .es-co__field[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__field--wide { grid-column: 1 / -1; }
.sf-scope[data-ct="5"] .es-co__label { font-size: 13px; font-weight: 600; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-co__req { color: var(--es-red); }
.sf-scope[data-ct="5"] .es-co__input { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--es-border); border-radius: 12px; font-size: 15px; font-weight: 400; color: var(--es-text); background: var(--es-surface); }
.sf-scope[data-ct="5"] .es-co__input:focus { outline: none; border-color: var(--es-blue); }
.sf-scope[data-ct="5"] .es-co__input.is-invalid { border-color: var(--es-red); }
.sf-scope[data-ct="5"] .es-co__textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.sf-scope[data-ct="5"] .es-co__select { padding-inline-end: 36px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.sf-scope[data-ct="5"] [dir="rtl"] .es-co__select,
[dir="rtl"] .sf-scope[data-ct="5"] .es-co__select { background-position: left 12px center; }
.sf-scope[data-ct="5"] .es-co__err { display: none; min-height: 16px; font-size: 12px; color: var(--es-red); }
.sf-scope[data-ct="5"] .es-co__field > .is-invalid ~ .es-co__err,
.sf-scope[data-ct="5"] .es-co__field.is-invalid .es-co__err { display: block; }
.sf-scope[data-ct="5"] .es-co__from { font-size: 12px; color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-co__opts { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sf-scope[data-ct="5"] .es-co__opts[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__legend { padding: 0; font-size: 14px; font-weight: 700; color: var(--es-text); margin-bottom: 8px; }
.sf-scope[data-ct="5"] .es-co__opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1.5px solid var(--es-border); border-radius: 14px; background: var(--es-surface); cursor: pointer; }
.sf-scope[data-ct="5"] .es-co__opt[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__opt:has(.es-co__radio:checked) { border-color: var(--es-blue); background: var(--es-blue-soft); }
.sf-scope[data-ct="5"] .es-co__opt:has(.es-co__radio:disabled) { opacity: .6; cursor: not-allowed; }
.sf-scope[data-ct="5"] .es-co__radio { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--es-blue); }
.sf-scope[data-ct="5"] .es-co__optbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sf-scope[data-ct="5"] .es-co__optname { font-size: 14px; font-weight: 600; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-co__optsub { font-size: 12px; color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-co__optsub--warn { color: var(--es-amber-ink); }
.sf-scope[data-ct="5"] .es-co__optlink { font-size: 12px; color: var(--es-blue); text-decoration: underline; text-underline-offset: 2px; }
.sf-scope[data-ct="5"] .es-co__optfee { flex: none; font-size: 14px; font-weight: 700; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-co__optfee--free { color: var(--es-green); }
.sf-scope[data-ct="5"] .es-co__tag,
.sf-scope[data-ct="5"] .es-co__paytag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; background: var(--es-line); font-size: 11px; font-weight: 700; color: #475569; vertical-align: middle; }
.sf-scope[data-ct="5"] .es-co__paytag { flex: none; }
.sf-scope[data-ct="5"] .es-co__cur { font-size: 12px; font-weight: 500; color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-co__paylogos { flex: none; display: flex; align-items: center; gap: 6px; }
.sf-scope[data-ct="5"] .es-co__paylogo { height: 22px; width: auto; }
.sf-scope[data-ct="5"] .es-co__codnote { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--es-amber-soft); color: var(--es-amber-ink); font-size: 14px; }
.sf-scope[data-ct="5"] .es-co__codnote[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__destnote { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--es-amber-soft); color: var(--es-amber-ink); font-size: 13px; }
.sf-scope[data-ct="5"] .es-co__destnote[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__check,
.sf-scope[data-ct="5"] .es-co__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #475569; line-height: 1.5; cursor: pointer; }
.sf-scope[data-ct="5"] .es-co__check[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__checkbox { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--es-blue); }
.sf-scope[data-ct="5"] .es-co__termslink { color: var(--es-blue); text-decoration: underline; text-underline-offset: 3px; }
.sf-scope[data-ct="5"] .es-co__nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sf-scope[data-ct="5"] .es-co__nav--end { justify-content: flex-end; }
.sf-scope[data-ct="5"] .es-co__next { min-height: 50px; padding: 0 26px; border-radius: 14px; border: 0; background: var(--es-blue); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.sf-scope[data-ct="5"] .es-co__next:hover { background: var(--es-blue-ink); }
.sf-scope[data-ct="5"] .es-co__back { min-height: 50px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--es-border); background: var(--es-surface); color: var(--es-text); font-size: 15px; font-weight: 600; cursor: pointer; }
.sf-scope[data-ct="5"] .es-co__back:hover { background: var(--es-line); }
.sf-scope[data-ct="5"] .es-co__place { min-height: 52px; padding: 0 28px; border-radius: 14px; border: 0; background: var(--es-navy); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.sf-scope[data-ct="5"] .es-co__place[disabled] { opacity: .55; cursor: not-allowed; }
.sf-scope[data-ct="5"] .es-co__review { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sf-scope[data-ct="5"] .es-co__rbox { padding: 14px; border-radius: 14px; background: var(--es-bg); display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-co__rbox > span:empty { display: none; }
.sf-scope[data-ct="5"] .es-co__rhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sf-scope[data-ct="5"] .es-co__rmuted { color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-co__edit { min-height: 32px; padding: 0; background: none; border: 0; color: var(--es-blue); font-size: 13px; font-weight: 600; cursor: pointer; }
.sf-scope[data-ct="5"] .es-co__lines,
.sf-scope[data-ct="5"] .es-ord__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sf-scope[data-ct="5"] .es-co__line,
.sf-scope[data-ct="5"] .es-ord__item { display: flex; align-items: center; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--es-line); font-size: 14px; }
.sf-scope[data-ct="5"] .es-co__thumb,
.sf-scope[data-ct="5"] .es-ord__thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--es-line); flex: none; overflow: hidden; }
.sf-scope[data-ct="5"] .es-co__thumbimg,
.sf-scope[data-ct="5"] .es-ord__thumbimg { width: 100%; height: 100%; object-fit: cover; }
.sf-scope[data-ct="5"] .es-co__linebody,
.sf-scope[data-ct="5"] .es-ord__ibody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf-scope[data-ct="5"] .es-co__linename,
.sf-scope[data-ct="5"] .es-ord__iname { font-weight: 500; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-co__linemeta,
.sf-scope[data-ct="5"] .es-ord__imeta { font-size: 12px; color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-co__linetotal,
.sf-scope[data-ct="5"] .es-ord__itotal { font-weight: 700; white-space: nowrap; }

/* the shared phone picker (partial/phone_input.html), restyled inside the checkout field */
.sf-scope[data-ct="5"] .es-co__field .sf-phone { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__control { position: relative; }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__row { display: flex; gap: 8px; }
.sf-scope[data-ct="5"] .es-co__field .es-co__phonecode { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 12px; border: 1.5px solid var(--es-border); border-radius: 12px; background: var(--es-surface); font-size: 14px; font-weight: 600; color: var(--es-text); cursor: pointer; white-space: nowrap; }
.sf-scope[data-ct="5"] .es-co__field .es-co__phonecode[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__number { flex: 1; min-width: 0; }
.sf-scope[data-ct="5"] .es-co__field .sf-phone.is-invalid .sf-phone__number { border-color: var(--es-red); }
.sf-scope[data-ct="5"] .es-co__field > .sf-phone.is-invalid ~ .es-co__err { display: block; }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__pop { position: absolute; inset-inline-start: 0; top: calc(100% + 6px); z-index: 30; width: min(320px, 100%); padding: 10px; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 16px; box-shadow: var(--es-shadow-pop); }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__pop[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__search { height: 40px; margin-bottom: 8px; font-size: 14px; }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__opt { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__opt:hover,
.sf-scope[data-ct="5"] .es-co__field .sf-phone__opt.is-active,
.sf-scope[data-ct="5"] .es-co__field .sf-phone__opt[aria-selected="true"] { background: var(--es-blue-soft); color: var(--es-blue-ink); }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__opt-dial { color: var(--es-muted); white-space: nowrap; }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__none { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-co__field .sf-phone__none[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-co__field .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- order page ---------- */
.sf-scope[data-ct="5"] .es-ord { width: min(960px, calc(100% - 32px)); margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 0; background: transparent; border: 0; border-radius: 0; }
.sf-scope[data-ct="5"] .es-ord--empty { width: var(--es-wrap); }
.sf-scope[data-ct="5"] .es-ord__thanks { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 24px; text-align: center; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 24px; }
.sf-scope[data-ct="5"] .es-ord__check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #DCFCE7; color: var(--es-green); }
.sf-scope[data-ct="5"] .es-ord__h1 { margin: 6px 0 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-ord__intro { margin: 0; font-size: 15px; color: var(--es-muted); max-width: 44ch; line-height: 1.55; }
.sf-scope[data-ct="5"] .es-ord__banner { margin: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.sf-scope[data-ct="5"] .es-ord__banner--danger { background: #FEE2E2; color: #B91C1C; }
.sf-scope[data-ct="5"] .es-ord__banner--info { background: var(--es-blue-soft); color: #1E40AF; }
.sf-scope[data-ct="5"] .es-ord__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sf-scope[data-ct="5"] .es-ord__label { font-size: 13px; color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-ord__no { margin: 2px 0 0; font-size: 22px; font-weight: 800; white-space: nowrap; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-ord__date { font-size: 13px; color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-ord__status { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--es-blue-soft); color: var(--es-blue-ink); }
.sf-scope[data-ct="5"] .es-ord__status--processing { background: var(--es-amber-soft); color: var(--es-amber-ink); }
.sf-scope[data-ct="5"] .es-ord__status--shipped { background: #E0E7FF; color: #3730A3; }
.sf-scope[data-ct="5"] .es-ord__status--delivered { background: #DCFCE7; color: var(--es-green); }
.sf-scope[data-ct="5"] .es-ord__status--cancelled { background: #FEE2E2; color: #B91C1C; }
.sf-scope[data-ct="5"] .es-ord__track { padding: 22px; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 20px; }
.sf-scope[data-ct="5"] .es-ord__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sf-scope[data-ct="5"] .es-ord__step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; }
.sf-scope[data-ct="5"] .es-ord__line { position: absolute; top: 14px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--es-border); z-index: 0; }
.sf-scope[data-ct="5"] .es-ord__step.is-done .es-ord__line { background: var(--es-blue); }
.sf-scope[data-ct="5"] .es-ord__dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--es-line); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--es-border); }
.sf-scope[data-ct="5"] .es-ord__dot svg { display: none; }
.sf-scope[data-ct="5"] .es-ord__step.is-reached .es-ord__dot { background: var(--es-blue); box-shadow: 0 0 0 2px var(--es-blue); }
.sf-scope[data-ct="5"] .es-ord__step.is-done .es-ord__dot svg { display: block; }
.sf-scope[data-ct="5"] .es-ord__steplabel { font-size: 13px; font-weight: 500; color: var(--es-muted-2); line-height: 1.3; }
.sf-scope[data-ct="5"] .es-ord__step.is-reached .es-ord__steplabel { color: var(--es-navy); }
.sf-scope[data-ct="5"] .es-ord__step.is-current .es-ord__steplabel { font-weight: 700; }
.sf-scope[data-ct="5"] .es-ord__time { font-size: 11px; color: var(--es-muted-2); }
.sf-scope[data-ct="5"] .es-ord__eta { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--es-blue-soft); color: #1E40AF; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.sf-scope[data-ct="5"] .es-ord__eta svg { flex: none; }
.sf-scope[data-ct="5"] .es-ord__eta .es-ord__link { color: #1E40AF; }
.sf-scope[data-ct="5"] .es-ord__pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--es-amber-soft); color: var(--es-amber-ink); font-size: 14px; }
.sf-scope[data-ct="5"] .es-ord__paybody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-scope[data-ct="5"] .es-ord__paymsg { color: #B91C1C; }
.sf-scope[data-ct="5"] .es-ord__paymsg[hidden] { display: none; }
.sf-scope[data-ct="5"] .es-ord__paybtn { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--es-navy); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.sf-scope[data-ct="5"] .es-ord__paybtn[disabled] { opacity: .6; cursor: wait; }
.sf-scope[data-ct="5"] .es-ord__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sf-scope[data-ct="5"] .es-ord__card { padding: 20px; background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-ord__h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--es-text); }
.sf-scope[data-ct="5"] .es-ord__h3--items { margin: 0 0 10px; }
.sf-scope[data-ct="5"] .es-ord__muted { color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-ord__link { color: var(--es-blue); text-decoration: underline; text-underline-offset: 3px; }
.sf-scope[data-ct="5"] .es-ord__items { display: block; }
.sf-scope[data-ct="5"] .es-ord__totals { margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; align-items: flex-end; }
.sf-scope[data-ct="5"] .es-ord__r { display: flex; gap: 24px; }
.sf-scope[data-ct="5"] .es-ord__r dt { color: var(--es-muted); font-weight: 400; }
.sf-scope[data-ct="5"] .es-ord__r dd { margin: 0; min-width: 90px; text-align: end; }
.sf-scope[data-ct="5"] .es-ord__r--credit dt,
.sf-scope[data-ct="5"] .es-ord__r--credit dd { color: var(--es-green); }
.sf-scope[data-ct="5"] .es-ord__r--total { font-size: 16px; font-weight: 800; }
.sf-scope[data-ct="5"] .es-ord__r--total dt { color: var(--es-text); font-weight: 800; }
.sf-scope[data-ct="5"] .es-ord__r--note { font-size: 12px; }
.sf-scope[data-ct="5"] .es-ord__r--note dd { color: var(--es-muted); }
.sf-scope[data-ct="5"] .es-ord__free { color: var(--es-green); }
.sf-scope[data-ct="5"] .es-ord__code { display: inline-block; padding: 1px 6px; border-radius: 6px; background: var(--es-line); font-size: 11px; font-weight: 700; color: var(--es-text-2); vertical-align: middle; }
.sf-scope[data-ct="5"] .es-ord__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sf-scope[data-ct="5"] .es-ord__action { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--es-border); background: var(--es-surface); color: var(--es-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.sf-scope[data-ct="5"] .es-ord__action:hover { background: var(--es-line); color: var(--es-text); }
.sf-scope[data-ct="5"] .es-ord__action--primary { border: 0; background: var(--es-blue); color: #fff; font-weight: 700; }
.sf-scope[data-ct="5"] .es-ord__action--primary:hover { background: var(--es-blue-ink); color: #fff; }

/* ---------- the design's mobile layout (< 1000 px) ---------- */
@media (max-width: 999px) {
    .sf-scope[data-ct="5"] .es-cart__grid,
    .sf-scope[data-ct="5"] .es-co__grid { grid-template-columns: minmax(0, 1fr); }
    .sf-scope[data-ct="5"] .es-summary { position: static; }
    .sf-scope[data-ct="5"] .es-cart__savedgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
