html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --ink: #111111;
    --muted: #6b7280;
    --line: #d9dce1;
    --panel: #fafafa;
    --accent: #111111;
}

* {
    box-sizing: border-box;
}

a,
button,
label,
summary,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
label:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
    outline: none;
}

body.cart-page {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #ffffff;
}

.cart-page--technology {
    --line: #e4e4e7;
    --panel: #f7f7f8;
    background: #ffffff;
}

.cart-page--technology .minimal-shop-header {
    border-bottom: 1px solid #e5e7eb;
}

.tech-checkout-shell {
    width: min(100% - 48px, 1740px);
    margin: 0 auto;
    padding: 28px 0 0;
}

.tech-checkout-head {
    display: grid;
    gap: 22px;
    margin-bottom: 24px;
}

.tech-checkout-head h1 {
    margin: 0;
    font-size: clamp(28px, 2.4vw, 38px);
    line-height: 1;
}

.checkout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 540px;
    width: 100%;
    min-width: 0;
}

.cart-page--technology .checkout {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
    gap: 34px;
    align-items: start;
}

.checkout-main {
    min-width: 0;
    padding: 28px 40px 48px;
}

.cart-page--technology .checkout-main {
    padding: 0 0 34px;
}

.checkout-side {
    min-width: 0;
    background: var(--panel);
    border-left: 1px solid var(--line);
    padding: 40px 38px;
}

.cart-page--technology .checkout-side,
.cart-page--technology .checkout-card,
.cart-page--technology .tech-checkout-summary-head {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.cart-page--technology .checkout-side {
    position: sticky;
    top: 18px;
    border-left: 1px solid var(--line);
    padding: 24px;
}

.checkout-inner {
    width: 100%;
    min-width: 0;
    max-width: 640px;
    margin-left: auto;
}

.cart-page--technology .checkout-inner {
    max-width: none;
    margin: 0;
}

.cart-page--technology .checkout-inner form {
    display: grid;
    gap: 18px;
}

.checkout-card {
    min-width: 0;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.04);
}

.cart-page--technology .checkout-card {
    padding: 22px;
    border-radius: 8px;
    box-shadow: none;
}

.checkout-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.checkout-section-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.checkout-step-badge {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, #ffffff);
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.checkout-field-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.tech-checkout-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 0;
    border: 0 !important;
}

.tech-checkout-summary-head h2 {
    margin: 0;
    font-size: 18px;
}

.tech-checkout-summary-head a {
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cart-store-card {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.cart-store-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-store-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    flex-shrink: 0;
}

.cart-store-logo,
.cart-store-logo-fallback {
    width: 100%;
    height: 100%;
    display: block;
}

.cart-store-logo {
    object-fit: cover;
}

.cart-store-logo-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ececec, #d8d8d8);
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
}

