/* Alpha Cookies – picks up the Alpha Design theme colours when present. */
.ac-banner, .ac-modal {
	--acp: var(--a-primary, #6D4AFF);
	--acs: var(--a-secondary, #FF5E7E);
	--aci: var(--a-ink, #0B1020);
	--acg: linear-gradient(120deg, var(--acp), var(--acs));
	font-family: var(--a-font-body, system-ui, -apple-system, "Segoe UI", sans-serif);
	color: var(--aci);
	line-height: 1.55;
}
.ac-banner[hidden], .ac-modal[hidden] { display: none !important; }

/* Banner */
.ac-banner { position: fixed; z-index: 9990; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; opacity: 0; }
.ac-banner.is-in { opacity: 1; transform: none !important; }
.ac-banner--bar { left: 16px; right: 16px; bottom: 16px; transform: translateY(120%); }
.ac-banner--box { left: 16px; bottom: 16px; width: min(440px, calc(100% - 32px)); transform: translateY(30px) scale(.97); }
.ac-banner__inner {
	position: relative; display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto;
	padding: 20px 24px; border-radius: 20px; background: #fff;
	box-shadow: 0 30px 60px -20px rgba(11,16,32,.35), 0 0 0 1px rgba(11,16,32,.08);
	overflow: hidden;
}
.ac-banner__inner::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--acg); }
.ac-banner--box .ac-banner__inner { flex-direction: column; align-items: stretch; }
.ac-banner__text { flex: 1 1 420px; font-size: 14.5px; }
.ac-banner__text p { margin: 0; }
.ac-banner__title { font-weight: 700; font-size: 16.5px; margin-bottom: 4px !important; font-family: var(--a-font-head, inherit); }
.ac-banner__text a { color: var(--acp); text-decoration: underline; }
.ac-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-banner--box .ac-banner__actions { flex-direction: column-reverse; }

/* Buttons – Accept and Reject deliberately given equal size and prominence. */
.ac-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px;
	border: 0; cursor: pointer; font: 600 14.5px/1.2 inherit; font-family: inherit; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.ac-btn:hover { transform: translateY(-1px); }
.ac-btn:focus-visible { outline: 3px solid var(--acp); outline-offset: 2px; }
.ac-btn--primary { background: var(--acg); color: #fff; box-shadow: 0 8px 20px -8px rgba(109,74,255,.6); }
.ac-btn--outline { background: #fff; color: var(--aci); box-shadow: inset 0 0 0 1.5px var(--aci); }
.ac-btn--outline:hover { background: var(--aci); color: #fff; }
.ac-btn--ghost { background: transparent; color: var(--aci); text-decoration: underline; text-underline-offset: 3px; padding-inline: 8px; }

/* Preferences modal */
.ac-modal { position: fixed; inset: 0; z-index: 9995; display: grid; place-items: center; padding: 16px; }
.ac-modal__backdrop { position: absolute; inset: 0; background: rgba(11,16,32,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.ac-modal__panel {
	position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 22px; padding: 30px;
	box-shadow: 0 40px 80px -20px rgba(11,16,32,.5); transform: translateY(20px) scale(.98); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.ac-modal.is-in .ac-modal__backdrop { opacity: 1; }
.ac-modal.is-in .ac-modal__panel { transform: none; opacity: 1; }
.ac-modal__panel:focus { outline: none; }
.ac-modal h2 { margin: 0 0 8px; font-size: 22px; font-family: var(--a-font-head, inherit); }
.ac-modal__intro { margin: 0 0 18px; font-size: 14.5px; color: rgba(11,16,32,.7); }
.ac-modal__intro a { color: var(--acp); }
.ac-modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #F2EFFF; color: var(--aci); font-size: 24px; line-height: 1; cursor: pointer; }
.ac-cats { display: grid; gap: 12px; margin-bottom: 22px; }
.ac-cat { padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(11,16,32,.1); }
.ac-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ac-cat p { margin: 6px 0 0; font-size: 14px; color: rgba(11,16,32,.7); }
.ac-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
html.ac-lock { overflow: hidden; }

/* Toggle switch */
.ac-switch { position: relative; flex-shrink: 0; width: 50px; height: 28px; }
.ac-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ac-switch input:disabled { cursor: not-allowed; }
.ac-switch__ui { position: absolute; inset: 0; border-radius: 999px; background: #CBD0DC; transition: background .25s; }
.ac-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.ac-switch input:checked + .ac-switch__ui { background: var(--acp); }
.ac-switch input:checked + .ac-switch__ui::after { transform: translateX(22px); }
.ac-switch input:disabled + .ac-switch__ui { opacity: .55; }
.ac-switch input:focus-visible + .ac-switch__ui { outline: 3px solid var(--acp); outline-offset: 2px; }

/* Blocked embeds (e.g. Google Map) */
.ac-embed { position: relative; min-height: 260px; background: #F2EFFF; }
.ac-embed iframe[data-ac-src] { visibility: hidden; }
.ac-embed__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; font-size: 15px; color: rgba(11,16,32,.75); }
.ac-embed__placeholder p { margin: 0; max-width: 420px; }
.ac-embed.is-loaded .ac-embed__placeholder { display: none; }

/* Cookie declaration table */
.ac-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.ac-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ac-table th, .ac-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(11,16,32,.1); vertical-align: top; }
.ac-table th { background: #F2EFFF; font-weight: 600; }
.ac-table code { font-size: 13px; white-space: nowrap; }
.ac-settings-link { font-weight: 600; }

@media (max-width: 720px) {
	.ac-banner--bar { left: 10px; right: 10px; bottom: 10px; }
	.ac-banner__actions { width: 100%; }
	.ac-banner__actions .ac-btn--primary, .ac-banner__actions .ac-btn--outline { flex: 1 1 140px; }
	.ac-modal__panel { padding: 24px 20px; }
	.ac-modal__actions .ac-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ac-banner, .ac-modal__panel, .ac-modal__backdrop { transition: none; }
}
@media print { .ac-banner, .ac-modal { display: none !important; } }
