/* Cookie consent banner (D-062). A calm card bottom-left (bottom sheet on phones), Accept and
   Reject with equal weight and size, settings with switches. Nothing is blocked while it is open. */
.sy-consent {
	--c-ink: var(--sy-ink, #263653);
	--c-muted: var(--sy-muted, #59677a);
	--c-line: var(--sy-line, #d9e0e6);
	position: fixed; z-index: 2147483646; /* above Intercom's launcher while open */ inset-block-end: 24px; inset-inline-start: 24px;
	width: min(440px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: visible;
	padding: 24px 24px 22px; border-radius: 14px; background: #fff; color: var(--c-ink);
	box-shadow: 0 28px 64px -28px rgba(10, 16, 28, .5), 0 0 0 1px rgba(10, 16, 28, .07);
	font-size: 14.5px; line-height: 1.6;
	opacity: 0; transform: translateY(16px); transition: opacity .26s ease, transform .3s cubic-bezier(.2, .7, .3, 1);
}
.sy-consent.is-in { opacity: 1; transform: none; }
/* Steps aside while a dialog is open (sign-in pop-up; the Quote List panel is a native modal and already above it). */
body:has([data-sy-auth-overlay]:not([hidden])) .sy-consent { visibility: hidden; }
.sy-consent[hidden] { display: none; }
.sy-consent__title { margin: 0 0 8px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.sy-consent__text { margin: 0; color: var(--c-muted); }
.sy-consent__text a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.sy-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.sy-consent__btn {
	flex: 1 1 0; min-width: 120px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--c-ink); border-radius: 8px;
	background: #fff; color: var(--c-ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.sy-consent__btn:hover { background: #f3f6f8; }
.sy-consent__btn--solid { background: var(--c-ink); color: #fff; }
.sy-consent__btn--solid:hover { background: #1c2a42; }
.sy-consent__btn:active { transform: scale(.98); }
/* Second row (user layout, D-063): Reject all at the start, Options at the end, as quieter links. */
.sy-consent__more { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }
.sy-consent__link { min-height: 32px; padding: 0; border: 0; background: none; color: var(--c-muted); font: inherit; font-size: 13.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color .2s ease; }
.sy-consent__link:hover { color: var(--c-ink); }

/* Close: top corner; its tooltip says closing accepts all (hover / focus on desktop, hold on phones). */
.sy-consent__main .sy-consent__title { padding-inline-end: 36px; }
.sy-consent__close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--c-muted); cursor: pointer; -webkit-touch-callout: none; user-select: none; transition: background-color .2s ease, color .2s ease; }
.sy-consent__close:hover { background: #f1f4f7; color: var(--c-ink); }
.sy-consent__tip { position: absolute; inset-block-end: calc(100% + 8px); inset-inline-end: -4px; width: max-content; max-width: 220px; padding: 7px 10px; border-radius: 6px; background: var(--c-ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.35; white-space: normal; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.sy-consent__tip::after { content: ""; position: absolute; inset-block-start: 100%; inset-inline-end: 16px; border: 5px solid transparent; border-top-color: var(--c-ink); }
.sy-consent__close:hover .sy-consent__tip, .sy-consent__close:focus-visible .sy-consent__tip, .sy-consent__close.is-tip .sy-consent__tip { opacity: 1; transform: none; }
.sy-consent button:focus-visible, .sy-consent a:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }

.sy-consent__cat { padding: 14px 0; border-top: 1px solid var(--c-line); }
.sy-consent__cat:first-of-type { margin-top: 6px; }
.sy-consent__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sy-consent__cat-title { font-weight: 600; }
.sy-consent__cat-text { margin: 4px 0 0; color: var(--c-muted); font-size: 13.5px; line-height: 1.55; }
.sy-consent__always { color: var(--c-muted); font-size: 13px; font-weight: 500; }
.sy-consent__switch { position: relative; flex: none; width: 46px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: #c5ced8; cursor: pointer; transition: background-color .2s ease; }
.sy-consent__switch[aria-checked="true"] { background: var(--c-ink); }
.sy-consent__knob { position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(10, 16, 28, .25); transition: transform .22s cubic-bezier(.2, .7, .3, 1); }
.sy-consent__switch[aria-checked="true"] .sy-consent__knob { transform: translateX(18px); }
[dir="rtl"] .sy-consent__switch[aria-checked="true"] .sy-consent__knob { transform: translateX(-18px); }

/* Footer "Cookie settings": looks like the other legal links; only where consent is required (D-064). */
html:not(.sy-consent-region) .sy-consent-item { display: none !important; } /* theme menu items set their own display */
.sy-consent-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.sy-consent-open:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 599px) {
	.sy-consent { inset-inline: 12px; inset-block-end: 12px; width: auto; max-height: calc(100vh - 24px); padding: 20px 18px 16px; }
	.sy-consent__close { inset-block-start: 8px; inset-inline-end: 8px; width: 40px; height: 40px; }
	.sy-consent__btn { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.sy-consent, .sy-consent__knob, .sy-consent__tip { transition: none; }
}
@media print { .sy-consent { display: none !important; } }
