/* Dashcams.ae: Dashcam Finder popup modal + sidebar promo card. Loaded site-wide (small). */

html.dcf-noscroll, html.dcf-noscroll body { overflow: hidden; }

.dcf-modal { position: fixed; inset: 0; z-index: 100100; display: none; }
.dcf-modal.is-open { display: block; }
.dcf-modal-overlay { position: absolute; inset: 0; background: rgba(12, 12, 12, .72); }
.dcf-modal-box {
	position: relative; margin: 4vh auto 0; width: min(1040px, 94vw); height: 92vh;
	background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .35); font-family: Roboto, Arial, sans-serif;
}
.dcf-modal-bar { display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 22px; background: #0C0C0C; }
.dcf-modal-title { flex: 1; color: #FFCC00; font-weight: 700; font-size: 16px; line-height: 1.2; }
.dcf-modal-title small { display: block; color: #BDBDBD; font-weight: 400; font-size: 12px; margin-top: 2px; }
.dcf-modal-full { color: #fff !important; font-size: 13px; text-decoration: underline !important; text-underline-offset: 2px; }
.dcf-modal-full:hover { color: #FFCC00 !important; }
.dcf-modal-close {
	width: 38px; height: 38px; padding: 0; border: 0; border-radius: 0; cursor: pointer;
	background: #FFCC00; color: #111; font-size: 26px; line-height: 38px; font-weight: 400;
}
.dcf-modal-close:hover, .dcf-modal-close:focus-visible { background: #fff; outline: none; }
.dcf-modal-body { position: relative; flex: 1; background: #fff; }
.dcf-modal-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .2s; }
.dcf-modal.is-loaded .dcf-modal-frame { opacity: 1; }
.dcf-modal.is-loaded .dcf-modal-loading { display: none; }
.dcf-modal-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #333; font-size: 15px; }
.dcf-modal-loading span { width: 18px; height: 18px; border: 3px solid #E6E6E6; border-top-color: #FFCC00; border-radius: 50%; animation: dcfspin .8s linear infinite; }
@keyframes dcfspin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
	.dcf-modal-box { width: 100vw; height: 100%; margin: 0; border-radius: 0; }
	.dcf-modal-full { display: none; }
}

/* Sidebar promo card (Woocommerce shop sidebar, block widget) */
.dc-finder-promo {
	position: relative; background: #0C0C0C; color: #fff; border-radius: 12px; padding: 20px 18px 18px;
	margin: 0 0 6px; overflow: hidden;
}
.dc-finder-promo::after {
	content: ""; position: absolute; right: -28px; top: -28px; width: 96px; height: 96px; border-radius: 50%;
	border: 14px solid #FFCC00; opacity: .9;
}
.dc-finder-promo .dcfp-kicker { display: block; color: #FFCC00; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.dc-finder-promo .dcfp-title { display: block; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.25; margin: 0 0 8px; max-width: 80%; }
.dc-finder-promo p { color: #D6D6D6 !important; font-size: 13.5px !important; line-height: 1.5 !important; margin: 0 0 14px !important; }
.dc-finder-promo ul { list-style: none !important; margin: 0 0 16px !important; padding: 0 !important; }
.dc-finder-promo li { position: relative; padding: 0 0 0 20px !important; margin: 0 0 5px !important; font-size: 13px; color: #fff; }
.dc-finder-promo li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px; border-left: 2px solid #FFCC00; border-bottom: 2px solid #FFCC00; transform: rotate(-45deg); }
.dc-finder-promo a.dcfp-btn {
	display: block; text-align: center; background: #FFCC00; color: #111 !important; font-weight: 700; font-size: 14px;
	padding: 11px 12px; text-decoration: none !important; border: 2px solid #FFCC00; transition: background .15s, color .15s;
}
.dc-finder-promo a.dcfp-btn:hover { background: #0C0C0C; color: #FFCC00 !important; }
