/* Guest email capture popup — Abandoned Cart Recovery for WooCommerce */
.ccacr-popup {
	--ccacr-accent: #8b6ee0;
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center; padding: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ccacr-popup[hidden] { display: none; }
.ccacr-popup *, .ccacr-popup *::before, .ccacr-popup *::after { box-sizing: border-box; }
.ccacr-popup__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); animation: ccacr-fade .2s ease-out; }
.ccacr-popup__box {
	position: relative; width: 100%; max-width: 420px;
	padding: 36px 32px 24px; border-radius: 20px; background: #fff; color: #374151; text-align: center;
	box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
	animation: ccacr-pop .25s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes ccacr-pop { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ccacr-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ccacr-popup__box, .ccacr-popup__overlay { animation: none; } }
.ccacr-popup__close {
	position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #f3f4f6; color: #6b7280; cursor: pointer;
}
.ccacr-popup__close:hover { background: #e5e7eb; color: #111827; }
.ccacr-popup__icon {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 60px; height: 60px; margin-bottom: 16px; border-radius: 18px;
	background: color-mix(in srgb, var(--ccacr-accent) 14%, #fff); color: var(--ccacr-accent);
}
.ccacr-popup__badge {
	position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
	background: var(--ccacr-accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; border: 2px solid #fff;
}
.ccacr-popup .ccacr-popup__title { margin: 0 0 8px; font-size: 22px; line-height: 1.3; font-weight: 700; color: #111827; letter-spacing: -.3px; }
.ccacr-popup__text { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: #6b7280; }
.ccacr-popup__form { margin: 0; text-align: left; }
.ccacr-popup__field { position: relative; }
.ccacr-popup__field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.ccacr-popup .ccacr-popup__field input {
	width: 100%; height: 50px; margin: 0; padding: 0 14px 0 44px; border: 1.5px solid #e5e7eb; border-radius: 12px;
	background: #f9fafb; color: #111827; font-size: 16px; box-shadow: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.ccacr-popup .ccacr-popup__field input:focus { outline: none; border-color: var(--ccacr-accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ccacr-accent) 18%, transparent); }
.ccacr-popup__privacy { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #6b7280; cursor: pointer; }
.ccacr-popup__privacy input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ccacr-accent); }
.ccacr-popup__privacy strong { color: #374151; }
.ccacr-popup__error { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 13px; }
.ccacr-popup .ccacr-popup__submit {
	display: block; width: 100%; height: 50px; margin: 18px 0 0; padding: 0 20px; border: 0; border-radius: 12px;
	background: var(--ccacr-accent); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--ccacr-accent) 35%, transparent); transition: filter .15s, transform .05s;
}
.ccacr-popup .ccacr-popup__submit:hover { filter: brightness(.94); }
.ccacr-popup .ccacr-popup__submit:active { transform: translateY(1px); }
.ccacr-popup .ccacr-popup__submit:disabled { opacity: .65; cursor: wait; }
.ccacr-popup .ccacr-popup__skip { display: block; width: 100%; margin: 10px 0 0; padding: 8px; border: 0; background: none; color: #9ca3af; font-size: 14px; cursor: pointer; }
.ccacr-popup .ccacr-popup__skip:hover { color: #4b5563; text-decoration: underline; }
.ccacr-popup :focus-visible { outline: 2px solid var(--ccacr-accent); outline-offset: 2px; }
.ccacr-popup .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
@media (max-width: 480px) {
	.ccacr-popup { align-items: flex-end; padding: 0; }
	.ccacr-popup__box { max-width: none; border-radius: 20px 20px 0 0; padding: 32px 22px 22px; }
}
