/**
 * VELARA — PVR Toast UI
 * PVR Media Reviews for WooCommerce 1.3.3
 * Appearance only. Preserves native DOM, icons, close buttons and timers.
 */

/* Fixed toast stack: keep PVR's native layering and interactivity. */
body .pvr-notice-stack {
    top: 24px;
    right: 24px;
    width: min(360px, calc(100vw - 48px));
    gap: 10px;
}

/* One restrained visual system for Error, Success and Info. */
body .pvr-notice-stack .pvr-notice {
    box-sizing: border-box;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 13px 14px 15px;
    border: 1px solid #D8D4CF;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(42, 39, 36, 0.09);
    color: #2A2724;
    font-family: "Source Sans 3", sans-serif;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease;
}

body .pvr-notice-stack .pvr-notice.pvr-notice--show {
    opacity: 1;
    transform: translateY(0);
}

body .pvr-notice-stack .pvr-notice.pvr-notice--hide {
    opacity: 0;
    transform: translateY(-8px);
}

/* Semantic meaning is carried by the icon — never a full coloured card. */
body .pvr-notice-stack .pvr-notice--error .pvr-notice__icon {
    color: #C63B3B;
}

body .pvr-notice-stack .pvr-notice--success .pvr-notice__icon {
    color: #416E59;
}

body .pvr-notice-stack .pvr-notice--info .pvr-notice__icon {
    color: #986A35;
}

body .pvr-notice-stack .pvr-notice__icon {
    width: 18px;
    height: 20px;
    min-width: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
}

/* PVR writes inline width/height on SVG; these two overrides are intentional. */
body .pvr-notice-stack .pvr-notice__svg-icon {
    width: 18px !important;
    height: 18px !important;
}

body .pvr-notice-stack .pvr-notice__text {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
    color: #2A2724;
}

body .pvr-notice-stack .pvr-notice .pvr-notice__close {
    box-sizing: border-box;
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin: -3px -3px 0 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: #727272;
    opacity: 1;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transform: none;
}

body .pvr-notice-stack .pvr-notice .pvr-notice__close:hover {
    background: #F3F3F3;
    color: #2A2724;
    opacity: 1;
}

body .pvr-notice-stack .pvr-notice .pvr-notice__close:focus-visible {
    outline: 2px solid #2A2724 !important;
    outline-offset: 2px;
    background: #F8F8F8;
    color: #2A2724;
}

@media (max-width: 767px) {
    body .pvr-notice-stack {
        top: max(12px, env(safe-area-inset-top));
        right: 16px;
        width: calc(100vw - 32px);
        gap: 8px;
    }

    body .pvr-notice-stack .pvr-notice {
        padding: 12px 12px 12px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .pvr-notice-stack .pvr-notice {
        transition: none;
        transform: none;
    }
}