.cart-store-label {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cart-store-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.cart-page--technology .section-title {
    font-size: 19px;
}

.field-wrap {
    margin-bottom: 12px;
}

.checkout-field-label {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.shipping-fieldset {
    min-width: 0;
    margin-inline: 0;
    padding: 0;
    border: 0;
}

.field,
.select,
.textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 14px;
    font-size: 17px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cart-page--technology .field,
.cart-page--technology .select,
.cart-page--technology .textarea {
    border-radius: 8px;
    padding: 13px 14px;
    font-size: 14px;
}

.field:focus,
.select:focus,
.textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.textarea {
    min-height: 110px;
    resize: vertical;
}

.grid-two,
.grid-three {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
    grid-template-columns: 1.05fr 1.05fr 1fr;
}

.errors,
.flash-error,
.flash-success {
    margin-bottom: 18px;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
}

.errors,
.flash-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.flash-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.errors ul {
    margin: 0;
    padding-left: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    min-width: 0;
    gap: 14px;
    align-items: start;
    margin-bottom: 24px;
}

.cart-page--technology .cart-store-card {
    display: none;
}

.cart-page--technology .cart-item {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px 0;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-page--technology .cart-item:first-of-type {
    padding-top: 0;
}

.cart-thumb-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    overflow: visible;
}

.cart-page--technology .cart-thumb-wrap {
    width: 92px;
    height: 92px;
    border-radius: 8px;
    background: #f4f4f5;
    overflow: hidden;
}

.cart-page--technology .cart-thumb-wrap img,
.cart-page--technology .fallback-thumb {
    border-radius: 8px;
}

.cart-thumb-wrap img,
.fallback-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

.fallback-thumb {
    background: linear-gradient(135deg, #ececec, #d8d8d8);
}

.qty-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.item-title {
    overflow-wrap: anywhere;
    margin: 4px 0 3px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
}

.cart-page--technology .item-title {
    font-size: 15px;
    font-weight: 800;
}

.cart-page--technology .item-meta {
    font-size: 13px;
}

.cart-page--technology .item-actions {
    margin-top: 14px;
}

.item-meta {
    color: var(--muted);
    font-size: 15px;
}

.item-price {
    font-size: 17px;
    white-space: nowrap;
    padding-top: 8px;
}

.item-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: white;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
}

.qty-value {
    min-width: 34px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.remove-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.summary {
    display: grid;
    gap: 14px;
}

.cart-page--technology .summary {
    margin-top: 22px;
}

.summary-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.clear-cart-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.summary-total--grand {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

.summary-line strong {
    color: var(--ink);
}

.summary-line.is-hidden,
.fashion-summary-totals .is-hidden {
    display: none;
}

.summary-total-label {
    font-size: 16px;
    font-weight: 700;
}

.summary-total-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.summary-total-price small {
    color: var(--muted);
    font-size: 14px;
}

.summary-total-price strong {
    font-size: 20px;
}

.cart-page--technology .summary-total--grand .summary-total-price strong {
    font-size: 26px;
}

.checkout-terms {
    display: grid;
    gap: 8px;
    margin: 14px 0 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.checkout-coupon {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.checkout-coupon summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    list-style: none;
}

.checkout-coupon summary::-webkit-details-marker {
    display: none;
}

.checkout-coupon summary::after {
    content: "+";
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--ink);
    font-size: 16px;
}

.checkout-coupon[open] summary::after {
    content: "-";
}

.checkout-coupon-body {
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.cart-page--technology .checkout-coupon {
    border-radius: 8px;
    background: #fafafa;
}

.checkout-coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.checkout-coupon-row input {
    text-transform: uppercase;
}

.checkout-coupon-row button {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 0 18px;
}

.checkout-coupon-row button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.checkout-coupon-message {
    min-height: 18px;
    margin: 0;
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
}

.checkout-coupon-message.is-error {
    color: #b91c1c;
}

.cart-page--technology .checkout-terms {
    border-radius: 8px;
    background: #fafafa;
}

.checkout-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.45;
}

.checkout-terms-label input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--accent);
}

.checkout-terms-label span {
    display: grid;
    gap: 2px;
}

.checkout-terms-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.checkout-terms-label a {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checkout-terms-link {
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 0;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checkout-terms-copy {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.checkout-terms-error {
    margin: 0;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
}

.checkout-terms-modal[hidden] {
    display: none;
}

.checkout-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
}

.checkout-terms-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.52);
    backdrop-filter: blur(4px);
}

.checkout-terms-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: min(82vh, 720px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    outline: none;
}

.checkout-terms-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--line);
}

.checkout-terms-modal-head p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.checkout-terms-modal-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.checkout-terms-modal-close {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.checkout-terms-modal-body {
    overflow-y: auto;
    padding: 22px 24px;
    color: #30343b;
    font-size: 14px;
    line-height: 1.7;
}

.checkout-terms-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 24px 22px;
    border-top: 1px solid var(--line);
    background: #fafafa;
}

.checkout-terms-modal-footer a {
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.checkout-terms-modal-footer button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 0 20px;
}

.has-checkout-modal {
    overflow: hidden;
}

@media (max-width: 640px) {
    .checkout-terms-modal {
        align-items: end;
        padding: 12px;
    }

    .checkout-terms-modal-panel {
        width: 100%;
        max-height: 86vh;
        border-radius: 18px 18px 14px 14px;
    }

    .checkout-terms-modal-head,
    .checkout-terms-modal-body,
    .checkout-terms-modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .checkout-terms-modal-head h2 {
        font-size: 19px;
    }

    .checkout-terms-modal-body {
        font-size: 13px;
    }

    .checkout-terms-modal-footer {
        justify-content: stretch;
    }

    .checkout-terms-modal-footer button {
        width: 100%;
    }

    .checkout-coupon-row {
        grid-template-columns: 1fr;
    }

    .checkout-coupon-row button {
        width: 100%;
    }
}

