/* =================================================================
   WooCommerce Rental Pricing — front.css v3.4 — Concept A
   ================================================================= */

/* ══ Bloc produit — Concept A ═══════════════════════════════════ */

.wrp-block {
    width: 100%;
    margin: 0 0 20px;
    font-family: inherit;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

/* En-tête plein orange */
.wrp-block-header {
    background: #f05b31;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wrp-block-header span {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .10em;
    text-transform: uppercase;
}

/* Corps */
.wrp-block-body {
    padding: 18px 20px 20px;
}

/* Prix + dépôt côte à côte */
.wrp-price-deposit-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.wrp-price-col {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.wrp-base-price-val { font-size: 28px; font-weight: 600; color: #1a1a1a; }
.wrp-base-price-val .woocommerce-Price-amount { font-size: 1em; color: #1a1a1a; }
.wrp-per-day { font-size: 13px; color: #aaa; font-weight: 400; }

.wrp-deposit-col {
    text-align: right;
    flex-shrink: 0;
}
.wrp-deposit-lbl {
    display: block;
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1px;
}
.wrp-deposit-val {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}
.wrp-deposit-val .woocommerce-Price-amount { font-size: 1em; color: #555; }

/* Séparateur */
.wrp-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0 0 14px;
}

/* Assurance */
.wrp-ins-static {
    font-size: 12px;
    color: #888;
    margin: 0 0 14px;
    line-height: 1.5;
}
#wrp-ins-amount { color: #1a1a1a; font-weight: 500; }

/* Zone dates */
.wrp-dates-display { margin-bottom: 14px; }

.wrp-dates-pill {
    background: #fdf3ef;
    border: 1px solid #f9cdb8;
    border-radius: 7px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.wrp-dates-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.wrp-dates-sep { color: #ddd; font-size: 13px; }
.wrp-modify-dates {
    font-size: 13px;
    font-weight: 500;
    color: #f05b31;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.wrp-modify-dates:hover { color: #d04420; }
.wrp-reset-dates {
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.wrp-reset-dates:hover { color: #555; }

/* Quantité + bouton — même ligne */
.wrp-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wrp-qty-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.wrp-qty-btn {
    width: 36px;
    height: 44px;
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s;
    font-family: inherit;
    line-height: 1;
}
.wrp-qty-btn:hover { background: #ebebeb; }
.wrp-qty-input {
    width: 44px !important;
    height: 44px !important;
    border: none !important;
    border-left: 1px solid #e8e8e8 !important;
    border-right: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: #fff !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
}
.wrp-qty-input::-webkit-outer-spin-button,
.wrp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Bouton réserver */
.wrp-reserve-btn {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    background: #f05b31;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .01em;
    transition: background .15s;
    white-space: nowrap;
    line-height: 1.2;
}
.wrp-reserve-btn:hover { background: #d04420; }
.wrp-coming-soon-btn { opacity: .55; cursor: not-allowed !important; }

/* ══ POPUP calendrier ════════════════════════════════════════════ */

.wrp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* Fix #2 — popup plus compacte pour éviter le scroll sur laptop */
.wrp-popup {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 480px;
    max-height: 96vh;
    overflow-y: auto;
    padding: 16px 16px 16px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.wrp-popup-title { font-size: 14px; font-weight: 600; color: #1a1a1a; text-align: center; margin: 0 0 12px; }
.wrp-popup-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; font-size: 18px; cursor: pointer; color: #888; padding: 0; line-height: 1;
}
.wrp-popup-close:hover { color: #1a1a1a; }

/* Champs départ / retour */
.wrp-fields-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; margin-bottom: 10px; }
.wrp-field-label { font-size: 10px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
.wrp-field-date {
    border: 1px solid #ddd; border-radius: 5px; padding: 7px 8px; margin-bottom: 5px;
    font-size: 12px; color: #1a1a1a; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; background: #fff; transition: border-color .15s;
}
.wrp-field-date:hover { border-color: #f05b31; }
.wrp-field-date-icon { color: #bbb; font-size: 12px; }
.wrp-field-slot-lbl { font-size: 10px; color: #888; margin: 0 0 3px; }
.wrp-slot-btns { display: flex; gap: 4px; }
.wrp-slot-btn {
    flex: 1; border: 1px solid #ddd; border-radius: 5px; padding: 5px 3px;
    font-size: 10px; text-align: center; cursor: pointer; background: #fff; color: #555;
    line-height: 1.3; font-family: inherit; transition: all .15s;
}
.wrp-slot-btn span { display: block; font-size: 9px; color: #999; }
.wrp-slot-btn.active { background: #f05b31; border-color: #f05b31; color: #fff; }
.wrp-slot-btn.active span { color: rgba(255,255,255,.8); }
.wrp-slot-btn:not(.active):hover { border-color: #f05b31; color: #f05b31; }
.wrp-fields-arrow { padding-top: 22px; font-size: 14px; color: #ccc; text-align: center; }

/* Fix #2 — Calendrier compact */
.wrp-cal-wrap { margin-bottom: 10px; }
.wrp-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wrp-cal-nav-btn {
    background: none; border: 1px solid #e0e0e0; border-radius: 4px;
    width: 26px; height: 26px; cursor: pointer; font-size: 14px; color: #555;
    display: flex; align-items: center; justify-content: center; padding: 0; transition: background .15s;
}
.wrp-cal-nav-btn:hover { background: #f5f5f5; }
.wrp-cal-month { font-size: 12px; font-weight: 600; color: #1a1a1a; text-transform: capitalize; }
.wrp-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.wrp-dow { text-align: center; font-size: 9px; font-weight: 600; color: #999; padding: 2px 0 4px; text-transform: uppercase; }
.wrp-dow.we { color: #ccc; }
.wrp-day { aspect-ratio:1; display:flex; align-items:center; justify-content:center; font-size:11px; border-radius:4px; cursor:default; font-weight:400; transition:background .1s; }
.wrp-day.empty { background:transparent; }
.wrp-day.available { color:#333; cursor:pointer; font-weight:500; }
.wrp-day.available:hover { background:#ffe0cc; color:#f05b31; }
.wrp-day.unavailable { color:#ccc; text-decoration:line-through; cursor:not-allowed; }
.wrp-day.past { color:#ddd; cursor:not-allowed; }
.wrp-day.today.available { border:1.5px solid #f05b31; color:#f05b31; }
.wrp-day.sel-start { background:#f05b31!important; color:#fff!important; font-weight:700; border-radius:4px 0 0 4px; }
.wrp-day.sel-end   { background:#f05b31!important; color:#fff!important; font-weight:700; border-radius:0 4px 4px 0; }
.wrp-day.sel-start.sel-end { border-radius:4px; }
.wrp-day.in-range  { background:#ffeee6; color:#f05b31; border-radius:0; }
.wrp-cal-legend { display:flex; gap:10px; margin-top:6px; flex-wrap:wrap; }
.wrp-leg { display:flex; align-items:center; gap:4px; font-size:9px; color:#888; }
.wrp-leg-dot { width:9px; height:9px; border-radius:2px; display:inline-block; flex-shrink:0; }
.wrp-leg-dot.avail   { background:#fff; border:1px solid #ddd; }
.wrp-leg-dot.sel     { background:#f05b31; }
.wrp-leg-dot.unavail { background:#f5f5f5; border:1px solid #eee; }

/* Résumé popup */
.wrp-popup-summary { display:flex; align-items:center; justify-content:space-between; padding:8px 0; border-top:1px solid #eee; margin-bottom:10px; min-height:32px; }
.wrp-popup-summary-txt  { font-size:12px; color:#555; }
.wrp-popup-summary-price{ font-size:15px; font-weight:600; color:#f05b31; }
.wrp-popup-actions { display:flex; gap:8px; }
.wrp-popup-cancel  { flex:1; padding:9px 0; background:#f5f5f5; color:#555; border:1px solid #e0e0e0; border-radius:6px; font-size:13px; cursor:pointer; font-family:inherit; }
.wrp-popup-confirm { flex:2; padding:9px 0; background:#f05b31; color:#fff; border:none; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer; font-family:inherit; transition:background .15s; }
.wrp-popup-confirm:hover    { background:#d04420; }
.wrp-popup-confirm:disabled { background:#ccc; cursor:not-allowed; }

/* ══ RESPONSIVE MOBILE ══════════════════════════════════════════ */

@media (max-width: 480px) {
    /* Option B — quantité sur une ligne fond gris, bouton dessous pleine largeur */
    .wrp-action-row {
        flex-direction: column;
        gap: 10px;
    }
    .wrp-action-row .wrp-qty-wrap {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f9f9f9;
        border-radius: 6px;
        padding: 8px 12px;
        border: 1.5px solid #e0e0e0;
        box-sizing: border-box;
    }
    /* Label "Quantité" à gauche */
    .wrp-action-row .wrp-qty-wrap::before {
        content: 'Quantité';
        font-size: 13px;
        font-weight: 500;
        color: #333;
    }
    /* Stepper à droite — retire les bordures externes du wrap */
    .wrp-qty-btn, .wrp-qty-input {
        /* taille réduite sur mobile */
    }
    .wrp-reserve-btn {
        width: 100%;
        flex: none;
    }
    /* Popup mobile : champs départ/retour empilés */
    .wrp-fields-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .wrp-fields-arrow { display: none; }
    .wrp-popup { padding: 14px 12px; }
}

/* ══ MODALE ALERTE ═══════════════════════════════════════════════ */

.wrp-alert-modal { background:#fff; border-radius:10px; width:100%; max-width:440px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.2); }
.wrp-alert-header { background:#f05b31; padding:14px 20px; }
.wrp-alert-header p { font-size:14px; font-weight:600; color:#fff; margin:0; }
.wrp-alert-body { padding:20px; }
.wrp-alert-body > p { font-size:13px; color:#333; margin:0 0 16px; line-height:1.6; }
.wrp-alert-periods { display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:center; margin-bottom:20px; }
.wrp-alert-period { border:1px solid #e0e0e0; border-radius:6px; padding:10px 12px; }
.wrp-alert-period.new { border-color:#f05b31; border-width:1.5px; }
.wrp-alert-period-lbl  { font-size:10px; font-weight:600; color:#999; text-transform:uppercase; letter-spacing:.05em; margin:0 0 4px; }
.wrp-alert-period.new .wrp-alert-period-lbl { color:#f05b31; }
.wrp-alert-period-date { font-size:13px; font-weight:500; color:#1a1a1a; margin:0 0 2px; }
.wrp-alert-period-info { font-size:11px; color:#888; margin:0; }
.wrp-alert-arrow  { font-size:18px; color:#ccc; text-align:center; }
.wrp-alert-actions { display:flex; gap:8px; }
.wrp-alert-cancel  { flex:1; padding:10px 0; background:#f5f5f5; color:#555; border:1px solid #e0e0e0; border-radius:6px; font-size:13px; cursor:pointer; font-family:inherit; }
.wrp-alert-confirm { flex:2; padding:10px 0; background:#f05b31; color:#fff; border:none; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer; font-family:inherit; transition:background .15s; }
.wrp-alert-confirm:hover { background:#d04420; }

/* ══ PANIER ══════════════════════════════════════════════════════ */

.wrp-cart-bar { display:flex; align-items:center; justify-content:space-between; background:#fafafa; border:1px solid #e8e8e8; border-radius:8px; padding:12px 16px; margin-bottom:0; flex-wrap:wrap; gap:10px; }
.wrp-cart-bar-inner { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.wrp-cart-bar-label { font-size:11px; font-weight:600; color:#888; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
.wrp-cart-bar-dates { font-size:13px; color:#1a1a1a; }
.wrp-cart-bar-dates strong { font-weight:600; }
.wrp-cart-bar-dates em { color:#888; font-style:normal; font-size:12px; }
.wrp-cart-bar-btn { padding:7px 14px; background:#f05b31; color:#fff; border:none; border-radius:5px; font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; white-space:nowrap; transition:background .15s; flex-shrink:0; }
.wrp-cart-bar-btn:hover { background:#d04420; }

.wrp-availability-notice { display:flex; align-items:flex-start; gap:0; margin:12px 0 20px; padding:14px 18px; background:#fff8f5; border-radius:8px; border-left:4px solid #f05b31; line-height:1.5; }
.wrp-availability-notice-text strong { display:block; font-size:15px; font-weight:500; color:#1a1a1a; margin-bottom:3px; }
.wrp-availability-notice-text span { font-size:14px; color:#555; }
.wrp-availability-notice a { color:#f05b31; text-decoration:none; font-weight:600; }
.wrp-availability-notice a:hover { text-decoration:underline; }

/* Dépôt de garantie dans les totaux */
.wrp-deposit-row th, .wrp-deposit-row td { font-size:13px; color:#555; }
.wrp-deposit-row th { font-weight:500; }

/* Catalogue */
.wrp-from, .wrp-per-day-cat { font-size:12px; color:#999; }
