/* ═══ SHARED ══════════════════════════════════════════════════════════ */

.sf-cart,
.sf-checkout {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
    color: #3D4A5C;
    line-height: 1.6;
}

.sf-cart *,
.sf-checkout * {
    box-sizing: border-box;
}

/* ═══ 2-COLUMN LAYOUT ═════════════════════════════════════════════════ */

.sf-cart__layout,
.sf-checkout__layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.sf-cart__left,
.sf-checkout__left {
    min-width: 0;
}

.sf-cart__right,
.sf-checkout__right {
    position: sticky;
    top: 32px;
}

.sf-checkout__guest-note {
    display: grid;
    gap: 4px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    color: #64748B;
    font-size: .8rem;
    line-height: 1.55;
}

.sf-checkout__guest-note strong {
    color: #1B2436;
    font-size: .82rem;
}

/* ═══ BUTTONS ═════════════════════════════════════════════════════════ */

.sf-cart__btn,
.sf-checkout__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    font-family: inherit;
    font-size: 0.87rem;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 140ms, box-shadow 140ms;
}

.sf-cart__btn--cta,
.sf-checkout__btn--cta {
    background: linear-gradient(180deg, #F06A30 0%, #E85D24 100%);
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(232,93,36,.18), inset 0 1px 0 rgba(255,255,255,.15);
    width: 100%;
}

.sf-cart__btn--cta:hover,
.sf-checkout__btn--cta:hover {
    background: linear-gradient(180deg, #F27840 0%, #E05520 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(232,93,36,.22);
    color: #fff !important;
}

.sf-cart__btn:disabled,
.sf-checkout__btn:disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
}

.sf-cart__btn--primary,
.sf-checkout__btn--primary {
    background: linear-gradient(180deg, #1E3A6A 0%, #162447 100%);
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(22,36,71,.2), inset 0 1px 0 rgba(255,255,255,.08);
}

.sf-cart__btn--primary:hover,
.sf-checkout__btn--primary:hover {
    background: linear-gradient(180deg, #254578 0%, #1A2F55 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22,36,71,.22), inset 0 1px 0 rgba(255,255,255,.1);
    color: #fff !important;
}

.sf-cart__btn--secondary,
.sf-checkout__btn--secondary {
    background: #fff;
    color: #1B2436 !important;
    border: 1px solid #E2E8F0 !important;
    width: 100%;
    margin-top: 10px;
}

.sf-cart__btn--secondary:hover,
.sf-checkout__btn--secondary:hover {
    border-color: #CBD5E1 !important;
    transform: translateY(-1px);
}

/* ─── Guest and Empty States ───────────────────────────────────────── */
.sf-commerce-state {
    width: 100%;
    max-width: 520px;
    margin: 56px auto;
    padding: 36px 20px;
    text-align: center;
}

.sf-commerce-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    color: #162447;
}

.sf-commerce-state__label {
    display: block;
    margin-bottom: 8px;
    color: #E85D24;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sf-commerce-state__title {
    margin: 0;
    color: #1B2436;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.sf-commerce-state__description {
    max-width: 430px;
    margin: 12px auto 0;
    color: #64748B;
    font-size: .9rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.sf-commerce-state__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 26px;
}

.sf-commerce-state__actions .sf-cart__btn,
.sf-commerce-state__actions .sf-checkout__btn {
    min-width: 132px;
}

.sf-commerce-state__link {
    color: #3D4A5C;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}

.sf-commerce-state__link:hover,
.sf-commerce-state__link:focus {
    color: #E85D24;
    text-decoration: underline;
}

/* ═══ CART — EMPTY STATE ══════════════════════════════════════════════ */

.sf-cart--empty {
    text-align: center;
    padding: 60px 20px;
}

.sf-cart__empty-icon {
    color: #CBD5E1;
    margin-bottom: 16px;
}

.sf-cart__empty-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1B2436;
    margin: 0 0 8px;
}

.sf-cart__message {
    font-size: 0.92rem;
    color: #64748B;
    margin-bottom: 20px;
}

/* ═══ CART — HEADER ═══════════════════════════════════════════════════ */

.sf-cart__header {
    margin-bottom: 8px;
}

.sf-cart__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1B2436;
    margin: 0;
}

/* ═══ CART — ITEMS ════════════════════════════════════════════════════ */

.sf-cart__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #E2E8F0;
}

