/* Universal Cookie Consent — banner styles */
#ucc-root { position: fixed; z-index: 999999; inset: 0; display: none; pointer-events: none; }
#ucc-root .ucc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); pointer-events: auto; }

#ucc-root .ucc-banner {
	position: fixed;
	background: var(--ucc-bg, #fff);
	color: var(--ucc-text, #1f2937);
	box-shadow: 0 -2px 24px rgba(0,0,0,.18);
	padding: 20px 24px;
	pointer-events: auto;
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.5;
}

/* Positions */
.ucc-pos-bottom .ucc-banner { left: 0; right: 0; bottom: 0; border-radius: 0; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ucc-pos-top .ucc-banner { left: 0; right: 0; top: 0; border-radius: 0; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; box-shadow: 0 2px 24px rgba(0,0,0,.18); }
.ucc-pos-center .ucc-banner { left: 50%; top: 50%; transform: translate(-50%,-50%); max-width: 520px; width: calc(100% - 40px); border-radius: var(--ucc-radius, 10px); }
.ucc-pos-bottom-left .ucc-banner { left: 20px; bottom: 20px; max-width: 420px; width: calc(100% - 40px); border-radius: var(--ucc-radius, 10px); }
.ucc-pos-bottom-right .ucc-banner { right: 20px; bottom: 20px; max-width: 420px; width: calc(100% - 40px); border-radius: var(--ucc-radius, 10px); }

.ucc-banner-body { flex: 1 1 360px; min-width: 0; }
.ucc-title { font-size: 18px; margin: 0 0 6px; color: var(--ucc-text, #1f2937); }
.ucc-message { font-size: 14px; margin: 0; }
.ucc-message p { margin: 0 0 6px; }
.ucc-policy-link { color: var(--ucc-accent, #2563eb); text-decoration: underline; }
.ucc-policy-links { margin-top: 8px; font-size: 13px; }

.ucc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ucc-pos-bottom-left .ucc-actions, .ucc-pos-bottom-right .ucc-actions, .ucc-pos-center .ucc-actions { margin-top: 16px; }

.ucc-btn {
	cursor: pointer; border: 1px solid transparent; border-radius: var(--ucc-radius, 10px);
	padding: 10px 18px; font-size: 14px; font-weight: 600; line-height: 1; transition: opacity .15s ease;
	font-family: inherit;
}
.ucc-btn:hover { opacity: .88; }
.ucc-btn-accept { background: var(--ucc-accept-bg, #2563eb); color: var(--ucc-accept-text, #fff); }
.ucc-btn-reject { background: var(--ucc-reject-bg, #e5e7eb); color: var(--ucc-reject-text, #1f2937); }
.ucc-btn-settings { background: var(--ucc-settings-bg, #fff); color: var(--ucc-settings-text, #2563eb); border-color: currentColor; }
.ucc-btn-save { background: var(--ucc-accent, #2563eb); color: #fff; }

/* Modal */
.ucc-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: auto; z-index: 1000000; }
.ucc-modal-inner { background: var(--ucc-bg, #fff); color: var(--ucc-text, #1f2937); max-width: 600px; width: calc(100% - 40px); max-height: 85vh; overflow: auto; border-radius: var(--ucc-radius, 10px); padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.ucc-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ucc-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ucc-text, #1f2937); }
.ucc-cat { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.ucc-cat-head { display: flex; align-items: center; justify-content: space-between; }
.ucc-cat-label { font-weight: 600; }
.ucc-cat-desc { font-size: 13px; margin: 8px 0 0; opacity: .85; }
.ucc-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; justify-content: flex-end; }

/* Switch */
.ucc-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.ucc-switch input { opacity: 0; width: 0; height: 0; }
.ucc-slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; transition: .3s; border-radius: 26px; }
.ucc-slider:before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; transition: .3s; border-radius: 50%; }
.ucc-switch input:checked + .ucc-slider { background: var(--ucc-accent, #2563eb); }
.ucc-switch input:checked + .ucc-slider:before { transform: translateX(20px); }
.ucc-switch input:disabled + .ucc-slider { opacity: .6; cursor: not-allowed; }

/* Floating reopen button */
.ucc-reopen {
	position: fixed; left: 16px; bottom: 16px; z-index: 999998;
	width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
	color: #fff; font-size: 22px; line-height: 46px; text-align: center;
	box-shadow: 0 4px 14px rgba(0,0,0,.25); padding: 0;
}
.ucc-reopen:hover { transform: scale(1.06); }

/* Cookie policy shortcode table */
.ucc-policy-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; }
.ucc-policy-table th, .ucc-policy-table td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; vertical-align: top; }
.ucc-policy-table th { background: #f8fafc; }
.ucc-policy-cat { margin-top: 24px; }
.ucc-policy-updated { font-size: 13px; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
	#ucc-root *, .ucc-reopen { transition: none !important; animation: none !important; }
	.ucc-reopen:hover { transform: none; }
}

/* Blocked embed placeholder */
.ucc-embed-ph {
	position: relative; display: flex; align-items: center; justify-content: center;
	min-height: 200px; background: #f1f5f9; border: 1px dashed #cbd5e1;
	border-radius: 8px; padding: 24px; text-align: center; box-sizing: border-box;
}
.ucc-embed-ph-inner { max-width: 480px; }
.ucc-embed-ph-text { margin: 0 0 14px; font-size: 14px; color: #334155; line-height: 1.5; }
.ucc-embed-ph.ucc-embed-loaded { display: block; min-height: 0; background: none; border: 0; padding: 0; }

/* Consent receipt (proof for the user) */
.ucc-receipt { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid rgba(0,0,0,.12); border-radius: var(--ucc-radius, 10px); background: rgba(0,0,0,.03); }
.ucc-receipt-text { margin: 0 0 8px; font-size: 12.5px; word-break: break-all; opacity: .85; }
.ucc-receipt .ucc-receipt-dl { font-size: 12.5px; padding: 7px 12px; }

@media (max-width: 600px) {
	.ucc-pos-bottom .ucc-banner, .ucc-pos-top .ucc-banner { flex-direction: column; align-items: stretch; }
	.ucc-actions { justify-content: stretch; }
	.ucc-btn { flex: 1 1 auto; text-align: center; }
}
