.referral-invitee-notify-popup h2,
.referral-invitee-notify-popup p,
.referral-invitee-notify-popup span,
.referral-invitee-notify-popup strong,
.referral-invitee-notify-popup a,
.referral-invitee-notify-popup button {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    text-transform: none;
    text-decoration: none;
    text-shadow: none;
    letter-spacing: normal;
    vertical-align: baseline;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
}

.referral-invitee-notify-popup button {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* Popup base */
.referral-invitee-notify-popup {
    --rp-white: #ffffff;
    --rp-ink: #1a1a1a;
    --rp-body: #444444;
    --rp-blue: #1a41d1;
    --rp-border: #d5d5d5;
    --rp-art-label: #8a97ad;
    --rp-font: 'GT-America', sans-serif;

    font-family: var(--rp-font);
}

/* Dialog + card */
.referral-invitee-notify-popup .modal-dialog {
    max-width: 460px;
    width: calc(100% - 32px);
    margin: 40px auto;
}

.referral-invitee-notify-popup .modal-content {
    position: relative;
    background-color: var(--rp-white);
    border: none;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(20, 40, 90, 0.22);
    overflow: hidden;
}

.referral-invitee-notify-popup .modal-body {
    padding: 22px 20px 26px;
}

@media (min-width: 480px) {
    .referral-invitee-notify-popup .modal-body {
        padding: 26px 26px 30px;
    }
}

/* Close button */
.referral-invitee-notify-popup .referral-invitee-notify-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--rp-ink);
    opacity: 1;
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__close svg {
    width: 20px;
    height: 20px;
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__close path {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
}

/* Illustration */
.referral-invitee-notify-popup .referral-invitee-notify-popup__art {
    width: 100%;
    height: 168px;
    margin-bottom: 22px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 480px) {
    .referral-invitee-notify-popup .referral-invitee-notify-popup__art {
        height: 200px;
        margin-bottom: 24px;
    }
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__art-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__art-label {
    padding: 0 24px;
    color: var(--rp-art-label);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

/* Text */
.referral-invitee-notify-popup .referral-invitee-notify-popup__title {
    margin-bottom: 12px;
    color: var(--rp-ink);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
}

@media (min-width: 480px) {
    .referral-invitee-notify-popup .referral-invitee-notify-popup__title {
        margin-bottom: 14px;
        font-size: 22px;
    }
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__text {
    margin-bottom: 10px;
    color: var(--rp-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
}

@media (min-width: 480px) {
    .referral-invitee-notify-popup .referral-invitee-notify-popup__text {
        margin-bottom: 12px;
        font-size: 16px;
    }
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__highlight {
    color: var(--rp-blue);
    font-weight: 700;
}

/* Fine-print note under the body copy */
.referral-invitee-notify-popup .referral-invitee-notify-popup__note {
    margin-bottom: 22px;
    color: var(--rp-art-label);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
}

@media (min-width: 480px) {
    .referral-invitee-notify-popup .referral-invitee-notify-popup__note {
        margin-bottom: 26px;
        font-size: 13px;
    }
}

/* Buttons */
.referral-invitee-notify-popup .referral-invitee-notify-popup__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 480px) {
    .referral-invitee-notify-popup .referral-invitee-notify-popup__btn {
        min-height: 56px;
        font-size: 16px;
    }
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__btn--primary {
    background-color: var(--rp-ink);
    color: var(--rp-white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__btn--primary:hover {
    background-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__btn--secondary {
    background-color: var(--rp-white);
    color: var(--rp-ink);
    border: 1.5px solid var(--rp-border);
}

.referral-invitee-notify-popup .referral-invitee-notify-popup__btn--secondary:hover {
    border-color: var(--rp-ink);
}

.referral-invitee-notify-popup.modal {
    overflow-y: hidden !important;
}