:root {
    --checkout-primary: #6d28d9;
    --checkout-primary-dark: #4c1d95;
    --checkout-secondary: #2563eb;
    --checkout-cyan: #0891b2;
    --checkout-success: #16a34a;
    --checkout-warning: #d97706;
    --checkout-danger: #dc2626;
    --checkout-dark: #111827;
    --checkout-text: #334155;
    --checkout-muted: #64748b;
    --checkout-soft: #f6f7fb;
    --checkout-border: #e2e8f0;
    --checkout-white: #ffffff;
    --checkout-shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--checkout-text);
    background: #f5f6fb;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body,
body * {
    box-sizing: border-box;
}

body [hidden] {
    display: none !important;
}

body button,
body input,
body textarea {
    font: inherit;
}

body button,
body a,
body label {
    -webkit-tap-highlight-color: transparent;
}

body button {
    cursor: pointer;
}

.checkout-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| Cargador
|--------------------------------------------------------------------------
*/

.checkout-page-loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--checkout-primary-dark);
    background:
        radial-gradient(circle at top right, rgba(109, 40, 217, 0.12), transparent 34%),
        #ffffff;
    gap: 18px;
}

.checkout-loader-circle {
    position: relative;
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    box-shadow: 0 18px 40px rgba(109, 40, 217, 0.28);
    font-size: 31px;
    animation: checkout-loader-pulse 1.15s ease-in-out infinite;
}

.checkout-page-loader > span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

@keyframes checkout-loader-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.04);
    }
}

/*
|--------------------------------------------------------------------------
| Encabezado
|--------------------------------------------------------------------------
*/

.checkout-header {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: 76px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(18px);
}

.checkout-navbar {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.checkout-brand {
    display: inline-flex;
    max-width: 245px;
    min-height: 50px;
    align-items: center;
    color: var(--checkout-primary-dark);
    text-decoration: none;
}

.checkout-brand:hover {
    color: var(--checkout-primary);
    text-decoration: none;
}

.checkout-brand img {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

.checkout-brand span {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.7px;
}

.back-store-button {
    display: inline-flex;
    min-height: 44px;
    padding: 0 17px;
    align-items: center;
    justify-content: center;
    color: var(--checkout-text);
    border: 1px solid var(--checkout-border);
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    gap: 8px;
    transition: 0.2s ease;
}

.back-store-button:hover {
    color: var(--checkout-primary);
    border-color: rgba(109, 40, 217, 0.32);
    box-shadow: 0 10px 24px rgba(109, 40, 217, 0.1);
    text-decoration: none;
    transform: translateY(-2px);
}

/*
|--------------------------------------------------------------------------
| Hero y pasos
|--------------------------------------------------------------------------
*/

.checkout-main {
    min-height: calc(100vh - 160px);
}

.checkout-hero {
    position: relative;
    overflow: hidden;
    padding: 45px 0 100px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.18), transparent 23%),
        radial-gradient(circle at 8% 100%, rgba(6, 182, 212, 0.24), transparent 30%),
        linear-gradient(135deg, #35106f 0%, #6d28d9 48%, #2563eb 100%);
}

.checkout-hero::before,
.checkout-hero::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
}

.checkout-hero::before {
    width: 300px;
    height: 300px;
    right: -110px;
    bottom: -190px;
}

.checkout-hero::after {
    width: 170px;
    height: 170px;
    left: -80px;
    top: -110px;
}

.checkout-hero .checkout-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.checkout-hero-content {
    max-width: 545px;
}

.checkout-eyebrow {
    display: inline-flex;
    min-height: 32px;
    padding: 0 13px;
    align-items: center;
    color: #ede9fe;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    gap: 7px;
    backdrop-filter: blur(8px);
}

.checkout-hero h1 {
    margin: 14px 0 8px;
    color: #fff;
    font-size: clamp(34px, 5vw, 49px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.04;
}

.checkout-hero-content > p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    line-height: 1.55;
}

.checkout-steps {
    display: flex;
    padding: 20px 22px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(13px);
}

.checkout-step {
    display: flex;
    min-width: 112px;
    align-items: center;
    opacity: 0.55;
    gap: 10px;
}

.checkout-step > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    font-weight: 800;
}

.checkout-step div {
    display: flex;
    flex-direction: column;
}

.checkout-step strong {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.checkout-step small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    white-space: nowrap;
}

.checkout-step.is-active,
.checkout-step.is-complete {
    opacity: 1;
}

