.payment-concealed {
    display: none !important;
}

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

.checkout-card {
    position: relative;
    margin: 3rem 0 1rem;
    padding: clamp(28px, 5vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(217, 181, 109, 0.34);
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 10%, rgba(185, 100, 63, 0.2), transparent 34%),
        linear-gradient(145deg, rgba(27, 18, 16, 0.98), rgba(8, 6, 6, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
}

.checkout-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    border: 1px solid rgba(217, 181, 109, 0.08);
    border-radius: 15px;
}

.checkout-kicker {
    color: #d9b56d;
    font: 500 0.7rem/1.3 "Cinzel", serif;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.checkout-card h3 {
    margin-top: 13px;
    color: #f1e7d6;
    font: 500 clamp(1.55rem, 4vw, 2.35rem)/1.22 "Cinzel", serif;
}

.checkout-description {
    max-width: 48ch;
    margin: 18px auto 0;
    color: rgba(241, 231, 214, 0.76);
    font-size: 1.04rem;
    line-height: 1.65;
}

.checkout-price {
    margin-top: 18px;
    color: #f0c979;
    font: 600 clamp(1.2rem, 3vw, 1.65rem)/1 "Cinzel", serif;
}

.checkout-form {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 560px;
    margin: 24px auto 0;
    text-align: left;
}

.checkout-form[hidden],
.payment-method-picker[hidden],
.checkout-phone-field[hidden] { display: none !important; }

.payment-method-picker {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 560px;
    margin: 25px auto 0;
}

.checkout-form label:first-child,
.checkout-form .checkout-email-field,
.checkout-actions {
    grid-column: 1 / -1;
}

.checkout-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.checkout-form label {
    display: grid;
    gap: 7px;
    color: rgba(241, 231, 214, 0.76);
    font: 500 0.68rem/1.4 "Cinzel", serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.checkout-form label span {
    color: rgba(241, 231, 214, 0.42);
    font-size: 0.86em;
}

.checkout-form label small {
    color: rgba(241, 231, 214, 0.56);
    font: 400 0.78rem/1.45 "Crimson Pro", serif;
    letter-spacing: normal;
    text-transform: none;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    min-height: 45px;
    padding: 0 14px;
    border: 1px solid rgba(217, 181, 109, 0.24);
    border-radius: 10px;
    outline: none;
    background: rgba(3, 2, 2, 0.64);
    color: #f1e7d6;
    font: 400 1rem/1.2 "Crimson Pro", serif;
    letter-spacing: normal;
    text-transform: none;
    -webkit-user-select: text;
    user-select: text;
}

.checkout-form input:focus,
.checkout-form select:focus {
    border-color: rgba(217, 181, 109, 0.68);
    box-shadow: 0 0 0 3px rgba(217, 181, 109, 0.08);
}

.checkout-button {
    position: relative;
    z-index: 1;
    min-height: 50px;
    margin-top: 0;
    padding: 0 26px;
    border: 1px solid rgba(217, 181, 109, 0.7);
    border-radius: 999px;
    background: linear-gradient(135deg, #a84f32, #c1844f);
    box-shadow: 0 10px 30px rgba(168, 79, 50, 0.25);
    color: #fff7e9;
    font: 600 0.76rem/1 "Cinzel", serif;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checkout-button-stripe {
    border-color: rgba(217, 181, 109, 0.38);
    background: linear-gradient(135deg, #282235, #53456d);
    box-shadow: 0 10px 30px rgba(40, 34, 53, 0.32);
}

.checkout-button.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.checkout-button.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid rgba(255, 247, 233, 0.32);
    border-top-color: #fff7e9;
    border-radius: 50%;
    animation: checkout-spinner 0.75s linear infinite;
}

@keyframes checkout-spinner {
    to { transform: rotate(360deg); }
}

.checkout-button:hover,
.checkout-button:focus-visible {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(168, 79, 50, 0.4);
}

.checkout-button:disabled {
    cursor: wait;
    opacity: 0.55;
    transform: none;
}

.checkout-status {
    min-height: 1.2em;
    margin-top: 14px;
    color: rgba(217, 181, 109, 0.78);
    font-size: 0.82rem;
    line-height: 1.5;
}

.checkout-status.error {
    color: #e6a08d;
}

.checkout-change-method { min-height: 44px; border: 0; background: transparent; color: rgba(241,231,214,.64); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.checkout-alert { position: fixed; inset: 0; width: min(430px, calc(100vw - 32px)); max-height: min(520px, calc(100dvh - 32px)); margin: auto; padding: 30px; overflow: auto; border: 1px solid rgba(217,181,109,.4); border-radius: 20px; background: linear-gradient(145deg,#211411,#090606); box-shadow: 0 30px 100px rgba(0,0,0,.78); color: #f1e7d6; text-align: center; }
.checkout-alert::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.checkout-alert-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 16px; place-items: center; border: 1px solid rgba(230,160,141,.55); border-radius: 50%; color: #e6a08d; font: 600 1.4rem/1 "Cinzel",serif; }
.checkout-alert h4 { margin: 0; font: 500 1.3rem/1.3 "Cinzel",serif; }
.checkout-alert-message { margin: 14px 0 22px; color: rgba(241,231,214,.76); line-height: 1.55; }
.checkout-alert-close { min-height: 44px; padding: 0 28px; border: 1px solid rgba(217,181,109,.55); border-radius: 999px; background: linear-gradient(135deg,#a84f32,#c1844f); color: #fff7e9; cursor: pointer; }

.stripe-checkout-panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    margin: 26px auto 0;
    padding: 22px;
    border: 1px solid rgba(217, 181, 109, 0.22);
    border-radius: 16px;
    background: rgba(5, 3, 3, 0.72);
    text-align: left;
}

.stripe-checkout-panel[hidden] {
    display: none;
}

.stripe-checkout-heading h4 {
    margin: 5px 0 20px;
    color: #f1e7d6;
    font: 500 1.2rem/1.3 "Cinzel", serif;
}

.stripe-confirm-button {
    width: 100%;
    margin-top: 22px;
}

.stripe-cancel-button {
    display: block;
    margin: 14px auto 0;
    border: 0;
    background: transparent;
    color: rgba(241, 231, 214, 0.62);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .checkout-button.is-loading::before {
        animation-duration: 1.5s;
    }
}

.index-item.payment-locked .index-item-title::after {
    content: "  ·  bloqueado";
    color: rgba(217, 181, 109, 0.65);
    font-size: 0.68em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .checkout-card {
        margin-top: 2rem;
        padding: 28px 20px;
    }

    .checkout-button {
        width: 100%;
        padding: 0 16px;
    }

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

    .checkout-form label:first-child,
    .checkout-actions {
        grid-column: auto;
    }

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

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