/* ───── WCErrorPopup — DA Rose&Fly ───── */

/* Masque les notices inline WC, le JS lit le contenu pour la popup */
.woocommerce-error,
.woocommerce-notices-wrapper > .woocommerce-error,
form.woocommerce-checkout > .woocommerce-error,
.woocommerce > .woocommerce-error {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

.rnf-wcep {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: rnf-wcep-fade 0.25s ease-out;
}
.rnf-wcep[hidden] { display: none; }

.rnf-wcep__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 16, 28, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.rnf-wcep__dialog {
    position: relative;
    background: #fff;
    max-width: 460px;
    width: 100%;
    border-radius: 18px;
    padding: 38px 32px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(45, 16, 28, 0.28), 0 0 0 1px rgba(161, 75, 104, 0.08);
    animation: rnf-wcep-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rnf-wcep__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
    padding: 0;
}
.rnf-wcep__close:hover {
    color: #a14b68;
    background: #fff7fa;
}

.rnf-wcep__icon {
    font-size: 42px;
    margin-bottom: 12px;
    color: #a14b68;
    line-height: 1;
}

.rnf-wcep__title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 600;
    color: #8B2252;
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    letter-spacing: 0.2px;
}

.rnf-wcep__body {
    margin-bottom: 24px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #4a3940;
}
.rnf-wcep__body ul,
.rnf-wcep__body ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rnf-wcep__body li {
    margin: 6px 0;
}
.rnf-wcep__body li + li {
    padding-top: 6px;
    border-top: 1px solid rgba(161, 75, 104, 0.1);
}
.rnf-wcep__body a {
    color: #a14b68;
    text-decoration: underline;
}

.rnf-wcep__btn {
    background: #a14b68;
    color: #fff;
    border: 0;
    padding: 13px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(161, 75, 104, 0.25);
}
.rnf-wcep__btn:hover {
    background: #8B2252;
    box-shadow: 0 6px 16px rgba(161, 75, 104, 0.35);
}
.rnf-wcep__btn:active {
    transform: scale(0.97);
}

@keyframes rnf-wcep-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes rnf-wcep-pop {
    from { opacity: 0; transform: scale(0.85) translateY(15px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .rnf-wcep,
    .rnf-wcep__dialog {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    .rnf-wcep__dialog {
        padding: 32px 22px 22px;
    }
    .rnf-wcep__title {
        font-size: 19px;
    }
}
