/* ==========================================================================
   QDP Pallet Multiply – Styles
   ========================================================================== */

/* -------------------------------------------------------------------------
   Pallet Banner – unified notification
   Appears below the quantity selector when qty >= pallet_size.
   Left accent bar echoes the golden header of the pricing table.
   ------------------------------------------------------------------------- */

.qdp-pallet-banner {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 10px 14px;
    background: #FFFDF5;
    border: 1px solid #F0E4C3;
    border-left: 3px solid #F5C518;
    border-radius: 2px 6px 6px 2px;
    font-size: 13px;
    line-height: 1.5;
    color: #4A4035;
    animation: qdpSlideDown 0.25s ease-out;
}

.qdp-pallet-banner__count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
    color: #1A1A1A;
    white-space: nowrap;
}

.qdp-pallet-banner__count svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    position: relative;
    top: 1px;
}

.qdp-pallet-banner__msg {
    width: 100%;
    color: #6B5E50;
    font-size: 12.5px;
}


@keyframes qdpSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------
   Toast – auto-correction notification
   Dark, compact, bottom-center. Matches the black CTA button tone.
   ------------------------------------------------------------------------- */

.qdp-pallet-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    z-index: 999999;
    background: #1B3A5C;
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.45;
    padding: 14px 28px;
    border-radius: 6px;
    border-left: 4px solid #F5C518;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    max-width: 420px;
    text-align: left;
}

.qdp-pallet-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .qdp-pallet-banner {
        padding: 9px 12px;
        font-size: 12.5px;
        gap: 4px;
    }

    .qdp-pallet-banner__count {
        font-size: 12.5px;
    }

    .qdp-pallet-banner__msg {
        font-size: 12px;
    }

    .qdp-pallet-toast {
        left: 12px;
        right: 12px;
        transform: translateX(0) translateY(12px);
        max-width: none;
        font-size: 12.5px;
        padding: 10px 14px;
    }

    .qdp-pallet-toast--visible {
        transform: translateX(0) translateY(0);
    }
}
