/* Inherit fonts for everything in our widget */
.epb-notif-bar, .epb-overlay {
    font-family: inherit;
    box-sizing: border-box;
}
.epb-overlay * {
    box-sizing: border-box;
    font-family: inherit;
}

/* Notification Bar */
.epb-notif-bar {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.epb-notif-bar:hover {
    background-color: #f0f0f0;
}

/* Overlay */
.epb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.epb-overlay.epb-active {
    opacity: 1;
    visibility: visible;
}

/* Popup Common */
.epb-popup {
    background-color: #fff;
    color: #000;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none;
}
.epb-overlay.epb-active .epb-popup.epb-active {
    transform: translateY(0) scale(1);
    display: block;
}

/* Close Button */
.epb-close-btn {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    line-height: 1;
}
.epb-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Typography */
.epb-popup h2 {
    font-size: 28px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 24px;
    color: #111;
    line-height: 1.3;
}
.epb-offer-text {
    font-size: 16px;
    margin-bottom: 16px;
    color: #333;
}
.epb-offer-text strong, .epb-offer-text b {
    font-weight: 700;
}
.epb-sub-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
}
.epb-code-text {
    font-weight: 700;
    color: #111;
}

/* Buttons */
.epb-btn-primary {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    margin-bottom: 24px;
}
.epb-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.epb-btn-text {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0;
}
.epb-btn-text:hover {
    color: #333;
    text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .epb-popup {
        padding: 30px 20px;
    }
    .epb-popup h2 {
        font-size: 24px;
    }
}