.sf-cart__item:last-child {
    border-bottom: none;
}

.sf-cart__item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.sf-cart__item-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sf-cart__item-img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.sf-cart__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-cart__item-info {
    min-width: 0;
}

.sf-cart__item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1B2436;
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.sf-cart__item-type {
    font-size: 0.72rem;
    color: #64748B;
    text-transform: capitalize;
}

/* ─── Pricing ─────────────────────────────────────────────────────── */
.sf-cart__item-pricing {
    text-align: right;
}

.sf-cart__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1B2436;
    display: block;
}

.sf-cart__price--free {
    font-size: 0.95rem;
    font-weight: 700;
    color: #16A34A;
}

.sf-cart__price--original {
    font-size: 0.75rem;
    color: #94A3B8;
    text-decoration: line-through;
    margin-right: 6px;
}

.sf-cart__price--discount {
    font-size: 0.68rem;
    font-weight: 600;
    color: #E85D24;
    background: #FFF7ED;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 6px;
}

.sf-cart__item-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    border-radius: 5px;
    background: none !important;
    color: #DC2626 !important;
    cursor: pointer;
    transition: color 140ms, opacity 140ms;
    opacity: 0.7;
    padding: 0;
}

.sf-cart__item-remove:hover {
    color: #991B1B !important;
    background: none !important;
    opacity: 1;
}

.sf-cart__item-remove svg {
    display: block;
    color: inherit !important;
}

.sf-cart__item-remove svg path,
.sf-cart__item-remove svg polyline,
.sf-cart__item-remove svg line {
    stroke: currentColor !important;
}

/* ─── Continue Shopping ───────────────────────────────────────────── */
.sf-cart__continue {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}

.sf-cart__continue a {
    font-size: 0.82rem;
    font-weight: 500;
    color: #162447;
    text-decoration: none;
}

.sf-cart__continue a:hover {
    color: #E85D24;
}

/* ═══ CART — SUMMARY SIDEBAR ══════════════════════════════════════════ */

.sf-cart__summary-box,
.sf-checkout__summary-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 5px;
    padding: 24px;
}

.sf-cart__summary-title,
.sf-checkout__section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1B2436;
    margin: 0 0 16px;
}

.sf-cart__summary-rows {
    margin-bottom: 16px;
}

.sf-cart__summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: #3D4A5C;
    padding: 6px 0;
}

.sf-cart__discount-amount {
    color: #94A3B8;
}

/* ─── Coupon ──────────────────────────────────────────────────────── */
.sf-cart__coupon {
    padding: 14px 0;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 14px;
}

.sf-cart__coupon-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1B2436;
    display: block;
    margin-bottom: 6px;
}

.sf-cart__coupon-row {
    display: flex;
    gap: 8px;
}

.sf-cart__coupon-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.84rem;
    font-family: inherit;
    color: #1B2436;
    background: #fff;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 5px !important;
    outline: none !important;
    transition: border-color 180ms;
}

.sf-cart__coupon-input:focus {
    border-color: #E85D24 !important;
    box-shadow: 0 0 0 3px rgba(232, 93, 36, 0.1);
}

.sf-cart__coupon-input::placeholder {
    color: #94A3B8;
}

.sf-cart__coupon-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    background: linear-gradient(180deg, #1E3A6A 0%, #162447 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(22, 36, 71, 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 140ms, box-shadow 140ms, background 140ms;
    white-space: nowrap;
}

.sf-cart__coupon-btn:hover {
    background: linear-gradient(180deg, #254578 0%, #1A2F55 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22, 36, 71, 0.22), inset 0 1px 0 rgba(255,255,255,0.1);
    color: #fff !important;
}

/* ─── Total ───────────────────────────────────────────────────────── */
.sf-cart__coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding: 7px 9px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 5px;
    color: #166534;
    font-size: 0.76rem;
    font-weight: 700;
}

