/* WP Custom Notification Bell stylesheet */
.wp-notification-bell-container {
    position: fixed;
    bottom: 30px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    display: block;
}
.wp-notification-bell-container * {
    box-sizing: border-box;
}

/* Float positioning */
.wp-notification-bell-container.pos-left {
    left: 30px;
}
.wp-notification-bell-container.pos-right {
    right: 30px;
}

/* Floating bell round button */
.wp-notification-bell-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    outline: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    user-select: none;
    padding: 0;
}
.wp-notification-bell-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.wp-notification-bell-btn:active {
    transform: scale(0.95);
}

.wp-notification-bell-svg {
    width: 22px;
    height: 22px;
    animation: wnb-wiggle 4s infinite ease-in-out;
}

/* Red unread counter and badge */
.wp-notification-bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #ffffff;
    animation: wnb-pulse 2s infinite;
}
.wp-notification-bell-badge.badge-fade-out {
    animation: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

/* Popup Bubble styling */
.wp-notification-bell-popup {
    position: absolute;
    bottom: 80px;
    width: 380px;
    max-width: calc(100vw - 60px);
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.92);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Popup directional offsets (popping up and slightly to the center) */
.wp-notification-bell-container.pos-left .wp-notification-bell-popup {
    left: 10px;
    transform-origin: bottom left;
}
.wp-notification-bell-container.pos-right .wp-notification-bell-popup {
    right: 10px;
    transform-origin: bottom right;
}

/* Active state for visible popup */
.wp-notification-bell-container.is-active .wp-notification-bell-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    /* Pop-up is offset upwards and outward */
}

/* Header style with brand color */
.wp-notification-bell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.wp-notification-bell-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.wp-notification-bell-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    color: inherit;
    padding: 0 5px;
    transition: opacity 0.2s ease;
}
.wp-notification-bell-close:hover {
    opacity: 1;
}

/* Body content area */
.wp-notification-bell-body {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px 0;
}
.wp-notification-bell-body::-webkit-scrollbar {
    width: 6px;
}
.wp-notification-bell-body::-webkit-scrollbar-track {
    background: #fdfdfd;
}
.wp-notification-bell-body::-webkit-scrollbar-thumb {
    background: #dfdfdf;
    border-radius: 3px;
}

/* Items List styling */
.wp-notification-bell-items {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wp-notification-bell-item {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.20s ease;
}
.wp-notification-bell-item:last-child {
    border-bottom: none;
}
.wp-notification-bell-item:hover {
    background-color: #f7f5fa;
}

/* Anchor tag formatting */
.wp-notification-bell-link {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    text-decoration: none;
    color: #374151;
    gap: 15px;
}
.wp-notification-bell-link:focus, .wp-notification-bell-link:active {
    outline: none;
}

/* Image styling */
.wp-notification-bell-img-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wp-notification-bell-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.wp-notification-bell-item:hover .wp-notification-bell-img {
    transform: scale(1.08);
}

/* Fallback image placeholder */
.wp-notification-bell-img-wrapper.fallback-img {
    background: #5b3d8a;
    opacity: 0.85;
}

/* Text and Labels spacing */
.wp-notification-bell-content {
    font-size: 14px;
    line-height: 1.45;
    flex-grow: 1;
}
.wp-notification-bell-item-label {
    font-weight: 700;
    color: #5b3d8a;
    margin-right: 5px;
}
.wp-notification-bell-item-text {
    color: #374151;
}

/* Empty notifications prompt */
.wp-notification-bell-empty {
    padding: 30px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Subtle standard animations */
@keyframes wnb-wiggle {
    0%, 100% { transform: rotate(0deg); }
    12% { transform: rotate(15deg); }
    24% { transform: rotate(-12deg); }
    36% { transform: rotate(10deg); }
    48% { transform: rotate(-8deg); }
    60% { transform: rotate(0deg); }
}

@keyframes wnb-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
