/* Checkout page */

body {
    background-color: #f5f7fb;
}

.checkout-page {
    background: #f5f7fb;
    padding-top: 15rem;
    padding-bottom: 4rem;
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
}

.checkout-hero {
    background: linear-gradient(135deg, #0f172a, #1d2743);
    color: #fff;
    padding: 2.5rem 0 5rem;
    margin-bottom: -4rem;
}

.checkout-hero__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.checkout-hero__eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.checkout-hero h1 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.checkout-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.checkout-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.checkout-breadcrumb a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.checkout-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

.checkout-progress__step span {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.checkout-progress__connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.checkout-progress__step.is-active,
.checkout-progress__step.is-complete {
    opacity: 1;
}

.checkout-progress__step.is-active span,
.checkout-progress__step.is-complete span {
    border-color: #fff;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
}

.checkout-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 2rem;
}

.checkout-main,
.checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-card,
.checkout-summary__card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.checkout-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkout-card__eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #64748b;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.checkout-card__subtext {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

.checkout-form__row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.checkout-field {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkout-field.full {
    flex-basis: 100%;
}

.checkout-field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
}

.checkout-field input,
.checkout-field textarea {
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.checkout-field select {
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    /* padding: 0.85rem 1rem; */
    font-size: 0.95rem;
    height: 51.99px;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #0f172a;
}

.checkout-field textarea {
    resize: vertical;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #fff;
}

.checkout-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0f172a;
}

.checkout-form__group.is-hidden {
    display: none;
}

.checkout-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkout-option {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-option input {
    display: none;
}

.checkout-option__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.checkout-option__meta {
    font-size: 0.9rem;
    color: #64748b;
}

.checkout-option__fee {
    font-weight: 600;
    color: #0f172a;
}

.checkout-option.is-selected {
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.checkout-payment__option {
    display: flex;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-payment__option+.checkout-payment__option {
    margin-top: 0.75rem;
}

.checkout-payment__option input {
    display: none;
}

.checkout-payment__content p {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.checkout-payment__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-payment__badge {
    font-size: 0.75rem;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-weight: 600;
}

.checkout-payment__option.is-selected {
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
}

.checkout-summary__card h2 {
    margin-bottom: 0.25rem;
}

.checkout-summary__muted {
    color: #94a3b8;
    font-size: 0.9rem;
}

.checkout-summary__items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

.checkout-line-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: 1.25rem;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
    width: 100%;
    flex-wrap: wrap;
}

.checkout-line-item__media {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.checkout-line-item__media img {
    width: 56px;
    height: 56px;
    border-radius: 0.85rem;
    object-fit: cover;
}

.checkout-line-item__content {
    flex: 1;
}

.checkout-line-item__name {
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #0f172a;
}

.checkout-line-item__meta {
    font-size: 0.85rem;
    color: #94a3b8;
    font-size: 10px;
}

.checkout-line-item__price {
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    margin-left: auto;
    white-space: normal;
    word-break: break-word;
    max-width: 40%;
    font-size: 13px;
}

.checkout-line-item__price small {
    display: block;
    font-weight: 500;
    font-size: 0.82rem;
    color: #94a3b8;
}

.checkout-summary__totals>div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.checkout-summary__total {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 1rem;
}

.checkout-summary__total strong {
    font-size: 1.25rem;
}

.checkout-summary__promo {
    margin: 1.5rem 0;
}

.checkout-summary__promo-field {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkout-summary__promo-field input {
    flex: 1;
    border-radius: 0.9rem;
    font-size: 13.5px;
    border: 1px solid #e2e8f0;
    padding: 0.85rem 1rem;
    background: #f8fafc;
}

.checkout-summary__promo-field button {
    /* border: none;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    border-radius: 0.9rem;
    padding: 0 1.5rem;
    cursor: not-allowed; */
    /* padding: 0 2.5rem; */
    padding: 0.95rem 1.25rem;
    border-radius: 999px
}

.checkout-summary__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkout-btn {
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkout-btn--primary {
    background: #000;
    color: #fff;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.25);
}

.checkout-btn--whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 18px 30px rgba(37, 211, 102, 0.3);
}

.checkout-btn--whatsapp.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkout-empty {
    display: flex;
    justify-content: center;
    padding: 5rem 0;
    background: #f8f5f2;
}

.checkout-empty__card {
    background: #fff;
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    max-width: 420px;
}

.checkout-empty__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(77, 186, 235, 0.15);
    color: #4dbaeb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}

.checkout-empty__card h2 {
    margin-bottom: 0.35rem;
    font-size: 1.4rem;
    color: #0f172a;
}

.checkout-empty__card p {
    color: #64748b;
    font-size: 0.95rem;
}

.checkout-empty__cta {
    display: inline-flex;
    margin-top: 1.25rem;
    padding: 0.8rem 1.75rem;
    background: #22b4f0;
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(34, 180, 240, 0.35);
}

.checkout-alert a {
    font-weight: 600;
}

@media (max-width: 992px) {
    .checkout-hero__content {
        flex-direction: column;
        align-items: flex-start;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-main {
        order: 1;
    }
    .checkout-summary {
        order: 2;
    }
}

@media (max-width: 576px) {
    .checkout-page {
        padding-top: 11rem !important;
    }
    .checkout-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .checkout-card,
    .checkout-summary__card {
        padding: 1.25rem;
    }
    .checkout-field {
        min-width: 100%;
    }
    .checkout-summary__promo-field {
        flex-direction: column;
    }
    .checkout-summary__promo-field button {
        width: 100%;
    }
    .checkout-btn {
        width: 100%;
    }
    .checkout-summary__card {
        border-radius: 2rem;
    }
    .checkout-line-item {
        gap: 0.85rem;
        padding: 0.75rem;
    }
    .checkout-line-item__media {
        width: 56px;
        height: 56px;
        border-radius: 1rem;
        padding: 0.35rem;
    }
    .checkout-line-item__media img {
        width: 100%;
        height: 100%;
    }
    .checkout-line-item__content {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }
    .checkout-line-item__name {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
    .checkout-line-item__price {
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    html,
    body {
        overflow-x: hidden;
    }
    .checkout-page {
        padding-top: 10rem;
    }
    .checkout-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        width: 100%;
    }
    .checkout-card,
    .checkout-summary__card {
        padding: 0.95rem;
        border-radius: 1.5rem;
    }
    .checkout-card__eyebrow {
        font-size: 0.6rem;
    }
    .checkout-card__header h2,
    .checkout-summary__card h2 {
        font-size: 1.05rem;
    }
    .checkout-field label {
        font-size: 0.75rem;
    }
    .checkout-field input,
    .checkout-field textarea,
    .checkout-field select {
        font-size: 0.85rem;
        padding: 0.65rem 0.85rem;
    }
    .checkout-form__row {
        gap: 0.75rem;
    }
    .checkout-summary__items {
        max-height: none;
    }
    .checkout-line-item__media {
        width: 52px;
        height: 52px;
        border-radius: 0.85rem;
    }
    .checkout-line-item__name {
        font-size: 0.9rem;
    }
    .checkout-line-item__price {
        font-size: 0.9rem;
        width: 100%;
        text-align: left;
        margin-top: 0.35rem;
        max-width: 100%;
    }
    .checkout-line-item__price small {
        font-size: 0.75rem;
    }
    .checkout-btn {
        font-size: 0.9rem;
    }
    .checkout-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        width: 100%;
    }
    .checkout-main,
    .checkout-summary {
        width: 90%;
        max-width: 90%;
        align-self: center;
    }
    .checkout-line-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 320px) {
    .checkout-page {
        padding-top: 7rem;
    }
    .checkout-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .checkout-card__header h2,
    .checkout-summary__card h2 {
        font-size: 0.95rem;
    }
    .checkout-field label {
        font-size: 0.7rem;
    }
    .checkout-field input,
    .checkout-field textarea,
    .checkout-field select {
        font-size: 0.78rem;
    }
    .checkout-card,
    .checkout-summary__card {
        padding: 0.8rem;
    }
    .checkout-btn {
        font-size: 0.85rem;
    }
}

.checkout-hero {
    padding: 1.5rem 0 3rem;
}