.sf-cart__coupon-remove {
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: #166534 !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: underline;
}

.sf-cart__coupon-message {
    min-height: 16px;
    margin: 6px 0 0;
    color: #DC2626;
    font-size: 0.72rem;
    line-height: 1.35;
}

.sf-checkout__coupon {
    margin: 8px 0 10px;
    padding: 10px 0;
}

.sf-cart__summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1B2436;
    padding: 12px 0;
    margin-bottom: 16px;
}

.sf-cart__secure,
.sf-checkout__secure {
    font-size: 0.72rem;
    color: #94A3B8;
    text-align: center;
    margin-top: 12px;
}

/* ═══ CHECKOUT — BILLING FORM ═════════════════════════════════════════ */

.sf-checkout__form {
    margin-top: 0;
}

.sf-checkout__field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sf-checkout__field {
    margin-bottom: 16px;
}

.sf-checkout__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1B2436;
    margin-bottom: 5px;
}

.sf-required {
    color: #DC2626;
}

.sf-checkout__input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.88rem;
    color: #1B2436;
    background: #fff;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 5px !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 180ms, box-shadow 180ms;
}

.sf-checkout__input:focus {
    border-color: #E85D24 !important;
    box-shadow: 0 0 0 3px rgba(232, 93, 36, 0.1) !important;
    outline: none !important;
}

.sf-checkout__input[readonly] {
    background: #F8FAFC;
    color: #64748B;
    cursor: not-allowed;
}

.sf-checkout__textarea {
    resize: vertical;
    min-height: 80px;
}

.sf-checkout__field-note {
    font-size: 0.7rem;
    color: #94A3B8;
    margin-top: 4px;
}

/* ─── Phone Row ───────────────────────────────────────────────────── */
.sf-checkout__phone-row {
    display: flex;
    gap: 8px;
}

.sf-checkout__phone-code {
    width: 80px;
    flex-shrink: 0;
}

.sf-checkout__phone-number {
    flex: 1;
}

/* ═══ CHECKOUT — ORDER DETAILS (RIGHT) ════════════════════════════════ */

.sf-checkout__items {
    margin-bottom: 14px;
}

.sf-checkout__items-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 8px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 8px;
}

.sf-checkout__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.84rem;
    border-bottom: 1px solid #f0f0f1;
}

.sf-checkout__item:last-child {
    border-bottom: none;
}

.sf-checkout__item-name {
    color: #1B2436;
    font-weight: 500;
    flex: 1;
    margin-right: 10px;
}

.sf-checkout__item-price {
    color: #1B2436;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Totals ──────────────────────────────────────────────────────── */
.sf-checkout__totals {
    border-top: 1px solid #E2E8F0;
    padding-top: 12px;
}

.sf-checkout__totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #3D4A5C;
    padding: 5px 0;
}

.sf-tax-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.sf-tax-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid #CBD5E1;
    border-radius: 50%;
    color: #64748B;
    cursor: help;
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.sf-tax-help::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 110;
    width: 240px;
    max-width: calc(100vw - 40px);
    padding: 8px 10px;
    background: #1B2436;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 6px 18px rgba(0,0,0,.16);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    visibility: hidden;
    white-space: normal;
}

.sf-tax-help::before {
    content: "";
    position: absolute;
    left: 5px;
    bottom: calc(100% + 3px);
    border: 5px solid transparent;
    border-top-color: #1B2436;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.sf-tax-help:hover::after,
.sf-tax-help:hover::before,
.sf-tax-help:focus::after,
.sf-tax-help:focus::before {
    opacity: 1;
    visibility: visible;
}

.sf-checkout__totals-row--total {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1B2436;
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1.5px solid #1B2436;
}

/* ═══ CHECKOUT — PAYMENT METHOD ═══════════════════════════════════════ */

.sf-checkout__payment {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #E2E8F0;
}

.sf-checkout__payment-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1B2436;
    margin: 0 0 10px;
}

.sf-checkout__gateway {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 5px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 140ms;
}

.sf-checkout__gateway:hover {
    border-color: #CBD5E1;
}