.checkout-step.is-active > span {
    color: var(--checkout-primary-dark);
    border-color: #fff;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.checkout-step.is-complete > span {
    color: #fff;
    border-color: rgba(74, 222, 128, 0.65);
    background: rgba(22, 163, 74, 0.7);
}

.checkout-step-line {
    width: 35px;
    height: 1px;
    margin: 0 11px;
    background: rgba(255, 255, 255, 0.26);
}

/*
|--------------------------------------------------------------------------
| Contenido general
|--------------------------------------------------------------------------
*/

.checkout-content {
    position: relative;
    z-index: 5;
    margin-top: -58px;
    padding-bottom: 65px;
}

.checkout-form[hidden],
.checkout-state-card[hidden] {
    display: none !important;
}

.checkout-state-card {
    display: flex;
    min-height: 390px;
    padding: 55px 25px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px solid var(--checkout-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--checkout-shadow);
}

.checkout-state-card h2 {
    margin: 20px 0 7px;
    color: var(--checkout-dark);
    font-size: 25px;
    font-weight: 900;
}

.checkout-state-card p {
    max-width: 480px;
    margin: 0;
    color: var(--checkout-muted);
    font-size: 15px;
    line-height: 1.55;
}

.checkout-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid #ede9fe;
    border-top-color: var(--checkout-primary);
    border-radius: 50%;
    animation: checkout-spin 0.8s linear infinite;
}

@keyframes checkout-spin {
    to {
        transform: rotate(360deg);
    }
}

.state-card-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    color: var(--checkout-primary);
    border-radius: 23px;
    background: #f3e8ff;
    font-size: 34px;
}

.checkout-primary-link {
    display: inline-flex;
    min-height: 48px;
    margin-top: 25px;
    padding: 0 21px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    box-shadow: 0 14px 28px rgba(109, 40, 217, 0.2);
    font-weight: 800;
    text-decoration: none;
    gap: 9px;
    transition: 0.2s ease;
}

.checkout-primary-link:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
}

.checkout-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
}

.checkout-form-column {
    display: grid;
    gap: 22px;
}

.checkout-card,
.checkout-summary-card,
.checkout-help-card {
    border: 1px solid var(--checkout-border);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.065);
}

.checkout-card {
    overflow: hidden;
}

.checkout-card-header {
    display: flex;
    padding: 25px 27px 22px;
    align-items: flex-start;
    border-bottom: 1px solid #edf0f5;
    gap: 15px;
}

.checkout-card-number {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.2);
    font-size: 15px;
    font-weight: 900;
}

.checkout-card-header h2 {
    margin: 0;
    color: var(--checkout-dark);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.25px;
}

.checkout-card-header p {
    margin: 4px 0 0;
    color: var(--checkout-muted);
    font-size: 13px;
    line-height: 1.45;
}

.checkout-card-body {
    padding: 27px;
}

/*
|--------------------------------------------------------------------------
| Campos
|--------------------------------------------------------------------------
*/

.checkout-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.checkout-field {
    min-width: 0;
}

.checkout-field.field-full {
    grid-column: 1 / -1;
}

.checkout-field > label {
    display: flex;
    margin: 0 0 8px;
    align-items: center;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    gap: 4px;
}

.checkout-field > label > span {
    color: var(--checkout-danger);
}

.checkout-field > label > small {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.checkout-input {
    display: flex;
    min-height: 50px;
    padding: 0 15px;
    align-items: center;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #fbfcfe;
    gap: 11px;
    transition: 0.2s ease;
}

.checkout-input:focus-within {
    border-color: rgba(109, 40, 217, 0.68);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.09);
}

.checkout-input > i {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 17px;
    transition: 0.2s ease;
}

.checkout-input:focus-within > i {
    color: var(--checkout-primary);
}

