/* =========================================================
   Styles pour l'Overlay (Modal) Admin
   ========================================================= */

.bgc-admin-product-trigger {
    cursor: pointer;
    text-decoration: none;
    color: #0073aa;
}
.bgc-admin-product-trigger:hover {
    color: #00a0d2;
}
.bgc-admin-product-trigger strong {
    color: #222;
}
.bgc-admin-product-trigger:hover strong {
    color: #0073aa;
}

.bgc-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.bgc-modal-overlay.is-visible { opacity: 1; visibility: visible; }

.bgc-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 800px; /* Plus large pour les détails */
    width: 100%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: scale(0.95);
    transition: transform 0.2s;
}
.bgc-modal-overlay.is-visible .bgc-modal-content { transform: scale(1); }
.bgc-modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.bgc-modal-close:hover { color: #333; }
.bgc-modal-content h3 { margin-top: 0; margin-bottom: 20px; font-size: 20px; }

.bgc-modal-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0051d8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: bgc-spin 1s linear infinite;
    margin: 30px auto;
}
@keyframes bgc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles du contenu de l'overlay */
.bgc-admin-overlay-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    max-height: 70vh;
    overflow-y: auto;
}
.bgc-admin-overlay-cover {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.bgc-admin-overlay-cover img {
    border-radius: 0 !important; /* Annule le style du helper */
    border: none !important;
}

.bgc-admin-overlay-details p,
.bgc-admin-overlay-details li {
    margin: 0 0 10px;
    font-size: 14px;
}
.bgc-admin-overlay-details strong {
    color: #333;
}
.bgc-admin-overlay-list {
    margin-left: 18px;
    padding-left: 0;
}
.bgc-admin-overlay-desc {
    font-size: 14px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px 14px;
    max-height: 200px;
    overflow-y: auto;
}
/* =========================================================
   Styles pour les pastilles de langue (inline)
   ========================================================= */

.bgc-langchips-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Style de base pour .bgc-chip (s'il n'est pas déjà dans common.css) */
.bgc-chip {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    background-color: #e2e8f0;
    color: #475569;
}