/* ── Overlay ── */
.lsc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: lscFadeIn 0.18s ease;
}

@keyframes lscFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Fenêtre modale ── */
.lsc-modal {
    background: #fff;
    border-radius: 10px;
    width: 94vw;
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    animation: lscSlideUp 0.2s ease;
}

@keyframes lscSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Header ── */
.lsc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    background: #fff8e1;
    border-radius: 10px 10px 0 0;
}

.lsc-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.lsc-modal-icon {
    font-size: 20px;
}

.lsc-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}

.lsc-close-btn:hover {
    color: #333;
}

/* ── Body ── */
.lsc-modal-body {
    padding: 20px;
}

.lsc-modal-intro {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
}

/* ── Carte produit ── */
.lsc-product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
    transition: border-color 0.15s;
}

.lsc-product-card:hover {
    border-color: #ccc;
}

.lsc-product-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.lsc-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lsc-no-img {
    width: 80px;
    height: 80px;
    background: #e8e8e8;
    border-radius: 6px;
}

.lsc-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lsc-product-name-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.lsc-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    cursor: pointer;
    /* Le défilement est géré en JS au mouseenter */
}

.lsc-product-name:hover {
    color: #1a2a5e;
}

.lsc-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #e44;
}

/* ── Bouton d'ajout groupé ── */
.lsc-btn-bundle {
    flex-shrink: 0;
    background: #2c3e7a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
    white-space: nowrap;
}

.lsc-btn-bundle:hover:not(:disabled) {
    background: #1a2a5e;
}

.lsc-btn-bundle:disabled {
    background: #999;
    cursor: default;
}

/* ── Footer ── */
.lsc-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.lsc-btn-cancel {
    background: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.lsc-btn-cancel:hover {
    border-color: #999;
    color: #333;
}

/* ── Notice fiche produit (pliable) ── */
.lsc-product-notice {
    margin-top: 15px;
    background: #e8f4fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    overflow: hidden;
}

.lsc-notice-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #1a5276;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

/* Supprime la flèche native sur Safari/Chrome */
.lsc-notice-summary::-webkit-details-marker { display: none; }
.lsc-notice-summary::marker { display: none; }

.lsc-notice-label {
    flex: 1;
}

/* Chevron animé */
.lsc-notice-toggle::before {
    content: "▼";
    font-size: 10px;
    display: inline-block;
    transition: transform 0.2s;
    color: #2196f3;
}

.lsc-product-notice[open] .lsc-notice-toggle::before {
    transform: rotate(180deg);
}

/* Liste des produits dans la notice */
.lsc-notice-products {
    list-style: none;
    margin: 0;
    padding: 0 14px 12px 36px;
}

.lsc-notice-products li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(33, 150, 243, 0.15);
    font-size: 13px;
    gap: 8px;
}

.lsc-notice-products li:last-child {
    border-bottom: none;
}

.lsc-notice-products a {
    color: #1a5276;
    text-decoration: none;
    flex: 1;
    /* Tooltip natif via title="" */
}

.lsc-notice-products a:hover {
    text-decoration: underline;
}

.lsc-notice-price {
    font-weight: 700;
    color: #e44;
    white-space: nowrap;
    font-size: 13px;
}

/* ── Avertissement panier ── */
.lsc-cart-warning {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

/* ── Responsive mobile ── */
@media (max-width: 480px) {
    .lsc-product-card {
        flex-wrap: wrap;
    }
    .lsc-btn-bundle {
        width: 100%;
        justify-content: center;
    }
}