.checkout-input input,
.checkout-field textarea {
    width: 100% !important;
    color: var(--checkout-dark) !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

.checkout-input input {
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.checkout-input input::placeholder,
.checkout-field textarea::placeholder {
    color: #a5afbd;
}

.checkout-field textarea {
    display: block;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 13px 15px !important;
    resize: vertical;
    border: 1px solid #dbe2ea !important;
    border-radius: 14px !important;
    background: #fbfcfe !important;
    line-height: 1.5;
    transition: 0.2s ease;
}

.checkout-field textarea:focus {
    border-color: rgba(109, 40, 217, 0.68) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.09) !important;
}

.textarea-information {
    display: flex;
    margin-top: 6px;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 11px;
}

.textarea-information strong {
    color: var(--checkout-muted);
}

.field-error {
    display: none;
    margin-top: 6px;
    color: var(--checkout-danger);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.field-error.is-visible {
    display: block;
}

.checkout-field.has-error .checkout-input,
.checkout-field.has-error textarea {
    border-color: rgba(220, 38, 38, 0.68) !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.07) !important;
}

/*
|--------------------------------------------------------------------------
| Métodos de pago
|--------------------------------------------------------------------------
*/

.payment-methods-list {
    display: grid;
    gap: 13px;
}

.payment-methods-list.has-error {
    padding: 6px;
    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 18px;
    background: rgba(254, 242, 242, 0.45);
}

.checkout-payment-method {
    position: relative;
    display: grid;
    margin: 0;
    padding: 18px;
    align-items: flex-start;
    color: var(--checkout-text);
    border: 1px solid #dfe5ed;
    border-radius: 18px;
    background: #fff;
    grid-template-columns: 24px 48px minmax(0, 1fr);
    gap: 13px;
    cursor: pointer;
    transition: 0.22s ease;
}

.checkout-payment-method:hover {
    border-color: rgba(109, 40, 217, 0.33);
    box-shadow: 0 12px 30px rgba(109, 40, 217, 0.08);
    transform: translateY(-2px);
}

.checkout-payment-method.is-selected {
    border-color: var(--checkout-primary);
    background: linear-gradient(135deg, #faf7ff, #f7faff);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.09);
}

.checkout-payment-method.is-unavailable {
    display: none !important;
}

.checkout-payment-method > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.payment-radio {
    display: grid;
    width: 22px;
    height: 22px;
    margin-top: 12px;
    place-items: center;
    color: transparent;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
    transition: 0.2s ease;
}

.checkout-payment-method.is-selected .payment-radio {
    color: #fff;
    border-color: var(--checkout-primary);
    background: var(--checkout-primary);
}

.payment-method-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--checkout-primary);
    border-radius: 15px;
    background: #f3e8ff;
    font-size: 21px;
}

.checkout-payment-method.is-selected .payment-method-icon {
    color: #fff;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
}

