/* Rental product page: booking form, price pills, in-cart card. Loaded by Babyt_Rental_Product. */
.babyt-rental-mode-switcher {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.babyt-rental-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #475569;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.babyt-rental-mode-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.babyt-rental-mode-btn.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

.babyt-rental-mode-btn .mode-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 9999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
}

#rental-product-options-container {
    width: 100%;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1.5px solid #21bfd1;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px -2px rgba(33, 191, 209, 0.12);
    transition: all 0.3s ease;
}

.rental-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #0891b2;
    background: #ecfeff;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.rental-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.rental-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.rental-field-group input,
.rental-field-group select {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rental-field-group input:focus,
.rental-field-group select:focus {
    border-color: #21bfd1;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 191, 209, 0.2);
}

.rental-pricing-summary {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.rental-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 13.5px;
}

.rental-pricing-row:last-child {
    margin-bottom: 0;
    padding-top: 6px;
    border-top: 1px dashed #99f6e4;
    font-weight: 700;
    font-size: 15px;
}

/* !important beats the theme's pill-shaped .button (200px radius, 12px line-height). */
#add-rental-to-cart,
#add-to-cart-rental {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    aspect-ratio: auto !important;
    background: #21bfd1;
    color: #ffffff;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 12px 18px !important;
    border: none;
    border-radius: 10px !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(33, 191, 209, 0.25);
    white-space: normal;
    text-align: center;
}

#add-rental-to-cart .babyt-btn-icon,
#add-to-cart-rental .babyt-btn-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

#add-to-cart-rental {
    margin-left: 0 !important;
    margin-top: 8px;
}

#add-rental-to-cart:hover:not(:disabled) {
    background: #17a2b8;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(33, 191, 209, 0.35);
}

#add-rental-to-cart:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}
/* ---- Price pills + info popover ---- */
.babyt-rental-pricing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.babyt-rp-amount { font-size: 1.6em; font-weight: 800; color: #0e7490; line-height: 1.1; }
.babyt-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.babyt-pill--min { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.babyt-pill--rate { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.babyt-pill--max { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.babyt-info-wrap { position: relative; display: inline-flex; }
.babyt-info { width: 22px !important; height: 22px !important; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; border: 1px solid #94a3b8 !important; background: #fff !important; color: #475569 !important; font: italic 700 13px/1 Georgia, serif !important; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: none !important; }
.babyt-info:hover, .babyt-info:focus-visible { border-color: #21bfd1 !important; color: #0e7490 !important; outline: none; }
.babyt-popover { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); width: 260px; max-width: 80vw; padding: 10px 12px; background: #0f172a; color: #f8fafc; border-radius: 10px; font-size: 12.5px; line-height: 1.5; font-weight: 500; box-shadow: 0 10px 25px rgba(15, 23, 42, .25); opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease; z-index: 50; pointer-events: none; }
.babyt-popover::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #0f172a; }
.babyt-info-wrap:hover .babyt-popover, .babyt-info-wrap.is-open .babyt-popover, .babyt-info:focus-visible + .babyt-popover { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---- Already-in-cart card ---- */
.ric-card { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; color: #14532d; }
.ric-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; margin-bottom: 10px; }
.ric-dates { background: #fff; border: 1px solid #dcfce7; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 13px; color: #166534; }
.ric-row { display: flex; gap: 10px; padding: 3px 0; }
.ric-label { flex: 0 0 44px; font-weight: 700; color: #15803d; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; padding-top: 1px; }
.ric-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ric-btn { display: inline-flex !important; align-items: center; justify-content: center; min-height: 40px !important; height: auto !important; padding: 8px 16px !important; border-radius: 10px !important; font-size: 13.5px !important; font-weight: 700 !important; line-height: 1.2 !important; text-decoration: none !important; cursor: pointer; border: 1px solid transparent !important; text-transform: none !important; letter-spacing: 0 !important; }
.ric-btn--primary { background: #21bfd1 !important; color: #fff !important; }
.ric-btn--ghost { background: #fff !important; color: #334155 !important; border-color: #cbd5e1 !important; }
.ric-confirm { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #86efac; }
.ric-confirm[hidden] { display: none; }
.ric-confirm p { margin: 0 0 10px; font-size: 13px; color: #166534; }
.ric-confirm .ric-btn { margin-right: 8px; }
