/* Opt-in Button */
#wfp-opt-in {
    margin: 15px 0;
    text-align: center;
}

#wfp-opt-in-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#wfp-opt-in-btn:hover {
    background: #3e8e41;
}

/* Notification Bell */
.wfp-notification-bell {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.wfp-bell-icon {
    font-size: 24px;
}

.wfp-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification Popup */
.wfp-notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
}

.wfp-notification-header {
    padding: 10px 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
}

.wfp-notification-body {
    padding: 15px;
}

.wfp-notification-close {
    float: right;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 480px) {
    .wfp-notification-popup {
        width: calc(100% - 40px);
        left: 20px;
        right: auto;
    }
}

.wfp-in-app-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border-left: 4px solid #2271b1;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    max-width: 300px;
    animation: slideIn 0.5s forwards;
}

.wfp-in-app-notification.error {
    border-left-color: #d63638;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.wfp-notification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.wfp-notification-popup * {
    box-sizing: border-box;
}

.wfp-popup-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    pointer-events: all;
}

.wfp-popup-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    pointer-events: all;
    overflow: hidden;
    animation: wfpPopupFadeIn 0.3s ease-out;
    margin: 20px;
}

.wfp-popup-logo {
    text-align: center;
    padding: 20px 0 0;
}

.wfp-popup-logo img {
    max-height: 60px;
    max-width: 80%;
}

.wfp-popup-content {
    padding: 20px;
    text-align: center;
}

.wfp-popup-heading {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.3rem;
}

.wfp-popup-subheading {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.wfp-popup-actions {
    display: flex;
    padding: 15px 20px;
    gap: 10px;
}

.wfp-popup-btn {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.wfp-popup-btn.deny {
    background: #f0f0f0;
    color: #333;
}

.wfp-popup-btn.allow {
    color: white;
}

.wfp-popup-footer {
    padding: 10px 20px;
    text-align: center;
    background: #f9f9f9;
    font-size: 0.8rem;
    color: #999;
}

.wfp-popup-footer a {
    color: inherit;
    text-decoration: none;
}

@keyframes wfpPopupFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Manual Prompt without backdrop */
.wfp-notification-popup.manual-prompt {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
}

/* Subscribe to Read Content style */
.wfp-notification-popup.subscribe-content .wfp-popup-container {
    max-width: 500px;
}

.wfp-notification-popup.subscribe-content .wfp-popup-content {
    padding: 30px;
}


.wfp-notification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.wfp-popup-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    pointer-events: all;
}

.wfp-popup-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    pointer-events: all;
    overflow: hidden;
    animation: wfpPopupFadeIn 0.3s ease-out;
    margin: 20px;
}

.wfp-popup-logo {
    text-align: center;
    padding: 20px 0 0;
}

.wfp-popup-logo img {
    max-height: 60px;
    max-width: 80%;
}

.wfp-popup-content {
    padding: 20px;
    text-align: center;
}

.wfp-popup-heading {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.3rem;
}

.wfp-popup-subheading {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.wfp-popup-actions {
    display: flex;
    padding: 15px 20px;
    gap: 10px;
}

.wfp-popup-btn {
    flex: 1;
    padding: 10px;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.wfp-popup-btn.deny {
    background: #f0f0f0;
    color: #333;
}

.wfp-popup-btn.allow {
    color: white;
}

.wfp-popup-footer {
    padding: 10px 20px;
    text-align: center;
    background: #f9f9f9;
    font-size: 0.8rem;
    color: #999;
}

@keyframes wfpPopupFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wfp-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}
.wfp-status-pending {
    background: #f0f0f0;
    color: #555;
}
.wfp-status-scheduled {
    background: #e1f5fe;
    color: #0288d1;
}
.wfp-status-sent {
    background: #e8f5e9;
    color: #388e3c;
}