.payment-method-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.payment-method-title {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.payment-method-title strong {
    overflow: hidden;
    color: var(--checkout-dark);
    font-size: 15px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-currency {
    display: inline-flex;
    min-height: 25px;
    padding: 0 9px;
    flex: 0 0 auto;
    align-items: center;
    color: #4c1d95;
    border-radius: 999px;
    background: #ede9fe;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.payment-method-main > small {
    margin-top: 2px;
    color: var(--checkout-muted);
    font-size: 12px;
}

.payment-method-details {
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 7px;
}

.payment-method-details > span {
    display: inline-flex;
    min-height: 29px;
    padding: 0 9px;
    align-items: center;
    color: #475569;
    border: 1px solid #e7ebf1;
    border-radius: 9px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    gap: 5px;
}

.payment-method-details i {
    color: var(--checkout-primary);
}

.payment-instructions {
    margin-top: 10px;
    padding: 10px 12px;
    color: #64748b;
    border-left: 3px solid #a78bfa;
    border-radius: 0 9px 9px 0;
    background: rgba(245, 243, 255, 0.78);
    font-size: 11px;
    line-height: 1.45;
}

.payment-qr {
    display: flex;
    width: fit-content;
    margin-top: 13px;
    padding: 8px;
    align-items: center;
    color: var(--checkout-primary);
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
    gap: 10px;
    cursor: zoom-in;
}

.payment-qr img {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: contain;
}

.payment-qr > span {
    max-width: 95px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
}

.no-payment-methods,
.no-compatible-payment {
    display: flex;
    padding: 17px;
    align-items: flex-start;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 15px;
    background: #fffbeb;
    font-size: 13px;
    gap: 12px;
}

.no-payment-methods > i,
.no-compatible-payment > i {
    margin-top: 2px;
    flex: 0 0 auto;
    font-size: 20px;
}

.no-payment-methods strong {
    display: block;
    font-size: 14px;
}

.no-payment-methods p {
    margin: 3px 0 0;
    line-height: 1.45;
}

.no-compatible-payment {
    margin-top: 12px;
}

.payment-method-error {
    margin-top: 9px;
}

/*
|--------------------------------------------------------------------------
| Comprobante
|--------------------------------------------------------------------------
*/

.receipt-uploader {
    margin-top: 21px;
}

.receipt-dropzone {
    display: flex;
    min-height: 215px;
    margin: 0;
    padding: 25px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 2px dashed #cbd5e1;
    border-radius: 19px;
    background: #f8fafc;
    cursor: pointer;
    transition: 0.22s ease;
}

.receipt-dropzone:hover,
.receipt-dropzone.is-dragging {
    border-color: var(--checkout-primary);
    background: #faf7ff;
    box-shadow: inset 0 0 0 4px rgba(109, 40, 217, 0.05);
}

.receipt-uploader.has-error .receipt-dropzone {
    border-color: rgba(220, 38, 38, 0.62);
    background: #fff7f7;
}

.receipt-upload-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    place-items: center;
    color: var(--checkout-primary);
    border-radius: 18px;
    background: #ede9fe;
    font-size: 27px;
    transition: 0.22s ease;
}

.receipt-dropzone:hover .receipt-upload-icon,
.receipt-dropzone.is-dragging .receipt-upload-icon {
    color: #fff;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    transform: translateY(-3px);
}

.receipt-dropzone > strong {
    color: var(--checkout-dark);
    font-size: 16px;
    font-weight: 900;
}

.receipt-dropzone > span:not(.receipt-upload-icon) {
    margin-top: 4px;
    color: var(--checkout-muted);
    font-size: 13px;
}

.receipt-dropzone > small {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.receipt-preview {
    display: grid;
    min-height: 105px;
    padding: 13px;
    align-items: center;
    border: 1px solid #dbe2ea;
    border-radius: 18px;
    background: #f8fafc;
    grid-template-columns: 82px minmax(0, 1fr) 40px;
    gap: 14px;
}

.receipt-preview-visual {
    display: grid;
    width: 82px;
    height: 82px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
}

.receipt-preview-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.receipt-pdf {
    color: #dc2626;
    font-size: 37px;
}

.receipt-file-information {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.receipt-file-information strong {
    overflow: hidden;
    color: var(--checkout-dark);
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.receipt-file-information span {
    margin-top: 3px;
    color: var(--checkout-muted);
    font-size: 12px;
}

.remove-receipt-button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    color: var(--checkout-danger);
    border: 0;
    border-radius: 12px;
    background: #fee2e2;
    transition: 0.2s ease;
}

.remove-receipt-button:hover {
    color: #fff;
    background: var(--checkout-danger);
    transform: translateY(-2px);
}

/*
|--------------------------------------------------------------------------
| Resumen
|--------------------------------------------------------------------------
*/

.checkout-summary-column {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 17px;
}

.checkout-summary-card {
    padding: 24px;
}

.summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.summary-header > div > span {
    display: block;
    margin-bottom: 2px;
    color: var(--checkout-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.summary-header h2 {
    margin: 0;
    color: var(--checkout-dark);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.summary-count {
    display: inline-flex;
    min-height: 30px;
    padding: 0 10px;
    flex: 0 0 auto;
    align-items: center;
    color: #4c1d95;
    border-radius: 999px;
    background: #ede9fe;
    font-size: 11px;
    font-weight: 700;
    gap: 3px;
}

.checkout-products {
    display: grid;
    max-height: 350px;
    margin-top: 20px;
    padding-right: 3px;
    overflow-y: auto;
    gap: 12px;
    scrollbar-color: #c4b5fd transparent;
    scrollbar-width: thin;
}

.checkout-product {
    display: grid;
    padding: 10px;
    align-items: center;
    border: 1px solid #e7ebf1;
    border-radius: 15px;
    background: #fbfcfe;
    grid-template-columns: 55px minmax(0, 1fr) auto;
    gap: 11px;
}

.checkout-product-image {
    display: grid;
    width: 55px;
    height: 55px;
    overflow: hidden;
    place-items: center;
    color: var(--checkout-primary);
    border-radius: 12px;
    background: #ede9fe;
    font-size: 22px;
}

.checkout-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-product-information {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.checkout-product-information strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--checkout-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.checkout-product-information span {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
}

.checkout-product-price {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
}

.checkout-product-price > strong {
    color: var(--checkout-primary-dark);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.remove-checkout-product {
    display: grid;
    width: 27px;
    height: 27px;
    padding: 0;
    place-items: center;
    color: #94a3b8;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    transition: 0.2s ease;
}

.remove-checkout-product:hover {
    color: var(--checkout-danger);
    background: #fee2e2;
}

.summary-divider {
    height: 1px;
    margin: 20px 0;
    background: #e8ecf2;
}

.summary-totals {
    display: grid;
    gap: 11px;
}

.summary-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--checkout-muted);
    font-size: 13px;
}

.summary-totals > div > strong {
    color: #475569;
    font-weight: 800;
}

.summary-totals .summary-total {
    margin-top: 3px;
    padding-top: 15px;
    color: var(--checkout-dark);
    border-top: 1px dashed #dbe2ea;
    font-size: 16px;
    font-weight: 900;
}

.summary-totals .summary-total > strong {
    color: var(--checkout-primary-dark);
    font-size: 24px;
    font-weight: 900;
}

.selected-payment-summary {
    display: flex;
    margin-top: 18px;
    padding: 12px;
    align-items: center;
    border: 1px solid #ddd6fe;
    border-radius: 14px;
    background: #faf7ff;
    gap: 11px;
}

.selected-payment-summary > i {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: #fff;
    border-radius: 11px;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    font-size: 17px;
}

.selected-payment-summary div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.selected-payment-summary span {
    color: var(--checkout-muted);
    font-size: 10px;
}

.selected-payment-summary strong {
    overflow: hidden;
    color: var(--checkout-dark);
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Confirmación y botón
|--------------------------------------------------------------------------
*/

.checkout-terms {
    position: relative;
    display: grid;
    margin: 19px 0 0;
    align-items: flex-start;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 9px;
    cursor: pointer;
}

.checkout-terms > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.terms-check {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: transparent;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 11px;
    transition: 0.2s ease;
}

.checkout-terms > input:checked + .terms-check {
    color: #fff;
    border-color: var(--checkout-primary);
    background: var(--checkout-primary);
}

#termsError {
    margin-bottom: 0;
}

.submit-checkout-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
    box-shadow: 0 16px 30px rgba(109, 40, 217, 0.24);
    font-size: 15px;
    font-weight: 900;
    transition: 0.22s ease;
}

.submit-checkout-button:hover:not(:disabled) {
    box-shadow: 0 20px 38px rgba(109, 40, 217, 0.32);
    transform: translateY(-3px);
}

.submit-checkout-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.35);
    opacity: 0.64;
}

.submit-button-content,
.submit-button-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.button-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: checkout-spin 0.7s linear infinite;
}

.checkout-security {
    display: grid;
    margin-top: 21px;
    gap: 11px;
}

.checkout-security > div {
    display: grid;
    align-items: center;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
}

.checkout-security > div > i {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--checkout-success);
    border-radius: 10px;
    background: #dcfce7;
    font-size: 14px;
}

.checkout-security span {
    display: flex;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.25;
    flex-direction: column;
}

.checkout-security strong {
    color: #475569;
    font-size: 11px;
}

/*
|--------------------------------------------------------------------------
| Ayuda
|--------------------------------------------------------------------------
*/

.checkout-help-card {
    display: flex;
    padding: 18px;
    align-items: flex-start;
    gap: 13px;
}

.checkout-help-card > i {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--checkout-primary);
    border-radius: 13px;
    background: #ede9fe;
    font-size: 19px;
}

