.external-link-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.external-link-popup.is-active {
    display: flex;
}

.external-link-popup .popup-content {
    background-image: url('/wp-content/uploads/static/white-winged-popup-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 780px;
    height: 316px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
}

.external-link-popup .popup-heading {
    color: var(--color-nav-gray);
    font-size: var(--font-size-popup-headline); /* 24px */
    line-height: var(--font-lh-popup-headline); /* 30px */
    font-weight: 700;
    margin: 0 0 15px 0;
}

.external-link-popup .popup-text {
    color: var(--color-nav-gray);
    font-size: var(--font-size-body);
    line-height: var(--font-lh-body);
    margin: 0 0 25px 0;
    max-width: 600px;
}

/* Template-specific content visibility */
.external-link-popup .patient-text {
    display: none;
}

.external-link-popup .hcp-text {
    display: inline;
}

/* Patient template overrides */
.page-template-page-deflatehae-patient .external-link-popup .patient-text {
    display: inline;
}

.page-template-page-deflatehae-patient .external-link-popup .hcp-text {
    display: none;
}

.external-link-popup .popup-buttons {
    display: flex;
    gap: 20px;
    margin: 0;
}

.external-link-popup .popup-yes .wp-block-button__link,
.external-link-popup .popup-no .wp-block-button__link {
    background-color: var(--color-yellow);
    color: var(--color-nav-gray);
    font-size: var(--font-size-button-primary);
    line-height: var(--font-lh-button-primary);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid var(--color-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    min-width: 140px;
}

.external-link-popup .popup-yes .wp-block-button__link:hover,
.external-link-popup .popup-no .wp-block-button__link:hover {
    background-color: var(--color-white);
    color: var(--color-yellow);
}

/* Responsive Design */
@media screen and (max-width: 900px) {
    .external-link-popup .popup-content {
        width: 90%;
        max-width: 780px;
        height: auto;
        min-height: 316px;
        background-size: cover;
        padding: 30px 20px;
    }
    
    .external-link-popup .popup-heading {
        font-size: 2.0rem; /* 20px */
        line-height: 2.6rem; /* 26px */
    }
    
    .external-link-popup .popup-text {
        font-size: 1.4rem; /* 14px */
        line-height: 1.8rem; /* 18px */
    }
}

@media screen and (max-width: 600px) {
    .external-link-popup .popup-content {
        padding: 25px 15px;
    }
    
    .external-link-popup .popup-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .external-link-popup .popup-yes .wp-block-button__link,
    .external-link-popup .popup-no .wp-block-button__link {
        width: 100%;
        min-width: auto;
    }
    
    .external-link-popup .popup-heading {
        font-size: 1.8rem; /* 18px */
        line-height: 2.2rem; /* 22px */
    }
}