/* =============================================================
   Muza Size Guide — Lightbox Frontend
   ============================================================= */

/* Pulsante */
.msg-size-guide-wrap {
    margin: 12px 0 16px;
}

.msg-size-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, background 0.2s;
    font-family: inherit;
    color: inherit;
}

.msg-size-guide-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

/* Overlay */
.msg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.msg-lightbox.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    backdrop-filter: blur(2px);
}

/* Inner box */
.msg-lightbox-inner {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 8px;
    max-width: 92vw;
    max-height: 92vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: msgFadeIn 0.22s ease;
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* Pulsante chiudi */
.msg-lightbox-close {
    position: sticky;
    top: 8px;
    float: right;
    margin: 8px 8px 0 0;
    background: rgba(0,0,0,0.08);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
}

.msg-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.18);
}

/* Immagine */
.msg-lightbox-content {
    padding: 16px;
    clear: both;
    text-align: center;
}

.msg-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* Body lock */
body.msg-no-scroll {
    overflow: hidden;
}