.sf-checkout__gateway input[type="radio"] {
    accent-color: #E85D24;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sf-checkout__gateway-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-checkout__gateway-icon {
    font-size: 1.1rem;
}

.sf-checkout__gateway-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1B2436;
}

/* ─── Terms ───────────────────────────────────────────────────────── */
.sf-checkout__terms {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: #3D4A5C;
}

.sf-checkout__terms label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.sf-checkout__terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #162447;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ─── Error ───────────────────────────────────────────────────────── */
.sf-checkout__error {
    display: none;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #DC2626;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 5px;
}

/* ═══ ORDER RECEIVED ══════════════════════════════════════════════════ */

.sf-checkout--received,
.sf-checkout--failed,
.sf-checkout--empty,
.sf-checkout--login {
    text-align: center;
    padding: 48px 20px;
    max-width: 520px;
    margin: 48px auto;
}

.sf-checkout__success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #F0FDF4;
    border: 2px solid #16A34A;
    color: #16A34A;
    font-size: 28px;
    font-weight: 700;
}

.sf-checkout__fail-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #FEF2F2;
    border: 2px solid #DC2626;
    color: #DC2626;
    font-size: 28px;
    font-weight: 700;
}

.sf-checkout--received .sf-checkout__heading,
.sf-checkout--failed .sf-checkout__heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1B2436;
    margin: 0 0 8px;
}

.sf-checkout__order-number {
    font-size: 0.88rem;
    color: #64748B;
    margin-bottom: 12px;
}

.sf-checkout--received p,
.sf-checkout--failed p {
    font-size: 0.88rem;
    color: #64748B;
    margin-bottom: 6px;
}

.sf-checkout--received .sf-checkout__btn--cta,
.sf-checkout--failed .sf-checkout__btn--cta,
.sf-checkout--received .sf-checkout__btn--primary,
.sf-checkout--failed .sf-checkout__btn--primary {
    margin-top: 20px;
    width: auto;
    padding: 12px 32px;
}

.sf-checkout__help {
    font-size: 0.78rem;
    color: #94A3B8;
    margin-top: 16px;
}

.sf-order-docs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin: 18px 0;
    padding: 16px 18px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 5px;
    text-align: left;
}

.sf-order-docs__meta {
    min-width: 0;
}