.checkout-help-card > div {
    min-width: 0;
}

.checkout-help-card strong {
    display: block;
    color: var(--checkout-dark);
    font-size: 14px;
    font-weight: 900;
}

.checkout-help-card span {
    display: block;
    margin-top: 2px;
    color: var(--checkout-muted);
    font-size: 11px;
    line-height: 1.35;
}

.checkout-contact-links {
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 7px;
}

.checkout-contact-links a {
    display: inline-flex;
    min-height: 31px;
    padding: 0 10px;
    align-items: center;
    color: var(--checkout-primary-dark);
    border-radius: 9px;
    background: #f3e8ff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    gap: 5px;
    transition: 0.2s ease;
}

.checkout-contact-links a:hover {
    color: #fff;
    background: var(--checkout-primary);
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Pie de página
|--------------------------------------------------------------------------
*/

.checkout-footer {
    padding: 25px 0;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    font-size: 12px;
}

.checkout-footer .checkout-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.checkout-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.checkout-footer i {
    color: var(--checkout-success);
}

/*
|--------------------------------------------------------------------------
| SweetAlert2
|--------------------------------------------------------------------------
*/

.checkout-alert {
    border-radius: 24px !important;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18) !important;
    font-family: "Source Sans 3", "Segoe UI", sans-serif !important;
}

.checkout-alert .swal2-title {
    color: var(--checkout-dark) !important;
    font-size: 24px !important;
    font-weight: 900 !important;
}