.primary-btn {
    width: 100%;
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 18px;
    cursor: pointer;
    display: grid;
    gap: 3px;
    justify-items: center;
    line-height: 1.2;
}

.primary-btn small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 600;
}

.cart-page--technology .primary-btn {
    border-radius: 8px;
    margin-top: 10px;
    background: #111111;
}

.checkout-payment-options {
    display: grid;
    gap: 10px;
}

.checkout-payment-option {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.checkout-payment-option:hover {
    border-color: rgba(17, 17, 17, .28);
    transform: translateY(-1px);
}

.checkout-payment-option:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, .06);
}

.checkout-payment-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.checkout-payment-option strong,
.checkout-payment-option small {
    display: block;
    min-width: 0;
}

.checkout-payment-option strong {
    font-size: 15px;
    line-height: 1.2;
}

.checkout-payment-option small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.checkout-payment-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

.checkout-payment-mark--mp {
    background: #009ee3;
}

.checkout-payment-mark--wompi {
    background: #4b22f4;
}

.primary-btn:hover {
    filter: brightness(0.95);
}

.payment-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.payment-divider::before,
.payment-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.mercadopago-btn {
    width: 100%;
    min-height: 54px;
    border: 1px solid #1594f6;
    border-radius: 14px;
    background: #009ee3;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.mercadopago-btn:hover {
    filter: brightness(0.98);
    box-shadow: 0 12px 26px rgba(0, 158, 227, 0.18);
    transform: translateY(-1px);
}

.wompi-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 10px;
    border: 1px solid #4b22f4;
    border-radius: 14px;
    background: #4b22f4;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.wompi-btn:hover {
    filter: brightness(0.98);
    box-shadow: 0 12px 26px rgba(75, 34, 244, 0.18);
    transform: translateY(-1px);
}

.wompi-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffffff;
    color: #4b22f4;
    display: inline-grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
}

.mercadopago-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffffff;
    color: #007eb5;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
}

.shipping-options {
    display: grid;
    gap: 10px;
}

.shipping-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    padding: 13px 14px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cart-page--technology .shipping-option {
    border-radius: 8px;
}

.shipping-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shipping-option:has(input:checked) {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 4%, #ffffff);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.shipping-option-mark {
    width: 20px;
    height: 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 5px #ffffff;
}

.shipping-option:has(input:checked) .shipping-option-mark {
    border-color: var(--accent);
    background: var(--accent);
}

.shipping-option-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.shipping-option strong {
    font-size: 15px;
    line-height: 1.25;
}

.shipping-option small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.shipping-option-price {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--ink);
    padding: 7px 10px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.shipping-option:has(input:checked) .shipping-option-price {
    background: var(--accent);
    color: #ffffff;
}

