/* ============================================
   HEADER NOTIFICATION DROPDOWN
   ============================================ */
.o2kart-notif-wrap {
    position: relative;
    display: inline-block;
}

.o2kart-notif-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.o2kart-notif-trigger:hover {
    color: #ff6b00;
}

.o2kart-notif-trigger em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ff6b00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    font-style: normal;
}

/* Dropdown box - HIDDEN BY DEFAULT */
.o2kart-notif-box {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 9999;
}

.o2kart-notif-wrap:hover .o2kart-notif-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.o2kart-notif-box-inner {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
}

.o2kart-notif-box-inner::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 28px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #e8e8e8;
    border-top: 1px solid #e8e8e8;
    transform: rotate(45deg);
}

.o2kart-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
}

.o2kart-notif-head strong {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.o2kart-notif-head button {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.o2kart-notif-scroll {
    max-height: 380px;
    overflow-y: auto;
}

.o2kart-notif-label {
    padding: 8px 18px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #aaa;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.o2kart-notif-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f5f5f5;
}

.o2kart-notif-row:hover {
    background: #fafafa;
}

.o2kart-notif-row.new {
    background: #fff8f3;
}

.o2kart-notif-row.new:hover {
    background: #ffefe5;
}

.o2kart-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.o2kart-notif-icon .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
}

.o2kart-notif-info {
    flex: 1;
    min-width: 0;
}

.o2kart-notif-line1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 3px;
}

.o2kart-notif-line1 b {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.o2kart-notif-line1 i {
    font-size: 11px;
    color: #bbb;
    font-style: normal;
    white-space: nowrap;
    flex-shrink: 0;
}

.o2kart-notif-line2 {
    font-size: 12.5px;
    color: #888;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.o2kart-notif-dot {
    width: 8px;
    height: 8px;
    background: #ff6b00;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 0 2px rgba(255,107,0,0.2);
}

.o2kart-notif-empty {
    text-align: center;
    padding: 40px 20px;
}

.o2kart-notif-empty svg {
    margin-bottom: 12px;
}

.o2kart-notif-empty p {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.o2kart-notif-empty span {
    font-size: 12px;
    color: #aaa;
}

.o2kart-notif-foot {
    padding: 12px 18px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.o2kart-notif-foot a {
    color: #ff6b00;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.o2kart-notif-foot a:hover {
    text-decoration: underline;
}

.o2kart-notif-scroll::-webkit-scrollbar {
    width: 4px;
}
.o2kart-notif-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* ============================================
   MY ACCOUNT NOTIFICATIONS
   ============================================ */
.o2kart-myaccount-wrap {
    max-width: 800px;
}
.o2kart-myaccount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.o2kart-myaccount-header h2 {
    margin: 0;
    font-size: 20px;
    color: #111;
}
.o2kart-btn-mark-all {
    padding: 8px 16px;
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.o2kart-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.o2kart-tabs a {
    padding: 8px 16px;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.o2kart-tabs a.active {
    background: #ff6b00;
    color: #fff;
}
.o2kart-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ff6b00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    margin-left: 4px;
}
.o2kart-notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.o2kart-notif-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
}
.o2kart-notif-card.unread {
    border-left: 3px solid #ff6b00;
}
.o2kart-notif-card .o2kart-notif-icon {
    width: 40px;
    height: 40px;
}
.o2kart-notif-body {
    flex: 1;
}
.o2kart-notif-body h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #111;
}
.o2kart-notif-body p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
}
.o2kart-notif-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
}
.o2kart-notif-cat {
    color: #ff6b00;
    font-weight: 600;
}
.o2kart-notif-time {
    color: #aaa;
}
.o2kart-notif-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.o2kart-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #f5f5f5;
    border: none;
    color: #999;
    cursor: pointer;
}
.o2kart-action-btn:hover {
    background: #ff6b00;
    color: #fff;
}
.o2kart-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #bbb;
}
.o2kart-empty-state .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    color: #ddd;
}

/* ============================================
   PREFERENCES
   ============================================ */
