/* WebePc Woo Offer Management — Frontend banner styles */

.wom-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    margin: 16px 0;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

/* Preset 1 — Promo (amber) */
.wom-preset1 {
    background-color: #f59e0b;
    color: #1f2937;
}

/* Preset 2 — Offerta (green) */
.wom-preset2 {
    background-color: #16a34a;
    color: #ffffff;
}

/* Preset 3 — Premium (navy + gold) */
.wom-preset3 {
    background-color: #1e3a5f;
    color: #fbbf24;
}

/* Preset 4 — Flash (red) */
.wom-preset4 {
    background-color: #dc2626;
    color: #ffffff;
}

/* Custom: stili inline via PHP */

/* Codice sconto evidenziato */
.wom-coupon-code {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.18);
    font-family: monospace;
    font-size: 1.05em;
    letter-spacing: 0.06em;
    font-weight: 700;
}

/* Pulsante copia codice */
.wom-copy-btn {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.12);
    color: inherit;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}

.wom-copy-btn:hover {
    background: rgba(0, 0, 0, 0.22);
}

.wom-copy-btn.wom-copied {
    background: rgba(0, 0, 0, 0.30);
}

/* Animazioni di ingresso */
@keyframes wom-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes wom-slidedown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes wom-slideleft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes wom-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.03); }
}

.wom-anim-fadein    { animation: wom-fadein   .5s ease both; }
.wom-anim-slidedown { animation: wom-slidedown .45s ease both; }
.wom-anim-slideleft { animation: wom-slideleft .45s ease both; }
.wom-anim-pulse     { animation: wom-pulse     1s ease 2; }

/* Responsive: schermo stretto */
@media (max-width: 600px) {
    .wom-banner {
        padding: 10px 14px;
        font-size: 14px;
    }
}
