/* ==========================================================================
   Stock Notification Button — "Notify Me When Available"
   ========================================================================== */

/* --- Product Card (shop loop) ------------------------------------------- */

.coco-notify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 10px 16px;
    background: transparent;
    color: var(--ccs-accent);
    border: 1px solid var(--ccs-accent);
    border-radius: 8px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.coco-notify-btn:hover {
    background: var(--ccs-accent);
    color: #fff;
    border-color: var(--ccs-accent);
}

.coco-notify-btn:focus-visible {
    outline: 2px solid var(--ccs-accent);
    outline-offset: 2px;
}

.coco-notify-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Active state: already subscribed */
.coco-notify-btn--active {
    background: rgba(230, 57, 70, 0.1);
    color: var(--ccs-accent);
    border-color: rgba(230, 57, 70, 0.3);
    cursor: default;
}

.coco-notify-btn--active:hover {
    background: rgba(230, 57, 70, 0.1);
    color: var(--ccs-accent);
}

/* --- Single Product Page ------------------------------------------------ */

.ccs-notify-section {
    margin-top: 16px;
}

.ccs-notify-section .coco-notify-btn {
    width: 100%;
    margin: 0;
    padding: 14px 24px;
    font-size: 0.9rem;
}

/* Out-of-stock badge on single product */
.ccs-out-of-stock-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- My Account Notifications Table ------------------------------------- */

.ccs-notifications-table {
    width: 100%;
    border-collapse: collapse;
}

.ccs-notifications-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--ccs-border, #333);
    color: var(--ccs-text-secondary, #999);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ccs-notifications-table td {
    padding: 12px;
    border-bottom: 1px solid var(--ccs-border, #333);
    font-size: 0.85rem;
    color: var(--ccs-text, #ccc);
    vertical-align: middle;
}

.ccs-notifications-table tr:hover td {
    background: var(--ccs-surface-hover, rgba(255, 255, 255, 0.03));
}

.ccs-notif-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ccs-notif-product img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.ccs-notif-product a {
    color: var(--ccs-text-heading, #f4f4f4);
    text-decoration: none;
    font-weight: 500;
}

.ccs-notif-product a:hover {
    color: var(--ccs-accent);
}

.ccs-notif-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ccs-notif-status--active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.ccs-notif-status--sent {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.ccs-notif-status--unsubscribed {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

.ccs-notif-unsub-btn {
    background: transparent;
    border: 1px solid var(--ccs-border, #333);
    color: var(--ccs-text-secondary, #999);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ccs-notif-unsub-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.ccs-notifications-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--ccs-text-secondary, #999);
}

.ccs-notifications-empty svg {
    margin-bottom: 12px;
    opacity: 0.4;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 640px) {
    .ccs-notifications-table th:nth-child(3),
    .ccs-notifications-table td:nth-child(3),
    .ccs-notifications-table th:nth-child(4),
    .ccs-notifications-table td:nth-child(4) {
        display: none;
    }
}


/* ==========================================================================
   Release Date Badge & Prominent Display
   ========================================================================== */
.ccs-release-date-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f4a261;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 8px;
}

.ccs-release-date-prominent {
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(244, 162, 97, 0.1);
  border-left: 4px solid #f4a261;
  border-radius: 4px;
  font-size: 15px;
}

.ccs-release-date-prominent strong {
  color: #e63946;
}
