/**
 * RCRC Toast Notifications — Figma-matched cards.
 *
 * White card, soft shadow, colored edge strip on the inline-start side
 * (left in LTR, right in RTL — logical properties handle both), tinted
 * round icon, title + description, close X on the inline-end side.
 *
 * Position: fixed just below the sticky nav (JS measures the nav and sets
 * `top`), on the inline-start side of the page — right edge on Arabic
 * pages, left edge on English pages — sliding in from that side.
 */

#rcrc-toasts {
    position: fixed;
    top: 96px; /* fallback — rcrc-notifications.js sets the real value under the nav */
    inset-inline-start: 16px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 484px;
    pointer-events: none;
}

.rcrc-toast {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
    padding: 18px 20px;
    pointer-events: auto;
    opacity: 0;
    /* enter from the page's start side: off-screen left on LTR pages */
    transform: translateX(calc(-100% - 24px));
    transition: opacity .35s ease, transform .35s ease;
    font-family: var(--font-family-text, inherit);
}

/* …and off-screen right on RTL (Arabic) pages */
[dir="rtl"] .rcrc-toast {
    transform: translateX(calc(100% + 24px));
}

.rcrc-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Colored edge strip (image: left edge in LTR, right edge in RTL) */
.rcrc-toast::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--rcrc-toast-clr, transparent);
}

/* Type palette — strip color + icon tint, matched to the Figma mock */
.rcrc-toast--info {
    --rcrc-toast-clr: #4d7cfe;
    --rcrc-toast-tint: #e9effe;
}

.rcrc-toast--error {
    --rcrc-toast-clr: #d65745;
    --rcrc-toast-tint: #fdeeec;
}

.rcrc-toast--warning {
    --rcrc-toast-clr: #df9445;
    --rcrc-toast-tint: #fdf3e7;
}

.rcrc-toast--success {
    --rcrc-toast-clr: #4f9d6b;
    --rcrc-toast-tint: #eaf6ee;
}

.rcrc-toast__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rcrc-toast-tint, #f3f4f6);
    color: var(--rcrc-toast-clr, #374151);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rcrc-toast__icon svg {
    width: 22px;
    height: 22px;
}

.rcrc-toast__body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
    text-align: start;
}

.rcrc-toast__title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1c2430;
    margin: 0 0 4px;
    line-height: 1.4;
}

.rcrc-toast__msg {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5b6472;
}

.rcrc-toast__close {
    flex: 0 0 auto;
    background: none;
    border: 0;
    cursor: pointer;
    color: #3a4250;
    font-size: 15px;
    line-height: 1;
    padding: 6px;
    margin-inline-start: 4px;
}

.rcrc-toast__close:hover {
    color: #000;
}

@media (prefers-reduced-motion: reduce) {
    .rcrc-toast {
        transition: none;
    }
}

@media (max-width: 480px) {
    .rcrc-toast {
        padding: 14px 16px;
        gap: 12px;
    }

    .rcrc-toast__icon {
        width: 38px;
        height: 38px;
    }

    .rcrc-toast__title {
        font-size: 15px;
    }

    .rcrc-toast__msg {
        font-size: 13px;
    }
}

/* ── Hide Contact Form 7's default response banners — toasts replace them.
      Field-level .wpcf7-not-valid-tip hints stay, so the visitor can still
      see which field needs fixing. ─────────────────────────────────────── */
.wpcf7 form .wpcf7-response-output,
.wpcf7-response-output {
    display: none !important;
}