/*
 * Courtyard Events — checkout modal styles.
 * Inherits the .c-modal shell from courtyard-theme where possible.
 */

.cy-checkout-modal {
    /* if the theme's .c-modal reset hasn't loaded, this ensures a reasonable baseline */
    position: fixed;
    inset: 0;
    background: rgba(15,15,15,0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1.5rem;
}
.cy-checkout-modal.is-open { display: flex; }

.cy-checkout-panel {
    background: var(--ivory, #F7F4EE);
    max-width: 560px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 2px;
    padding: 2.4rem 2rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(15,15,15,0.08);
}

.cy-checkout-summary {
    background: #fff;
    padding: 1rem 1.1rem;
    margin-top: 0.4rem;
    border: 1px solid rgba(15,15,15,0.08);
}
.cy-checkout-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}
.cy-checkout-total {
    border-top: 1px solid rgba(15,15,15,0.1);
    margin-top: 0.4rem;
    padding-top: 0.7rem;
    font-family: var(--font-serif, 'EB Garamond', serif);
    font-size: 1.1rem;
    color: var(--terracotta, #B85C38);
}

.cy-checkout-error {
    background: rgba(184, 92, 56, 0.08);
    border: 1px solid rgba(184, 92, 56, 0.3);
    color: var(--terracotta, #B85C38);
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    margin-top: 0.8rem;
}

#cy-payment-element {
    background: #fff;
    padding: 1rem;
    border: 1px solid rgba(15,15,15,0.08);
}