.sf-order-docs__label {
    display: block;
    color: #64748B;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sf-order-docs__number {
    display: block;
    margin-top: 3px;
    color: #1B2436;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}

.sf-order-docs .sf-order-docs__download {
    margin-top: 0;
    min-width: 210px;
    width: auto;
    white-space: nowrap;
}

.sf-order-items {
    margin: 16px 0 20px;
    text-align: left;
}

.sf-order-items__title {
    color: #1B2436;
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.sf-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #E2E8F0;
}

.sf-order-item__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sf-order-item__info strong {
    color: #1B2436;
    font-size: 0.86rem;
}

.sf-order-item__info span,
.sf-order-item__locked {
    color: #64748B;
    font-size: 0.75rem;
}

.sf-order-item__action {
    background: linear-gradient(180deg, #F06A30 0%, #E85D24 100%);
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(232,93,36,.18), inset 0 1px 0 rgba(255,255,255,.15);
    color: #fff !important;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 10px 16px;
    text-decoration: none !important;
    transition: transform 140ms, box-shadow 140ms;
    white-space: nowrap;
}

.sf-order-item__action:hover {
    background: linear-gradient(180deg, #F27840 0%, #E05520 100%);
    box-shadow: 0 4px 10px rgba(232,93,36,.22), inset 0 1px 0 rgba(255,255,255,.18);
    color: #fff !important;
    transform: translateY(-1px);
}

/* ═══ RESPONSIVE ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .sf-cart__layout,
    .sf-checkout__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sf-cart__right,
    .sf-checkout__right {
        position: static;
    }

    .sf-checkout__field-row {
        grid-template-columns: 1fr;
    }

    .sf-order-docs,
    .sf-order-item {
        align-items: stretch;
    }

    .sf-order-docs {
        grid-template-columns: 1fr;
    }

    .sf-order-item {
        flex-direction: column;
    }

    .sf-order-docs .sf-order-docs__download {
        min-width: 0;
        width: 100%;
    }

    .sf-cart,
    .sf-checkout {
        margin: 24px auto;
        padding: 0 20px;
    }

    .sf-cart__item-left {
        gap: 10px;
    }

    .sf-cart__item-img {
        width: 48px;
        height: 48px;
    }

    .sf-cart__item-title {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .sf-commerce-state {
        margin: 32px auto;
        padding: 28px 0;
    }

    .sf-commerce-state__title {
        font-size: 1.4rem;
    }

    .sf-commerce-state__actions {
        flex-direction: column;
        gap: 14px;
    }

    .sf-commerce-state__actions .sf-cart__btn,
    .sf-commerce-state__actions .sf-checkout__btn {
        width: 100%;
    }

    .sf-cart__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sf-cart__item-left {
        width: 100%;
    }

    .sf-cart__item-right {
        width: 100%;
        justify-content: space-between;
    }

    .sf-cart__item-title {
        font-size: 0.82rem;
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }

    .sf-checkout__phone-row {
        flex-direction: column;
    }

    .sf-checkout__phone-code {
        width: 100%;
    }
}

/* ═══ CUSTOM PHONE INPUT ═══════════════════════════════════════════════ */

.sf-phone {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.sf-phone__selected {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    min-height: 44px;
    background: #F8FAFC !important;
    border: 1.5px solid #E2E8F0 !important;
    border-right: none !important;
    border-radius: 5px 0 0 5px !important;
    cursor: pointer;
    font-size: 0.84rem;
    color: #1B2436 !important;
    white-space: nowrap;
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none !important;
}

.sf-phone__selected:hover,
.sf-phone__selected:focus,
.sf-phone__selected:active {
    background: #F1F5F9 !important;
    color: #1B2436 !important;
    box-shadow: none !important;
    transform: none !important;
    border-color: #E2E8F0 !important;
    border-right: none !important;
}

.sf-phone__flag {
    font-size: 1.1rem;
    line-height: 1;
}

.sf-phone__code {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1B2436;
}

.sf-phone__arrow {
    font-size: 0.65rem;
    color: #64748B;
    margin-left: 2px;
}

.sf-phone .sf-phone__input {
    border-radius: 0 5px 5px 0 !important;
    flex: 1;
}

.sf-country {
    position: relative;
    width: 100%;
}

.sf-country__selected {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    background: #fff !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 5px !important;
    color: #1B2436 !important;
    cursor: pointer;
    font-size: 0.84rem;
    outline: none !important;
    text-align: left;
    box-shadow: none !important;
}

.sf-country__selected:hover,
.sf-country__selected:focus,
.sf-country__selected:active {
    border-color: #CBD5E1 !important;
    background: #fff !important;
    color: #1B2436 !important;
    transform: none !important;
    box-shadow: none !important;
}

.sf-country__flag {
    font-size: 1.05rem;
    line-height: 1;
}

.sf-country__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #1B2436;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-country__code {
    color: #64748B;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
}

.sf-country__arrow {
    color: #64748B;
    flex-shrink: 0;
    font-size: 0.65rem;
}

.sf-phone__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 5px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    max-height: 280px;
    display: flex;
    flex-direction: column;
}

.sf-phone__search {
    padding: 10px 12px;
    border: none !important;
    border-bottom: 1px solid #E2E8F0 !important;
    border-radius: 5px 5px 0 0 !important;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none !important;
    color: #1B2436;
}

.sf-phone__search::placeholder {
    color: #94A3B8;
}

.sf-phone__list {
    overflow-y: auto;
    max-height: 220px;
}

.sf-phone__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 80ms;
    width: 100%;
    background: #fff;
    border: 0;
    text-align: left;
}

.sf-phone__option:hover {
    background: #F8FAFC;
}

.sf-phone__option-flag {
    font-size: 1rem;
    line-height: 1;
}

.sf-phone__option-name {
    flex: 1;
    color: #1B2436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-phone__option-code {
    color: #64748B;
    font-weight: 500;
    flex-shrink: 0;
}
