/* ═══════════════════════════════════════════════════════════
   Anteprima prodotto (standalone) — regole SOLO dashboard/admin.
   Le classi condivise fp-* sono in css_style_mod.css (sezione
   "COMPONENTE PRODOTTO / CONFIGURATORE").
   Questo file aggiunge: body reset, admin bar, live fallback.
   ═══════════════════════════════════════════════════════════ */

/* ── Import base condivisa (fp-* + font Oswald + font Montserrat) ── */
@import url('../../../css_style_mod.css');

/* ── Body reset standalone (solo pagina preview, non web_app) ── */
.fp-body-reset {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f1f1f1;
    min-height: 100vh;
}

/* Language switcher — login / product-print preview (layout-preview.php) */
.vo-lang-preview-bar {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    pointer-events: auto;
}
.vo-lang-preview-bar .vm-ar2-lang {
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
}

#previewRoot {
    min-height: 100vh;
}

/* ── Live fallback notice (solo builder live) ── */
.fp-live-fallback-notice {
    background: #fef3c7;
    color: #92400e;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 8px;
    margin: 10px 12px;
}

/* ── Barra admin (nascosta in web_app, visibile qui) ── */
.fp-admin-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: #1e293b;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fp-admin-bar-back {
    color: #fde68a !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.fp-admin-bar-back:hover {
    color: #fff !important;
}

.fp-admin-bar-label {
    font-size: 13px;
    opacity: 0.95;
}

/* Modal avviso scelta obbligatoria — prodotto-preview.js */
.fp-section-alert-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.fp-section-alert-modal[hidden] {
    display: none !important;
}

body.fp-section-alert-modal-open {
    overflow: hidden;
}

.fp-section-alert-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 24, 27, 0.55);
    cursor: pointer;
}

.fp-section-alert-modal__sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    background: #ffffff;
    color: #1f1a16;
    border: 1px solid #ded2c3;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    padding: 1.15rem 1.15rem 1rem;
    text-align: center;
}

.fp-section-alert-modal__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.fp-section-alert-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(234, 179, 8, 0.15);
    color: #b45309;
    font-size: 1.45rem;
    line-height: 1;
}

.fp-section-alert-modal__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.fp-section-alert-modal__message {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #6f6258;
}

.fp-section-alert-modal__footer {
    display: flex;
    justify-content: center;
}

.fp-section-alert-modal__ok {
    min-width: 7.5rem;
    padding: 0.55rem 1.25rem !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
}