.checkout-alert .swal2-html-container,
.checkout-alert .swal2-content {
    color: var(--checkout-muted) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.checkout-alert-confirm,
.checkout-alert-cancel {
    min-height: 45px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
}

.checkout-alert-confirm {
    color: #fff;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    box-shadow: 0 12px 25px rgba(109, 40, 217, 0.2);
}

.checkout-alert-cancel {
    color: #475569;
    background: #eef2f7;
}

.checkout-alert-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 12px 25px rgba(220, 38, 38, 0.18);
}

.checkout-alert-confirm:hover,
.checkout-alert-cancel:hover {
    transform: translateY(-2px);
}

.order-created-number {
    display: flex;
    margin: 18px 0;
    padding: 15px;
    align-items: center;
    flex-direction: column;
    border: 1px dashed #c4b5fd;
    border-radius: 15px;
    background: #faf7ff;
}

.order-created-number span {
    color: var(--checkout-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.order-created-number strong {
    margin-top: 3px;
    color: var(--checkout-primary-dark);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.qr-alert .swal2-image {
    max-width: calc(100% - 40px) !important;
    max-height: 420px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    object-fit: contain;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {
    .checkout-hero .checkout-shell {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }

    .checkout-hero-content {
        max-width: 700px;
    }

    .checkout-steps {
        width: 100%;
        justify-content: center;
    }

    .checkout-grid {
        grid-template-columns: minmax(0, 1fr) 350px;
    }
}

@media (max-width: 920px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary-column {
        position: static;
    }

    .checkout-summary-card {
        order: -1;
    }

    .checkout-products {
        max-height: none;
    }
}

@media (max-width: 700px) {
    .checkout-shell {
        width: min(1180px, calc(100% - 24px));
    }

    .checkout-header,
    .checkout-navbar {
        min-height: 66px;
    }

    .checkout-brand {
        max-width: 180px;
        min-height: 42px;
    }

    .checkout-brand img {
        max-width: 170px;
        max-height: 47px;
    }

    .checkout-brand span {
        font-size: 21px;
    }

    .back-store-button {
        width: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 12px;
    }

    .back-store-button span {
        display: none;
    }

    .checkout-hero {
        padding: 35px 0 88px;
    }

    .checkout-hero h1 {
        font-size: 35px;
    }

    .checkout-hero-content > p {
        font-size: 15px;
    }

    .checkout-steps {
        padding: 15px;
        justify-content: space-between;
        border-radius: 19px;
    }

    .checkout-step {
        min-width: auto;
        justify-content: center;
    }

    .checkout-step div {
        display: none;
    }

    .checkout-step-line {
        flex: 1 1 auto;
        margin: 0 9px;
    }

    .checkout-content {
        margin-top: -45px;
        padding-bottom: 42px;
    }

    .checkout-card,
    .checkout-summary-card,
    .checkout-help-card,
    .checkout-state-card {
        border-radius: 20px;
    }

    .checkout-card-header {
        padding: 20px;
    }

    .checkout-card-body,
    .checkout-summary-card {
        padding: 20px;
    }

    .checkout-fields-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .checkout-field.field-full {
        grid-column: auto;
    }

    .checkout-payment-method {
        padding: 15px;
        grid-template-columns: 22px 43px minmax(0, 1fr);
        gap: 10px;
    }

    .payment-method-icon {
        width: 43px;
        height: 43px;
        border-radius: 13px;
        font-size: 19px;
    }

    .payment-radio {
        margin-top: 10px;
    }

    .payment-method-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .payment-method-title strong {
        max-width: 100%;
    }

    .receipt-dropzone {
        min-height: 195px;
    }

    .checkout-footer .checkout-shell {
        text-align: center;
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 470px) {
    .checkout-card-header {
        gap: 11px;
    }

    .checkout-card-number {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
    }

    .checkout-card-header h2 {
        font-size: 18px;
    }

    .checkout-payment-method {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .payment-method-icon {
        display: none;
    }

    .payment-method-details {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-method-details > span {
        max-width: 100%;
    }

    .receipt-preview {
        grid-template-columns: 62px minmax(0, 1fr) 36px;
        gap: 10px;
    }

    .receipt-preview-visual {
        width: 62px;
        height: 62px;
    }

    .checkout-product {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .checkout-product-image {
        width: 48px;
        height: 48px;
    }

    .checkout-product-price {
        grid-column: 2;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }

    .summary-totals .summary-total > strong {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
