/**
 * Security Popup Styles
 *
 * Self-contained frontend styles — no dependency on admin design tokens.
 * Background colour is applied inline via PHP.
 *
 * @package DentalFormsReferrals
 * @since   3.0.2
 */

/* ── Container ── */
.dfr-security-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    width: calc(100% - 40px);
    z-index: 999999;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

/* ── Inner wrapper ── */
.dfr-security-popup__inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* ── Light-background text variant ── */
.dfr-security-popup--light-text .dfr-security-popup__inner {
    color: #1a1a1a;
}

.dfr-security-popup--light-text .dfr-security-popup__title {
    color: #1a1a1a;
}

.dfr-security-popup--light-text .dfr-security-popup__message {
    color: rgba(26, 26, 26, 0.75);
}

.dfr-security-popup--light-text .dfr-security-popup__close {
    color: rgba(26, 26, 26, 0.5);
}

.dfr-security-popup--light-text .dfr-security-popup__close:hover {
    color: #1a1a1a;
    background-color: rgba(0, 0, 0, 0.1);
}

.dfr-security-popup--light-text .dfr-security-popup__close:focus {
    outline-color: rgba(0, 0, 0, 0.3);
}

/* ── Icon ── */
.dfr-security-popup__icon {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

.dfr-security-popup__icon img {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
}

/* ── Content ── */
.dfr-security-popup__content {
    flex: 1;
    min-width: 0;
}

.dfr-security-popup__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.dfr-security-popup__message {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.dfr-security-popup__message a {
    color: #ffb547;
    text-decoration: underline;
}

.dfr-security-popup__message a:hover {
    color: #ffd48a;
}

.dfr-security-popup--light-text .dfr-security-popup__message a {
    color: #0066cc;
}

.dfr-security-popup--light-text .dfr-security-popup__message a:hover {
    color: #004499;
}

/* ── Close button ── */
.dfr-security-popup__close {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px 0 0;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
    line-height: 1;
}

.dfr-security-popup__close:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.dfr-security-popup__close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ── Animation ── */
@keyframes dfrSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dfr-security-popup--animate {
    animation: dfrSlideIn 0.4s ease-out forwards;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .dfr-security-popup {
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
    }

    .dfr-security-popup__inner {
        padding: 16px;
        gap: 12px;
    }

    .dfr-security-popup__icon {
        flex-basis: 32px;
    }

    .dfr-security-popup__icon img {
        width: 32px;
        height: 32px;
    }

    .dfr-security-popup__title {
        font-size: 14px;
    }

    .dfr-security-popup__message {
        font-size: 11px;
    }
}
