/* =====================================================
   PREMIUM COPY PRICE ALERT
   CSS completamente isolato
   ===================================================== */

.copy-price-alert {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;

    width: 100%;
    min-height: 82px;

    padding: 17px 24px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.96),
            rgba(240, 247, 255, 0.92)
        );

    box-shadow:
        0 12px 35px rgba(13, 110, 253, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: var(--alert-dark);

    animation: copyPricePremiumIn 0.55s cubic-bezier(.2,.8,.2,1);
}



/* -----------------------------------------------------
   Barra colorata laterale
   ----------------------------------------------------- */

.copy-price-alert::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 5px;

    background: linear-gradient(
        180deg,
        #0d6efd 0%,
        #6f42c1 100%
    );
}


/* -----------------------------------------------------
   Effetto luminoso
   ----------------------------------------------------- */

.copy-price-alert__glow {
    position: absolute;

    width: 180px;
    height: 180px;

    top: -100px;
    left: 20%;

    border-radius: 50%;

    background: rgba(13, 110, 253, 0.12);

    filter: blur(35px);

    pointer-events: none;

    animation: copyPriceGlow 4s ease-in-out infinite;
}


/* -----------------------------------------------------
   Icona stampante
   ----------------------------------------------------- */

.copy-price-alert__icon {
    position: relative;
    z-index: 2;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #0d6efd,
        #6f42c1
    );

    color: white;

    font-size: 21px;

    box-shadow:
        0 7px 18px rgba(13, 110, 253, 0.28);

    animation: copyPriceIconPulse 3s ease-in-out infinite;
}


/* -----------------------------------------------------
   Contenuto
   ----------------------------------------------------- */

.copy-price-alert__content {
    position: relative;
    z-index: 2;

    flex: 1;
    min-width: 0;
}


/* -----------------------------------------------------
   Titolo
   ----------------------------------------------------- */

.copy-price-alert__title {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 4px;

    color: #174ea6;

    font-size: 0.94rem;
    font-weight: 800;

    letter-spacing: 0.2px;
}

.copy-price-alert__title i {
    font-size: 0.82rem;
}


/* -----------------------------------------------------
   Messaggio
   ----------------------------------------------------- */

.copy-price-alert__message {
    font-size: 0.97rem;
    line-height: 1.8;

    color: #465365;
}

.copy-price-alert__message strong {
    color: #202a3a;
    font-weight: 700;
}


/* -----------------------------------------------------
   Prezzi
   ----------------------------------------------------- */

.copy-price-alert__price {
    position: relative;

    display: inline-block;

    margin: 0 4px;
    padding: 3px 10px;

    border-radius: 8px;

    color: white;

    font-size: 0.91rem;
    font-weight: 800;

    white-space: nowrap;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Hover sui prezzi */

.copy-price-alert__price:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.18);
}


/* -----------------------------------------------------
   Prezzo B/N
   ----------------------------------------------------- */

.copy-price-alert__price--bw {
    background: linear-gradient(
        135deg,
        #212529,
        #495057
    );
}


/* -----------------------------------------------------
   Prezzo colori
   ----------------------------------------------------- */

.copy-price-alert__price--color {
    background: linear-gradient(
        135deg,
        #e63946,
        #f76707
    );

    box-shadow:
        0 4px 14px rgba(230, 57, 70, 0.25);

    animation: copyPriceColorPulse 2.8s ease-in-out infinite;
}


/* -----------------------------------------------------
   Separatore
   ----------------------------------------------------- */

.copy-price-alert__separator {
    display: inline-block;

    margin: 0 5px;

    color: #aab4c2;

    font-size: 0.8rem;
}


/* =====================================================
   ANIMAZIONI
   ===================================================== */

@keyframes copyPricePremiumIn {

    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@keyframes copyPriceGlow {

    0%,
    100% {
        opacity: 0.45;
        transform: translateX(0);
    }

    50% {
        opacity: 0.8;
        transform: translateX(80px);
    }
}


@keyframes copyPriceIconPulse {

    0%,
    100% {
        box-shadow:
            0 7px 18px rgba(13, 110, 253, 0.28);
    }

    50% {
        box-shadow:
            0 8px 25px rgba(111, 66, 193, 0.40);
    }
}


@keyframes copyPriceColorPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 576px) {

    .copy-price-alert {
        align-items: flex-start;

        padding: 16px;

        gap: 12px;

        border-radius: 15px;
    }

    .copy-price-alert__icon {
        width: 42px;
        height: 42px;

        border-radius: 11px;

        font-size: 17px;
    }

    .copy-price-alert__title {
        font-size: 0.88rem;
    }

    .copy-price-alert__message {
        font-size: 0.89rem;
        line-height: 2;
    }

    .copy-price-alert__separator {
        display: none;
    }

    .copy-price-alert__price {
        padding: 2px 8px;

        font-size: 0.85rem;
    }
}


/* -----------------------------------------------------
   Riduzione animazioni per utenti che la preferiscono
   ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .copy-price-alert,
    .copy-price-alert__glow,
    .copy-price-alert__icon,
    .copy-price-alert__price--color {
        animation: none;
    }
}