.local-delivery-preview {
    min-height: 70px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: color-mix(in srgb, var(--accent) 4%, #ffffff);
}

.cart-page--technology .local-delivery-preview {
    border-radius: 8px;
}

.local-delivery-preview div {
    display: grid;
    gap: 4px;
}

.local-delivery-preview span {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.local-delivery-preview small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.local-delivery-preview strong {
    border-radius: 999px;
    padding: 8px 11px;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
}

.cart-feedback {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: var(--accent);
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(23, 23, 23, 0.18);
    font-size: 13px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 50;
}

.checkout-mobile-bar {
    display: none;
}

.cart-feedback.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.empty-state {
    max-width: 520px;
    padding: 48px 40px;
}

.empty-state a {
    color: var(--ink);
}

.payment-return {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.payment-return-card {
    width: min(100%, 620px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    padding: 34px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.payment-return-status {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
}

.payment-return-status.is-approved {
    background: #dcfce7;
    color: #15803d;
}

.payment-return-status.is-pending {
    background: #fef3c7;
    color: #b45309;
}

.payment-return-status.is-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.payment-return-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
}

.payment-return-copy {
    max-width: 480px;
    margin: 14px auto 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.payment-return-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    text-align: left;
}

.payment-return-metric {
    min-height: 78px;
}

.payment-return-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .checkout {
        grid-template-columns: 1fr;
    }

    .cart-page--technology .checkout {
        grid-template-columns: 1fr;
    }

    .checkout-side {
        border-left: none;
        border-top: 1px solid var(--line);
        order: -1;
    }

    .cart-page--technology .checkout-side {
        position: static;
    }
}

@media (max-width: 640px) {
    body.cart-page {
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }

    .tech-checkout-shell {
        width: min(100% - 28px, 1740px);
        padding-top: 18px;
    }

    .checkout-card,
    .cart-page--technology .checkout-side {
        padding: 16px;
    }

    .checkout-main,
    .checkout-side {
        width: 100%;
        min-width: 0;
        padding: 18px 0 24px;
    }

    .checkout-main {
        padding-top: 0;
    }

    .checkout-side {
        margin-bottom: 16px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #ffffff;
    }

    .cart-page--technology .checkout-side {
        border-radius: 8px;
    }

    .checkout-section-head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .checkout-section-head p {
        font-size: 13px;
    }

    .checkout-step-badge {
        width: 28px;
        height: 28px;
    }

    .grid-two,
    .grid-three,
    .cart-item {
        grid-template-columns: 1fr;
    }

    .checkout-section-head > div,
    .field-wrap,
    .shipping-options,
    .summary,
    .checkout-payment-options {
        min-width: 0;
    }

    .item-price {
        padding-top: 0;
        white-space: normal;
    }

    .cart-page--technology .cart-item {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
    }

    .cart-page--technology .cart-thumb-wrap {
        width: 72px;
        height: 72px;
    }

    .item-title {
        margin-top: 0;
        font-size: 16px;
    }

    .cart-page--technology .item-title {
        font-size: 14px;
    }

    .item-meta {
        font-size: 13px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .item-actions {
        gap: 8px;
    }

    .cart-store-brand {
        align-items: flex-start;
    }

    .payment-return-card {
        padding: 26px 18px;
    }

    .payment-return-title {
        font-size: 28px;
    }

    .payment-return-grid {
        grid-template-columns: 1fr;
    }

    .shipping-option {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 10px;
        align-items: flex-start;
    }

    .shipping-option-price {
        grid-column: 2;
        justify-self: flex-start;
        align-self: flex-start;
        white-space: normal;
    }

    .local-delivery-preview {
        align-items: stretch;
        flex-direction: column;
    }

    .local-delivery-preview strong {
        width: 100%;
        text-align: center;
    }

    .checkout-mobile-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 45;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(116px, auto);
        align-items: center;
        gap: 10px;
        padding: 12px;
        border: 1px solid rgba(17, 17, 17, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(14px);
    }

    .checkout-mobile-bar span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .checkout-mobile-bar strong {
        display: block;
        margin-top: 2px;
        color: var(--ink);
        font-size: 18px;
    }

    .checkout-mobile-bar button {
        min-height: 46px;
        min-width: 0;
        border: 0;
        border-radius: 14px;
        background: var(--accent);
        color: #ffffff;
        cursor: pointer;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.1;
        padding: 0 14px;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .tech-checkout-shell {
        width: min(100% - 18px, 1740px);
    }

    .checkout-card,
    .cart-page--technology .checkout-side,
    .checkout-side {
        padding: 14px;
        border-radius: 14px;
    }

    .checkout-section-head {
        align-items: center;
    }

    .checkout-section-head p {
        display: none;
    }

    .field,
    .select,
    .textarea,
    .cart-page--technology .field,
    .cart-page--technology .select,
    .cart-page--technology .textarea {
        min-height: 46px;
        padding: 12px 12px;
        font-size: 15px;
    }

    .checkout-coupon-row {
        grid-template-columns: 1fr;
    }

    .checkout-coupon-row button,
    .primary-btn,
    .mercadopago-btn,
    .wompi-btn {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding-inline: 14px;
        font-size: 14px;
        line-height: 1.15;
        white-space: normal;
    }

    .payment-divider {
        margin: 14px 0 10px;
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    .checkout-payment-option {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .checkout-payment-option input {
        grid-row: 1 / span 2;
    }

    .checkout-payment-mark {
        display: none;
    }

    .summary-total,
    .summary-line {
        gap: 10px;
    }

    .summary-total-price strong,
    .summary-line strong {
        overflow-wrap: anywhere;
        text-align: right;
    }

    .checkout-mobile-bar {
        left: 8px;
        right: 8px;
        grid-template-columns: minmax(0, 1fr) minmax(98px, 0.8fr);
        padding: 10px;
        border-radius: 16px;
    }

    .checkout-mobile-bar strong {
        font-size: 16px;
    }

    .checkout-mobile-bar button {
        min-height: 44px;
        padding-inline: 10px;
        font-size: 13px;
    }
}
