/*!
 * CNCTECH Cookie Consent — © CNCTECH Digital Agency · https://cnctech.gr
 */
.cnctech-cc { --cc-accent: #00529C; }
.cnctech-cc *, .cnctech-cc *::before, .cnctech-cc *::after { box-sizing: border-box; }
.cnctech-cc[hidden] { display: none; }

/* ===== Banner (default = bottom bar) ===== */
.cnctech-cc-banner {
	position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 99999;
	max-width: 960px; margin: 0 auto;
	background: #fff; border: 1px solid #e4e8ef; border-radius: 18px;
	box-shadow: 0 18px 60px rgba(0, 40, 90, .22);
	padding: 22px 24px; display: flex; align-items: center; gap: 24px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	animation: cnctech-cc-up .4s cubic-bezier(.2, .8, .2, 1);
}
@keyframes cnctech-cc-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cnctech-cc-banner-text { flex: 1; min-width: 0; }
.cnctech-cc-banner-text strong { display: block; font-size: 16px; font-weight: 700; color: #0c1a2b; margin-bottom: 6px; }
.cnctech-cc-banner-text p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #5F6C80; }
.cnctech-cc-banner-text a { color: var(--cc-accent); text-decoration: underline; }
.cnctech-cc-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* Position: box (bottom-left, stacked) */
.cc-pos-box .cnctech-cc-banner { right: auto; max-width: 380px; flex-direction: column; align-items: stretch; gap: 16px; }
.cc-pos-box .cnctech-cc-banner-actions { justify-content: stretch; }
.cc-pos-box .cnctech-cc-banner-actions .cnctech-cc-btn { flex: 1; }

/* Position: modal (centered overlay) */
.cc-pos-modal .cnctech-cc-banner {
	left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%);
	max-width: 460px; flex-direction: column; align-items: stretch; gap: 18px;
}
.cc-pos-modal::before {
	content: ''; position: fixed; inset: 0; z-index: 99998;
	background: rgba(8, 20, 35, .55); backdrop-filter: blur(3px);
}
.cc-pos-modal[hidden]::before { display: none; }

/* ===== Buttons ===== */
.cnctech-cc-btn {
	font: inherit; font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: 999px;
	cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease; white-space: nowrap;
}
.cnctech-cc-btn:hover { transform: translateY(-1px); }
.cnctech-cc-btn.solid { background: var(--cc-accent); color: #fff; }
.cnctech-cc-btn.solid:hover { filter: brightness(.92); }
.cnctech-cc-btn.ghost { background: #fff; color: #0c1a2b; border-color: #d6dce6; }
.cnctech-cc-btn.ghost:hover { border-color: var(--cc-accent); color: var(--cc-accent); }
.cnctech-cc-btn:focus-visible { outline: 3px solid rgba(0, 82, 156, .35); outline-offset: 2px; }

/* ===== Preferences modal ===== */
.cnctech-cc-modal {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
	padding: 20px; background: rgba(8, 20, 35, .55); backdrop-filter: blur(3px); animation: cnctech-cc-fade .25s ease;
}
.cnctech-cc-modal[hidden] { display: none; }
@keyframes cnctech-cc-fade { from { opacity: 0; } to { opacity: 1; } }
.cnctech-cc-modal-card {
	background: #fff; border-radius: 20px; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
	padding: 28px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: 0 24px 70px rgba(0, 40, 90, .3);
}
.cnctech-cc-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cnctech-cc-modal-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: #0c1a2b; }
.cnctech-cc-close { background: none; border: none; cursor: pointer; font-size: 28px; line-height: 1; color: #97a2b4; padding: 4px 8px; border-radius: 8px; }
.cnctech-cc-close:hover { color: #0c1a2b; background: #f0f3f8; }
.cnctech-cc-modal-intro { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: #5F6C80; }

/* ===== Categories ===== */
.cnctech-cc-cat { border-top: 1px solid #eef1f6; padding: 16px 0; }
.cnctech-cc-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cnctech-cc-cat-title { font-size: 15px; font-weight: 600; color: #0c1a2b; }
.cnctech-cc-cat p { margin: 0; font-size: 13px; line-height: 1.55; color: #5F6C80; }
.cnctech-cc-always { margin-left: auto; font-size: 12px; font-weight: 600; color: #2e9e6b; }

/* ===== Switch ===== */
.cnctech-cc-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cnctech-cc-switch input { opacity: 0; width: 0; height: 0; }
.cnctech-cc-slider { position: absolute; inset: 0; cursor: pointer; background: #cbd3df; border-radius: 999px; transition: background .2s ease; }
.cnctech-cc-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.cnctech-cc-switch input:checked + .cnctech-cc-slider { background: var(--cc-accent); }
.cnctech-cc-switch input:checked + .cnctech-cc-slider::before { transform: translateX(18px); }
.cnctech-cc-switch input:focus-visible + .cnctech-cc-slider { outline: 3px solid rgba(0, 82, 156, .35); outline-offset: 2px; }
.cnctech-cc-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* ===== Reopen ===== */
.cnctech-cc-reopen {
	position: fixed; left: 18px; bottom: 18px; z-index: 9998; display: inline-flex; align-items: center; gap: 7px;
	background: #fff; color: var(--cc-accent); border: 1px solid #d6dce6; border-radius: 999px; padding: 8px 14px;
	font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: system-ui, sans-serif; box-shadow: 0 6px 20px rgba(0, 40, 90, .14);
	transition: transform .15s ease, border-color .2s ease;
}
.cnctech-cc-reopen[hidden] { display: none; }
.cnctech-cc-reopen:hover { transform: translateY(-1px); border-color: var(--cc-accent); }

/* ===== Responsive ===== */
@media (max-width: 720px) {
	.cnctech-cc-banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; left: 12px; right: 12px; bottom: 12px; max-width: none; }
	.cc-pos-modal .cnctech-cc-banner { left: 12px; right: 12px; transform: none; top: auto; bottom: 12px; }
	.cnctech-cc-banner-actions { justify-content: stretch; }
	.cnctech-cc-banner-actions .cnctech-cc-btn { flex: 1; }
	.cnctech-cc-reopen span { display: none; }
	.cnctech-cc-reopen { padding: 10px; }
}
