/* ============================================================
   BookingOnline Rentacar Affiliate — Widget theme override
   ------------------------------------------------------------
   A simpler, lighter, frame-less booking flow (similar feel to
   the 1rentacar site) with a black/white default. The primary
   action color comes from the website admin design
   (color_btn_primary / color_btn_text).

   All rules are scoped to .bo-rentacar-wrap with higher
   specificity so they win over the shared widget CSS WITHOUT
   modifying it (the shared CSS is also used by the admin embed).
   ============================================================ */

.bo-rentacar-wrap {
    width: 100%;
    margin: 0 auto;
    container-type: inline-size;
    /* Black/white defaults; buttons still follow admin colors. */
    --rbw-ink: #111111;
    --rbw-ink-soft: #6b6b6b;
    --rbw-hairline: #e6e6e6;
}

.bo-rentacar-wrap .rbw {
    max-width: 1120px;
    color: var(--rbw-ink);
}

/* ─── Remove the outer frame / dark box ─────────────────── */
.bo-rentacar-wrap .rbw-content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 28px 0 0;
}

/* ─── Step bar: light, minimal, black/white ─────────────── */
.bo-rentacar-wrap .rbw-steps {
    background: transparent;
    border-radius: 0;
    gap: 8px;
    margin-bottom: 4px;
}
.bo-rentacar-wrap .rbw-step {
    background: transparent;
    color: var(--rbw-ink-soft);
    border: none;
    border-bottom: 2px solid var(--rbw-hairline);
    border-radius: 0;
    padding: 10px 6px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.bo-rentacar-wrap .rbw-step.completed,
.bo-rentacar-wrap .rbw-step.active {
    background: transparent;
    color: var(--rbw-ink);
    border-bottom-color: var(--rbw-ink);
}
.bo-rentacar-wrap .rbw-step.completed:hover {
    background: transparent;
    color: #000;
}

/* ─── Step 1 search: no gradient, no card, plain surface ── */
.bo-rentacar-wrap .rbw-search-form {
    background: transparent;
    border-radius: 0;
    padding: 20px 0 0;
    color: var(--rbw-ink);
}
.bo-rentacar-wrap .rbw-search-title,
.bo-rentacar-wrap .rbw-title {
    color: var(--rbw-ink);
    letter-spacing: 0.01em;
}
.bo-rentacar-wrap .rbw-search-form .rbw-label,
.bo-rentacar-wrap .rbw-label {
    color: var(--rbw-ink-soft);
    opacity: 1;
    letter-spacing: 0.12em;
}

/* Inputs: white field, hairline border, dark text (was white-on-dark) */
.bo-rentacar-wrap .rbw-input {
    background: #ffffff;
    color: var(--rbw-ink);
    border: 1px solid var(--rbw-hairline);
    border-radius: 12px;
    padding: 13px 15px;
}
.bo-rentacar-wrap .rbw-input:focus {
    background: #ffffff;
    border-color: var(--rbw-ink);
}
.bo-rentacar-wrap .rbw-input option { color: var(--rbw-ink); background: #fff; }
.bo-rentacar-wrap .rbw-input::placeholder { color: var(--rbw-ink-soft); }
.bo-rentacar-wrap .rbw-mandatory { color: var(--rbw-ink-soft); opacity: 1; }

/* Checkout fields should visually match the date fields. */
.bo-rentacar-wrap .rbw-form-input {
    background: #ffffff;
    color: var(--rbw-ink);
    border: 1px solid var(--rbw-hairline);
    border-radius: 12px;
    padding: 13px 15px;
    min-height: 48px;
    line-height: 1.2;
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 400;
}

.bo-rentacar-wrap .rbw-form-input:focus {
    background: #ffffff;
    border-color: var(--rbw-ink);
    box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}

.bo-rentacar-wrap textarea.rbw-form-input {
    min-height: 96px;
}

/* Theme-safe field sizing: some WP themes constrain input/select widths. */
.bo-rentacar-wrap .rbw-field,
.bo-rentacar-wrap .rbw-form-field,
.bo-rentacar-wrap .rbw-form-row > * {
    min-width: 0;
}

.bo-rentacar-wrap .rbw-input,
.bo-rentacar-wrap .rbw-form-input,
.bo-rentacar-wrap select.rbw-input,
.bo-rentacar-wrap input.rbw-input,
.bo-rentacar-wrap input.rbw-form-input,
.bo-rentacar-wrap select.rbw-form-input,
.bo-rentacar-wrap textarea.rbw-form-input {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.bo-rentacar-wrap input[type="text"].rbw-input,
.bo-rentacar-wrap input[type="email"].rbw-form-input,
.bo-rentacar-wrap input[type="tel"].rbw-form-input,
.bo-rentacar-wrap input[type="text"].rbw-form-input,
.bo-rentacar-wrap input[type="date"].rbw-form-input,
.bo-rentacar-wrap input[type="time"].rbw-input,
.bo-rentacar-wrap input[type="date"].rbw-input,
.bo-rentacar-wrap select.rbw-input,
.bo-rentacar-wrap select.rbw-form-input {
    inline-size: 100% !important;
    max-inline-size: none !important;
    min-inline-size: 0 !important;
}

/* ─── Section titles: neutral, no colored underline ─────── */
.bo-rentacar-wrap .rbw-section-title {
    color: var(--rbw-ink);
    border-bottom: 1px solid var(--rbw-hairline);
}
.bo-rentacar-wrap .rbw-subtitle { color: var(--rbw-ink-soft); }

/* ─── Search summary chip: neutral, not colored ─────────── */
.bo-rentacar-wrap .rbw-search-summary {
    background: #fafafa;
    border: 1px solid var(--rbw-hairline);
    border-radius: 12px;
}

/* ─── Cards (cars, insurance, extras): clean white ─────── */
.bo-rentacar-wrap .rbw-card,
.bo-rentacar-wrap .rbw-car,
.bo-rentacar-wrap .rbw-insurance-card,
.bo-rentacar-wrap .rbw-extra-card {
    background: #ffffff;
    border: 1px solid var(--rbw-hairline);
    border-radius: 14px;
    box-shadow: none;
}

/* ─── Upgrade banner: white bg + admin secondary-color frame ─ */
.bo-rentacar-wrap .rbw-upgrade-banner {
    background: #ffffff;
    border: 2px solid var(--rbw-secondary, var(--rbw-hairline));
    border-radius: 14px;
}
.bo-rentacar-wrap .rbw-upgrade-img-wrap {
    background: #ffffff;
}

/* ─── Step 2 car card: cleaner, 1rentacar-like ─────────── */
.bo-rentacar-wrap .rbw-car-card {
    background: #ffffff;
    border: 1px solid var(--rbw-hairline);
    border-radius: 16px;
    box-shadow: none;
}
.bo-rentacar-wrap .rbw-car-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-color: var(--rbw-hairline);
}
.bo-rentacar-wrap .rbw-car-name { color: var(--rbw-ink); }
.bo-rentacar-wrap .rbw-car-price { color: var(--rbw-ink); }
.bo-rentacar-wrap .rbw-equip-tag {
    background: #ffffff;
    border: 1px solid var(--rbw-hairline);
    color: var(--rbw-ink-soft);
    border-radius: 999px;
    padding: 3px 10px;
}
/* Remove the dated red circular per-day badge → plain small text */
.bo-rentacar-wrap .rbw-daily-badge {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--rbw-ink-soft);
    align-items: flex-end;
    flex-direction: row;
    gap: 4px;
    margin-bottom: 0;
}
.bo-rentacar-wrap .rbw-daily-badge-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rbw-ink-soft);
}
.bo-rentacar-wrap .rbw-daily-badge-label {
    text-transform: lowercase;
    color: var(--rbw-ink-soft);
}

