.coffee-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

.coffee-header {
    width: 100%;
    text-align: center;
    margin: 0;
}

.coffee-title {
    margin: 0 0 4px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    text-align: center;
}

/* Express Checkout (Google Pay / Apple Pay) */
.coffee-express,
#express-checkout-element {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    min-height: 0;
}

#express-checkout-element iframe,
#express-checkout-element > div {
    width: 100% !important;
    margin: 0 auto;
}

/* "Or" divider between Express and Credit Card */
.coffee-or-divider {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin: 2px auto;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.coffee-or-divider::before,
.coffee-or-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.coffee-or-divider span {
    padding: 0 12px;
}

/* Pay with Credit Card button */
.coffee-card-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    margin: 0 auto;
    padding: 12px 16px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.coffee-card-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Card form section (hidden until button clicked) */
.coffee-card-section {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    text-align: left;
}

#payment-element {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}

#coffee-submit-btn {
    width: 100%;
    min-height: 48px;
    background-color: #ffdd00;
    color: #000000;
    font-weight: 700;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.15s ease;
    font-family: inherit;
}

#coffee-submit-btn:hover:not(:disabled) {
    background-color: #f3d000;
}

#coffee-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#coffee-error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 1.2em;
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

.coffee-loader {
    font-size: 0.85rem;
    color: #64748b;
    padding: 8px 0;
    text-align: center;
}

.hidden {
    display: none !important;
}

@media screen and (max-width: 480px) {
    .coffee-cta-wrapper {
        max-width: 100%;
    }

    .coffee-title {
        font-size: 1.05rem;
    }

    #express-checkout-element,
    .coffee-or-divider,
    .coffee-card-btn,
    .coffee-card-section {
        max-width: 100%;
    }
}
