/* NOTICE CONTAINER */
.pcn-notice-wrapper {
	width: 100%;
	margin-bottom: 15px;
	display: block;
	clear: both;
	position: relative;
}

/* TOAST / SLIDE-IN STYLE */
.pcn-notice-wrapper.pcn-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 350px;
	z-index: 99999;
	box-shadow: 0 10px 25px rgba(0,0,0,0.15);
	border-radius: 8px;
	animation: pcnSlideIn 0.5s ease-out;
}

@keyframes pcnSlideIn { 
	from { transform: translateY(100%); opacity: 0; } 
	to { transform: translateY(0); opacity: 1; } 
}

/* BUTTONS */
.pcn-btn {
	float: right;
	margin-left: 15px;
	margin-top: -3px;
	font-size: 0.85em !important;
	padding: 5px 12px !important;
	border-radius: 4px;
	text-decoration: none;
	cursor: pointer;
}

.pcn-btn.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* PROGRESS BAR CONTAINER */
.pcn-progress-container {
	background-color: #e5e5ea;
	border-radius: 10px;
	height: 10px;
	width: 100%;
	margin-top: 10px;
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* PROGRESS BAR FILL */
.pcn-progress-bar {
	background-color: #34c759; /* Apple Green */
	height: 100%;
	width: 0%; /* JS or Inline width will override */
	border-radius: 10px;
	transition: width 0.6s ease;
}

/* PROGRESS TEXT */
.pcn-progress-text {
	font-size: 11px;
	text-align: right;
	margin-top: 4px;
	color: #666;
	font-weight: 600;
}

/* CONFETTI CANVAS */
#pcn-confetti-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 999999;
}

/* EXIT INTENT MODAL */
.pcn-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.6);
	z-index: 100000;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	animation: pcnFadeIn 0.3s forwards;
}

.pcn-modal-inner {
	background: #fff;
	padding: 30px;
	border-radius: 10px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.3);
	text-align: center;
	position: relative;
}

.pcn-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}

.pcn-modal-content .button {
	float: none;
	display: inline-block;
	margin-top: 15px;
}

@keyframes pcnFadeIn { 
	from { opacity: 0; } 
	to { opacity: 1; } 
}

/* THEME COMPATIBILITY */
.woodmart-dark .pcn-progress-container, 
.dark-mode .pcn-progress-container { 
	background-color: #333; 
}

.woodmart-dark .pcn-progress-text, 
.dark-mode .pcn-progress-text { 
	color: #bbb; 
}

/* =========================================
   ENTERPRISE PRESET STYLES (v5.0)
   ========================================= */

/* 1. GLASSMORPHISM (Premium/Apple) */
.pcn-preset-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    display: flex; align-items: center; gap: 15px;
    position: relative; overflow: hidden;
    color: #333;
}
.pcn-preset-glass::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: pcnShimmer 6s infinite;
}

/* 2. NEON PULSE (Dark/Urgency) */
.pcn-preset-neon {
    background: #1a1a1a;
    border: 2px solid #00ff00;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    animation: pcnPulse 2s infinite;
    display: flex; align-items: center; gap: 12px;
}

/* 3. BOUNCING GIFT (Reward) */
.pcn-preset-bounce {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    border-left: 5px solid #6366f1;
    padding: 15px;
    border-radius: 6px;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.pcn-preset-bounce .pcn-icon { font-size: 24px; animation: pcnBounce 2s infinite; }

/* 4. COUPON TICKET (Sales) */
.pcn-preset-ticket {
    background: #fff8e1;
    border: 2px dashed #fbbf24;
    padding: 12px 20px;
    border-radius: 4px;
    color: #92400e;
    font-family: monospace;
    display: flex; justify-content: space-between; align-items: center;
}

/* 5. GRADIENT ALERT (Warning) */
.pcn-preset-gradient {
    background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* 6. TRUST BADGE (Minimal) */
.pcn-preset-trust {
    border-left: 4px solid #3b82f6;
    background: transparent;
    padding-left: 15px;
    color: inherit;
    font-size: 0.95em;
}

/* 7. FLOATING SHADOW (Elegant) */
.pcn-preset-float {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(0);
    animation: pcnFloat 4s ease-in-out infinite;
    border: 1px solid #eee;
}

/* 8. GOLD LUXURY (VIP) */
.pcn-preset-gold {
    background: #000;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    text-align: center;
}

/* 9. RAINBOW BORDER (Fun/Attention) */
.pcn-preset-rainbow {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    z-index: 1;
}
.pcn-preset-rainbow::before {
    content: ""; position: absolute; inset: -2px; z-index: -1;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    border-radius: 10px;
    animation: pcnRainbow 20s linear infinite;
}

/* 10. TIMER FOCUS (Big Numbers) */
.pcn-preset-timer {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center; gap: 15px;
}
.pcn-preset-timer strong {
    background: #ef4444; padding: 2px 8px; border-radius: 4px;
}

/* --- ANIMATIONS --- */
@keyframes pcnShimmer { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }
@keyframes pcnPulse { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); } }
@keyframes pcnBounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes pcnFloat { 0% { transform: translateY(0px); } 50% { transform: translateY(-6px); } 100% { transform: translateY(0px); } }
@keyframes pcnRainbow { 0% { background-position: 0 0; } 50% { background-position: 400% 0; } 100% { background-position: 0 0; } }

/* EXIT MODAL SAFETY FIX */
.pcn-modal-content .pcn-preset-glass,
.pcn-modal-content .pcn-preset-neon,
.pcn-modal-content .pcn-preset-ticket {
    margin: 0 auto;       /* Center the preset */
    max-width: 100%;      /* Prevent overflowing the modal */
    box-sizing: border-box; 
    text-align: left;     /* Keep text readable */
}

/* --- EXIT INTENT PRESET STYLES --- */

/* 1. STOP SIGN */
.pcn-exit-stop {
    text-align: center; border: 4px solid #ef4444; padding: 20px;
    background: #fff; border-radius: 8px; color: #333;
}
.pcn-exit-stop h1 { color: #ef4444; font-size: 40px; margin: 0; line-height: 1; text-transform: uppercase; letter-spacing: 2px; }

/* 2. SAD CART */
.pcn-exit-sad {
    text-align: center; background: #f3f4f6; padding: 30px;
    border-radius: 12px; border: 1px solid #e5e7eb;
}
.pcn-exit-sad h3 { margin: 10px 0 5px; color: #1f2937; }

/* 3. UNLOCK */
.pcn-exit-unlock {
    text-align: center; border: 2px dashed #fbbf24; background: #fffbeb;
    padding: 25px; border-radius: 8px;
}
.pcn-unlock-box {
    background: #111; color: #fbbf24; padding: 10px 20px;
    display: inline-block; margin-top: 10px; font-weight: bold; letter-spacing: 1px;
    cursor: pointer;
}

/* 4. SAVE CART */
.pcn-exit-save {
    display: flex; align-items: center; gap: 15px;
    background: #eff6ff; border: 1px solid #bfdbfe;
    padding: 20px; border-radius: 8px; color: #1e40af;
}

/* 5. FIRE SALE */
.pcn-exit-fire {
    background: #000; color: #fff; border: 2px solid #ef4444;
    padding: 20px; text-align: center; border-radius: 8px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}