/* -------------------------------------------------------------------------
   PUMP & SPLASH — ESTIMATE POPUP
   Structural CSS only. Typography, colors and font classes are inherited
   from your existing stylesheets (VAGRounded, --red, --blue, etc.).
   Paste into forms.css alongside the existing #popup_form_wrap rules.
   ------------------------------------------------------------------------- */

/* Overlay backdrop — same z-index pattern as #blocker_black in main.css */
#ps-estimate-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9000;
    overflow-y: auto;
}

body.ps-estimate-open { overflow: hidden; }

/* Popup box — mirrors #popup_form_wrap conventions: red border, 2rem radius,
   yellow-to-white gradient, box shadow */
#ps-estimate-box {
    box-sizing: border-box;
    width: 50%;
    max-width: 680px;
    margin: 5% auto;
    border: .3rem solid var(--red);
    border-radius: 2rem;
    padding: 2rem;
    background-image: linear-gradient(var(--yellow), white);
    box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.5);
}

/* Header */
.ps-est-header {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--med_grey);
}

.ps-est-title   { font-size: 1.4rem; margin-bottom: .25rem; }
.ps-est-customer { font-size: 1.1rem; margin-bottom: .15rem; }
.ps-est-event-info { font-size: .85rem; color: var(--dk_grey); font-family: 'VAGRoundedLight', sans-serif; }

/* Line items */
.ps-est-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: .3rem 0;
    border-bottom: 1px solid var(--lt_grey);
    gap: 1rem;
}

.ps-est-item:last-child { border-bottom: none; }

.ps-est-item-left   { flex: 1; }
.ps-est-item-label  { font-size: 1rem; display: block; }
.ps-est-item-detail { font-size: .8rem; color: var(--dk_grey); display: block; margin-top: .1rem; font-family: 'VAGRoundedLight', sans-serif; }
.ps-est-item-amount { font-size: 1rem; white-space: nowrap; padding-top: 2px; }

/* Muted row for included/free items */
.ps-est-item-included .ps-est-item-label,
.ps-est-item-included .ps-est-item-amount { color: var(--med_grey); }

/* "Included" badge */
.ps-est-included-tag {
    font-size: .75rem;
    color: var(--blue);
    border: 1px solid var(--blue);
    border-radius: .5rem;
    padding: 1px 7px;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-family: 'VAGRoundedBold', sans-serif;
}

/* Total row */
.ps-est-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 2px solid var(--dk_grey);
    font-size: 1.2rem;
}

.ps-est-total-amount { font-size: 1.4rem; }

/* Disclaimer */
.ps-est-disclaimer {
    font-size: .8rem;
    color: var(--dk_grey);
    margin: .5rem 0 .75rem;
    line-height: 1.3rem !important;
    font-family: 'VAGRoundedLight', sans-serif;
}

/* Action buttons */
.ps-est-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .5rem;
}

/* Edit link — plain text style, no button treatment */
.ps-est-btn-edit {
    font-family: 'VAGRoundedLight', sans-serif;
    font-size: .9rem;
    color: var(--dk_grey);
    cursor: pointer;
    text-decoration: underline;
}

.ps-est-btn-edit:hover { color: var(--red); }

/* Confirm button reuses .book_button from main.css — no extra styles needed */

/* ── Mobile ── */
@media only screen and (max-width: 600px) {
    #ps-estimate-box {
        width: calc(100% - 2rem);
        margin: 1rem;
        padding: 1.5rem 1.25rem;
        border-radius: 1.2rem;
    }
    .ps-est-actions { flex-direction: column-reverse; }
    .ps-est-btn-confirm.book_button { width: 100%; text-align: center; }
}
