/* AVL Rentals booking modal */

/* Buy + Rent button pair on the shop loop. Lays the two buttons inline so
   themes that put add-to-cart on its own line don't push "Rent Me" below. */
.avr-buy-rent-pair {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}
.avr-rent-me-btn {
    background: #fff !important;
    color: #2563eb !important;
    border: 1px solid #2563eb !important;
}
.avr-rent-me-btn:hover {
    background: #2563eb !important;
    color: #fff !important;
}
/* Single-product page: nudge the Rent Me button so it sits beside the
   Add-to-Cart button rather than wrapping under it. */
.single-product .avr-rent-me-btn {
    margin-left: .5rem;
}

.avr-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.avr-modal[hidden] { display: none; }
.avr-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.6); }
.avr-modal__panel {
    position: relative; background: #fff; max-width: 560px; width: calc(100% - 32px);
    border-radius: 12px; padding: 28px 24px 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    max-height: calc(100vh - 64px); overflow-y: auto;
}
.avr-modal__close {
    position: absolute; top: 8px; right: 12px; background: transparent; border: 0;
    font-size: 28px; line-height: 1; cursor: pointer; color: #64748b;
}
.avr-modal__title { margin: 0 0 12px; font-size: 1.4rem; font-weight: 700; }
.avr-modal__product { color: #475569; margin-bottom: 16px; font-size: 0.95rem; }
.avr-modal__row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.avr-modal__row label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; font-size: 0.9rem; color: #1e293b; }
.avr-modal__row input[type="date"], .avr-modal__row input[type="number"] {
    padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem;
}
.avr-modal__check { flex-direction: row !important; align-items: center; gap: 10px !important; }
.avr-modal__summary {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 16px;
    margin: 14px 0; font-size: 0.95rem; min-height: 24px;
}
.avr-line { display: flex; justify-content: space-between; padding: 4px 0; }
.avr-line--total { border-top: 1px solid #e2e8f0; margin-top: 6px; padding-top: 8px; font-weight: 700; }
.avr-modal__error {
    background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 6px;
    padding: 10px 12px; font-size: 0.9rem; margin-bottom: 14px;
}
.avr-modal__error--info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.avr-modal__actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.avr-modal__actions .button { padding: 10px 16px; border-radius: 6px; cursor: pointer; }
.avr-modal__actions .button-primary[disabled] { opacity: 0.55; cursor: not-allowed; }
[data-avr-show="tech_toggle"] { display: none; }
.avr-modal:has(input[data-avr="tech_toggle"]:checked) [data-avr-show="tech_toggle"] { display: flex; }
