/* ============================================================
   WC Livraison & Click and Collect — Checkout Styles
   ============================================================ */

.wc-lp-selector-wrap {
    background: #ffffff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    font-family: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* --- Header --- */
.wc-lp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.wc-lp-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.wc-lp-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 3px 0;
    padding: 0;
    border: none;
    line-height: 1.3;
}

.wc-lp-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* --- Options container --- */
.wc-lp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Single option card --- */
.wc-lp-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    background: #fafafa;
    user-select: none;
}

.wc-lp-option:hover {
    border-color: #c0c0c0;
    background: #f5f5f5;
}

.wc-lp-option--active {
    border-color: #2271b1;
    background: #f0f6ff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Cacher le radio natif */
.wc-lp-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* --- Icône de l'option --- */
.wc-lp-option__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
    color: #666;
}

.wc-lp-option__icon svg {
    width: 22px;
    height: 22px;
}

.wc-lp-option--active .wc-lp-option__icon {
    background: #2271b1;
    color: #ffffff;
}

/* --- Texte de l'option --- */
.wc-lp-option__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.wc-lp-option__label {
    font-size: 14.5px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.wc-lp-option__desc {
    font-size: 12.5px;
    color: #888;
    line-height: 1.4;
}

.wc-lp-option--active .wc-lp-option__label {
    color: #2271b1;
}

/* --- Checkmark --- */
.wc-lp-option__check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    color: transparent;
    background: transparent;
}

.wc-lp-option__check svg {
    width: 12px;
    height: 12px;
}

.wc-lp-option--active .wc-lp-option__check {
    background: #2271b1;
    border-color: #2271b1;
    color: #ffffff;
}

/* --- Bloc info Click and Collect --- */
.wc-lp-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: #f0f9f0;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-size: 13px;
    color: #2d6a4f;
    line-height: 1.5;
    animation: wc-lp-fadein 0.25s ease;
}

.wc-lp-info svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #2d6a4f;
}

@keyframes wc-lp-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .wc-lp-selector-wrap {
        padding: 16px;
    }
    .wc-lp-option {
        padding: 13px 14px;
    }
    .wc-lp-option__icon {
        width: 38px;
        height: 38px;
    }
    .wc-lp-option__icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================
   Slot Picker — Sélecteur de créneau Click & Collect
   ============================================================ */

.wc-lp-picker {
    background: #ffffff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    display: none; /* géré par JS */
}

.wc-lp-picker__section {
    margin-bottom: 22px;
}

.wc-lp-picker__section:last-of-type {
    margin-bottom: 0;
}

/* Label de section */
.wc-lp-picker__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.wc-lp-picker__label svg {
    width: 15px;
    height: 15px;
    color: #2271b1;
    flex-shrink: 0;
}

/* ── Grille des jours ────────────────────────────────────── */
.wc-lp-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wc-lp-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 9px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 9px;
    background: #fafafa;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    line-height: 1.3;
    min-width: 80px;
    text-align: center;
}

.wc-lp-day:hover {
    border-color: #aac4e0;
    background: #f0f6ff;
}

.wc-lp-day--active {
    border-color: #2271b1;
    background: #f0f6ff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}

.wc-lp-day__label {
    font-size: 12px;
    color: #444;
    font-weight: 500;
}

.wc-lp-day--active .wc-lp-day__label {
    color: #2271b1;
    font-weight: 600;
}

/* ── Grille des créneaux horaires ───────────────────────── */
.wc-lp-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wc-lp-slot {
    padding: 8px 13px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    font-size: 12.5px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    white-space: nowrap;
}

.wc-lp-slot:hover {
    border-color: #aac4e0;
    background: #f0f6ff;
    color: #2271b1;
}

.wc-lp-slot--active {
    border-color: #2271b1;
    background: #2271b1;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}

/* ── Résumé du créneau choisi ───────────────────────────── */
.wc-lp-picker__summary {
    margin-top: 18px;
    padding: 11px 14px;
    background: #f0f9f0;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-size: 13px;
    color: #2d6a4f;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.wc-lp-picker__summary:empty {
    display: none;
}

.wc-lp-picker__summary svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #2d6a4f;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .wc-lp-picker {
        padding: 16px;
    }
    .wc-lp-day {
        min-width: 68px;
        padding: 7px 10px;
    }
    .wc-lp-slot {
        font-size: 12px;
        padding: 7px 10px;
    }
}
