/* WC Daily Limit – Frontend FOMO Styles */

.wcdl-fomo-wrapper { margin: 16px 0; }

/* Skeleton placeholder */
.wcdl-skeleton { padding: 14px 18px; border-radius: 8px; background: #f3f4f6; }
.wcdl-skeleton-bar { height: 14px; width: 60%; border-radius: 4px; background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%); background-size: 200% 100%; animation: wcdl-shimmer-skeleton 1.5s ease-in-out infinite; }
@keyframes wcdl-shimmer-skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Disabled add-to-cart */
.wcdl-add-to-cart-disabled { opacity: 0.45 !important; pointer-events: none !important; cursor: not-allowed !important; position: relative; user-select: none; }
.wcdl-add-to-cart-disabled::after { content: ''; position: absolute; inset: 0; z-index: 10; cursor: not-allowed; }

/* Style 1 – Progress Bar */
.wcdl-fomo-style-1 { background: #fef3f2; border: 1px solid #fecaca; border-radius: 8px; padding: 14px 18px; }
.wcdl-fomo-style-1 .wcdl-fomo-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; }
.wcdl-fomo-style-1 .wcdl-fomo-icon { font-size: 18px; margin-right: 6px; }
.wcdl-fomo-style-1 .wcdl-fomo-text { font-weight: 600; color: #b91c1c; }
.wcdl-fomo-style-1 .wcdl-fomo-count { font-weight: 700; color: #dc2626; font-size: 15px; }
.wcdl-fomo-style-1 .wcdl-fomo-bar-track { background: #fee2e2; border-radius: 99px; height: 10px; overflow: hidden; }
.wcdl-fomo-style-1 .wcdl-fomo-bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ef4444, #dc2626); transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.wcdl-fomo-style-1 .wcdl-fomo-subtext { margin-top: 8px; font-size: 12px; color: #9ca3af; text-align: right; }
.wcdl-fomo-style-1.wcdl-exhausted { background: #f3f4f6; border-color: #d1d5db; }
.wcdl-fomo-style-1.wcdl-exhausted .wcdl-fomo-text { color: #6b7280; }
.wcdl-fomo-style-1.wcdl-exhausted .wcdl-fomo-bar-fill { background: #9ca3af; }

/* Style 2 – Urgency Badge */
.wcdl-fomo-style-2 { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fef3c7, #fde68a); border: 1px solid #f59e0b; border-radius: 10px; padding: 14px 18px; }
.wcdl-fomo-style-2 .wcdl-fomo-pulse { width: 48px; height: 48px; border-radius: 50%; background: #f59e0b; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; animation: wcdl-pulse 2s ease-in-out infinite; color: #fff; font-weight: 700; }
@keyframes wcdl-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); } 50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } }
.wcdl-fomo-style-2 .wcdl-fomo-body { flex: 1; }
.wcdl-fomo-style-2 .wcdl-fomo-remaining { font-size: 18px; font-weight: 700; color: #92400e; }
.wcdl-fomo-style-2 .wcdl-fomo-remaining span { color: #d97706; font-size: 22px; }
.wcdl-fomo-style-2 .wcdl-fomo-demand { font-size: 13px; color: #a16207; margin-top: 2px; }
.wcdl-fomo-style-2.wcdl-exhausted { background: linear-gradient(135deg, #f3f4f6, #e5e7eb); border-color: #9ca3af; }
.wcdl-fomo-style-2.wcdl-exhausted .wcdl-fomo-pulse { background: #9ca3af; animation: none; }
.wcdl-fomo-style-2.wcdl-exhausted .wcdl-fomo-remaining { color: #6b7280; }

/* Style 3 – Countdown Card */
.wcdl-fomo-style-3 { background: #fff; border: 2px solid #ef4444; border-radius: 12px; padding: 20px; text-align: center; position: relative; overflow: hidden; }
.wcdl-fomo-style-3::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ef4444, #f97316, #ef4444); background-size: 200% 100%; animation: wcdl-shimmer 2s linear infinite; }
@keyframes wcdl-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.wcdl-fomo-style-3 .wcdl-fomo-big-number { font-size: 48px; font-weight: 800; color: #dc2626; line-height: 1; margin: 8px 0; }
.wcdl-fomo-style-3 .wcdl-fomo-label { font-size: 14px; font-weight: 600; color: #374151; text-transform: uppercase; letter-spacing: 1px; }
.wcdl-fomo-style-3 .wcdl-fomo-hurry { font-size: 15px; color: #ef4444; font-weight: 600; margin-top: 8px; }
.wcdl-fomo-style-3.wcdl-exhausted { border-color: #d1d5db; }
.wcdl-fomo-style-3.wcdl-exhausted::before { background: #d1d5db; animation: none; }
.wcdl-fomo-style-3.wcdl-exhausted .wcdl-fomo-big-number { color: #9ca3af; }

/* Style 4 – Minimal Inline */
.wcdl-fomo-style-4 { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f9fafb; border-radius: 6px; border-left: 3px solid #10b981; font-size: 14px; }
.wcdl-fomo-style-4 .wcdl-fomo-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex-shrink: 0; animation: wcdl-dot-blink 1.5s ease-in-out infinite; }
@keyframes wcdl-dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.wcdl-fomo-style-4 .wcdl-fomo-inline-text { color: #374151; }
.wcdl-fomo-style-4 .wcdl-fomo-inline-text strong { color: #059669; }
.wcdl-fomo-style-4.wcdl-low-stock { border-left-color: #ef4444; }
.wcdl-fomo-style-4.wcdl-low-stock .wcdl-fomo-dot { background: #ef4444; }
.wcdl-fomo-style-4.wcdl-low-stock .wcdl-fomo-inline-text strong { color: #dc2626; }
.wcdl-fomo-style-4.wcdl-exhausted { border-left-color: #9ca3af; }
.wcdl-fomo-style-4.wcdl-exhausted .wcdl-fomo-dot { background: #9ca3af; animation: none; }
.wcdl-fomo-style-4.wcdl-exhausted .wcdl-fomo-inline-text strong { color: #6b7280; }