.o2kart-preferences-wrap {
    max-width: 600px;
}
.o2kart-prefs-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}
.o2kart-prefs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.o2kart-pref-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
}
.o2kart-pref-item:hover {
    border-color: #ff6b00;
}
.o2kart-pref-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.o2kart-pref-info .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}
.o2kart-pref-info div {
    display: flex;
    flex-direction: column;
}
.o2kart-pref-info strong {
    font-size: 14px;
    color: #111;
    font-weight: 600;
}
.o2kart-pref-info small {
    font-size: 12px;
    color: #999;
}
.o2kart-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}
.o2kart-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.o2kart-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ddd;
    border-radius: 24px;
    transition: 0.3s;
}
.o2kart-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.o2kart-toggle input:checked + .o2kart-toggle-slider {
    background: #ff6b00;
}
.o2kart-toggle input:checked + .o2kart-toggle-slider:before {
    transform: translateX(20px);
}
.o2kart-prefs-saved {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 14px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   MOBILE NOTIFICATION PAGE
   ============================================ */
.o2kart-mobile-app {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #111111;
    padding-bottom: 40px;
}

/* Hide theme garbage */
.o2kart-mobile-app .entry-title,
.o2kart-mobile-app .page-title,
.o2kart-mobile-app .woocommerce-breadcrumb {
    display: none !important;
}

.o2kart-m-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.o2kart-m-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    text-decoration: none;
    border-radius: 50%;
}

.o2kart-m-back svg {
    width: 24px;
    height: 24px;
    stroke: #111111;
}

.o2kart-m-header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    flex: 1;
    text-align: center;
}

.o2kart-m-header-spacer {
    width: 40px;
}

.o2kart-m-searchbar {
    padding: 16px;
    background: #ffffff;
    border-bottom: 1px solid #f5f5f5;
}

.o2kart-m-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.o2kart-m-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 0 16px;
    height: 48px;
    gap: 12px;
}

.o2kart-m-search-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #111111;
    outline: none;
    box-shadow: none;
    height: 100%;
}

.o2kart-m-search-input-wrap input::placeholder {
    color: #999999;
}

.o2kart-m-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    text-decoration: none;
}

.o2kart-m-filter-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    cursor: pointer;
    flex-shrink: 0;
}

.o2kart-m-tabs {
    display: flex;
    padding: 16px;
    gap: 10px;
    background: #ffffff;
    border-bottom: 1px solid #f5f5f5;
    overflow-x: auto;
    scrollbar-width: none;
}

.o2kart-m-tabs::-webkit-scrollbar {
    display: none;
}

.o2kart-m-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 24px;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.o2kart-m-tab.active {
    background: #111111;
    color: #ffffff;
}

.o2kart-m-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ff6b00;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
}

.o2kart-m-group {
    padding: 20px 16px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #ffffff;
    margin: 0;
}

.o2kart-m-list {
    background: #ffffff;
    padding: 0 16px;
}

.o2kart-m-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 16px;
    margin-bottom: 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.o2kart-m-item:hover {
    background: #fafafa;
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.o2kart-m-item.unread {
    background: #f0f7ff;
    border-color: #dbeafe;
}

.o2kart-m-item.unread:hover {
    background: #e6f0ff;
}

.o2kart-m-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.o2kart-m-avatar .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 24px;
}

.o2kart-m-content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.o2kart-m-time {
    font-size: 12px;
    color: #999999;
    margin-bottom: 6px;
    font-weight: 500;
}

.o2kart-m-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.o2kart-m-blue-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.o2kart-m-title-row strong {
    font-size: 15px;
    color: #111111;
    font-weight: 600;
    line-height: 1.3;
}

.o2kart-m-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

.o2kart-m-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
    flex-shrink: 0;
}

.o2kart-m-arrow svg {
    stroke: #cccccc;
}

.o2kart-m-empty {
    text-align: center;
    padding: 100px 24px;
    background: #ffffff;
}

.o2kart-m-empty-icon {
    margin-bottom: 24px;
}

.o2kart-m-empty p {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #444444;
}

.o2kart-m-empty span {
    font-size: 14px;
    color: #aaaaaa;
}