/* AyoPlus header notification bell (next to cart) */
.ayoplus-header-notifications-wrap {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}

/* Fallback when theme does not fire Astra cart hook: fixed top-right so notification is still visible */
.ayoplus-header-notifications-fallback {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 999998;
    margin-right: 0;
}

.ayoplus-header-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ayoplus-notification-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.ayoplus-notification-trigger:hover,
.ayoplus-notification-trigger[aria-expanded="true"] {
    background-color: rgba(0, 0, 0, 0.05);
}

.ayoplus-notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ayoplus-notification-icon svg {
    display: block;
}

.ayoplus-notification-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: #d63638;
    border-radius: 9px;
    box-sizing: border-box;
}

.ayoplus-notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 280px;
    max-width: 360px;
    max-height: 70vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 999999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ayoplus-notification-panel[hidden] {
    display: none !important;
}

.ayoplus-notification-panel.is-open {
    display: flex !important;
}

.ayoplus-notification-panel-header {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.ayoplus-notification-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.ayoplus-notification-panel-body {
    padding: 8px 0;
    overflow-y: auto;
    max-height: 50vh;
}

.ayoplus-notification-empty {
    margin: 0;
    padding: 24px 16px;
    font-size: 14px;
    color: #646970;
    text-align: center;
}

.ayoplus-notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ayoplus-notification-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.ayoplus-notification-item:last-child {
    border-bottom: none;
}

.ayoplus-notification-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s;
}

.ayoplus-notification-link:hover {
    background-color: #f6f7f7;
}

.ayoplus-notification-item-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1d2327;
    margin-bottom: 2px;
}

.ayoplus-notification-item-message {
    display: block;
    font-size: 13px;
    color: #646970;
    line-height: 1.4;
}

.ayoplus-notification-item-time {
    display: block;
    font-size: 12px;
    color: #a7aaad;
    margin-top: 4px;
}

.ayoplus-notification-type-pending .ayoplus-notification-item-title::before {
    content: "⏳ ";
}

.ayoplus-notification-type-resolved .ayoplus-notification-item-title::before {
    content: "✅ ";
}