/* ─── Category filter pills: active uses admin button color ─ */
.bo-rentacar-wrap .rbw-cat-btn.active,
.bo-rentacar-wrap .rbw-filter-btn.active {
    background: var(--rbw-accent);
    color: var(--rbw-btn-text, #fff);
    border-color: var(--rbw-accent);
}

/* ─── Buttons: primary uses ADMIN button color ──────────── */
.bo-rentacar-wrap .rbw-btn {
    border-radius: 999px;
    letter-spacing: 0.06em;
}
.bo-rentacar-wrap .rbw-btn-primary,
.bo-rentacar-wrap .rbw-btn-select {
    background: var(--rbw-accent);
    color: var(--rbw-btn-text, #fff);
    box-shadow: none;
}
.bo-rentacar-wrap .rbw-btn-primary:hover:not(:disabled),
.bo-rentacar-wrap .rbw-btn-select:hover:not(:disabled) {
    background: var(--rbw-accent-hover);
    box-shadow: none;
    transform: none;
}
/* Secondary / ghost: black outline on white */
.bo-rentacar-wrap .rbw-btn-secondary {
    color: var(--rbw-ink);
    border-color: var(--rbw-ink);
}
.bo-rentacar-wrap .rbw-btn-secondary:hover:not(:disabled) {
    background: #f2f2f2;
}

@container (max-width: 980px) {
    .bo-rentacar-wrap .rbw-checkout {
        grid-template-columns: 1fr;
    }

    .bo-rentacar-wrap .rbw-summary {
        position: static;
        top: auto;
    }
}

@container (max-width: 760px) {
    .bo-rentacar-wrap .rbw-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bo-rentacar-wrap .rbw { max-width: 100%; }
    .bo-rentacar-wrap .rbw-content { padding-top: 18px; }
}
