/* Consent, legal pages, contacts in header/footer/About, request-form checkboxes. Tokens come from site-ui.css. */

/* Outline button variant. */
.clokli-button--outline { background: transparent; border-color: var(--clokli-color-text); color: var(--clokli-color-text); }
.clokli-button--outline:hover { background: var(--clokli-color-text); color: var(--clokli-color-surface); }

/* Header phone: number on wide screens, icon only below; the main button keeps its place. */
.clokli-site-header__phone, .clokli-capsule__phone { align-items: center; border-radius: var(--clokli-radius-control); color: var(--clokli-color-text); display: inline-flex; gap: 8px; min-height: 44px; text-decoration: none; }
.clokli-site-header__phone { border: 1px solid var(--clokli-color-neutral); font-size: 14px; font-weight: 600; justify-content: center; letter-spacing: -.01em; min-width: 44px; padding: 8px 16px; white-space: nowrap; }
.clokli-site-header__phone:hover, .clokli-capsule__phone:hover { background: var(--clokli-color-surface-alt); color: var(--clokli-color-text); }
.clokli-site-header__phone:focus-visible, .clokli-capsule__phone:focus-visible, .clokli-mobile-menu__phone:focus-visible { outline: 3px solid var(--clokli-color-text); outline-offset: 2px; }
.clokli-capsule__phone { justify-content: center; min-width: 44px; }
.clokli-mobile-menu__phone { align-items: center; border: 1px solid var(--clokli-color-neutral); border-radius: var(--clokli-radius-control); color: var(--clokli-color-text); display: flex; font-size: 18px; font-weight: 600; gap: 10px; justify-content: center; margin-top: 16px; min-height: 52px; text-decoration: none; width: 100%; }
.clokli-mobile-menu__phone:hover { background: var(--clokli-color-surface-alt); color: var(--clokli-color-text); }
.clokli-mobile-menu__phone + .clokli-mobile-menu__cta { margin-top: 12px; }
@media (max-width: 1280px) {
	.clokli-site-header__phone { padding: 8px; }
	.clokli-site-header__phone .clokli-phone__text { display: none; }
}
@media (max-width: 360px) {
	.clokli-site-header__phone { display: none; }
}

/* Footer: contacts, legal links, cookie settings. */
/* The band between the two top lines: contacts (about 70%) + slogan under them | vertical divider | legal information (about 30%).
   Overrides the flex band of home-hero.css by specificity. */
.clokli-footer .clokli-footer__top { align-items: start; border-bottom: 1px solid var(--clokli-color-neutral); display: grid; gap: 0; grid-template-areas: "contacts legal" "slogan legal"; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); padding-block: 28px 24px; }
.clokli-footer .clokli-footer__top > p { color: var(--clokli-color-text-secondary); font-size: 14px; font-weight: 400; grid-area: slogan; letter-spacing: 0; line-height: 1.4; margin: 20px 0 0; max-width: none; }
.clokli-footer__group--contacts { grid-area: contacts; padding-right: 32px; }
.clokli-footer__group--legal { align-self: stretch; border-left: 1px solid var(--clokli-color-neutral); grid-area: legal; padding-left: 32px; }
.clokli-footer__heading { color: var(--clokli-color-text-secondary); font-size: 20px; font-weight: 400; letter-spacing: .14em; line-height: 1.2; margin: 0 0 16px; text-transform: uppercase; }
.clokli-footer__contacts { display: flex; flex-wrap: wrap; gap: 16px 0; list-style: none; margin: 0; padding: 0; }
.clokli-footer__contacts li { align-items: center; border-left: 1px solid var(--clokli-color-neutral); display: flex; gap: 12px; padding-inline: 24px; }
.clokli-footer__contacts li:first-child { border-left: 0; padding-left: 0; }
.clokli-footer__contacts li:last-child { padding-right: 0; }
.clokli-footer__icon { color: var(--clokli-color-text); flex: none; height: 24px; width: 24px; }
.clokli-footer__contacts li > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.clokli-footer__contact--address > div { max-width: 15em; }
.clokli-footer__contacts span { color: var(--clokli-color-text-secondary); font-size: 12px; line-height: 1.4; }
.clokli-footer__contacts a, .clokli-footer__legal-links a, .clokli-footer__legal-links button { color: var(--clokli-color-text); font-size: 15px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; text-decoration: none; }
.clokli-footer__contacts a, .clokli-footer__legal-links :is(a, button) { margin-block: -2px; padding-block: 2px; }
.clokli-footer__contacts a { display: inline-block; } /* 24px target (WCAG 2.2 SC 2.5.8) without moving the layout */
.clokli-footer__contacts a:hover, .clokli-footer__legal-links a:hover, .clokli-footer__legal-links button:hover { text-decoration: underline; text-underline-offset: 5px; }
.clokli-footer__legal-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.clokli-footer__legal-links > :nth-child(-n+2) { flex-basis: 100%; }
.clokli-footer__legal-links button { background: none; border: 0; cursor: pointer; font-family: inherit; padding-inline: 0; text-align: left; }
.clokli-footer__contacts a:focus-visible, .clokli-footer__legal-links :is(a, button):focus-visible { outline: 3px solid var(--clokli-color-text); outline-offset: 2px; }
@media (max-width: 1199px) {
	.clokli-footer .clokli-footer__top { grid-template-areas: "contacts" "slogan" "legal"; grid-template-columns: minmax(0, 1fr); }
	.clokli-footer__group--contacts { padding-right: 0; }
	.clokli-footer__contacts { display: grid; gap: 16px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.clokli-footer__contacts li, .clokli-footer__contacts li:last-child { border-left: 0; padding: 0; }
	.clokli-footer__group--legal { border-left: 0; border-top: 1px solid var(--clokli-color-neutral); margin-top: 20px; padding: 20px 0 0; }
}
@media (max-width: 599px) {
	.clokli-footer__contacts { gap: 4px; grid-template-columns: 1fr; }
	.clokli-footer__contacts li { min-height: 52px; }
	.clokli-footer__contacts a { margin-block: 0; padding-block: 6px; }
	.clokli-footer__legal-links { gap: 0 28px; }
	.clokli-footer__legal-links :is(a, button) { align-items: center; display: inline-flex; margin-block: 0; min-height: 44px; padding-block: 0; }
}

/* Request form: two separate required checkboxes. */
.clokli-check { gap: 4px; }
.clokli-check__label { align-items: flex-start; cursor: pointer; display: grid; font-size: 14px; font-weight: 500; gap: 12px; grid-template-columns: 24px 1fr; line-height: 1.45; }
.clokli-check input[type="checkbox"] { appearance: none; -webkit-appearance: none; background: var(--clokli-color-surface); border: 1px solid var(--clokli-color-text-secondary); border-radius: 6px; cursor: pointer; flex: none; height: 24px; margin: 0; min-height: 24px; padding: 0; position: relative; width: 24px; }
.clokli-check input[type="checkbox"]:hover { border-color: var(--clokli-color-text); }
.clokli-check input[type="checkbox"]:checked { background: var(--clokli-color-accent); border-color: var(--clokli-color-text); }
.clokli-check input[type="checkbox"]:checked::after { border: solid var(--clokli-color-text); border-width: 0 2px 2px 0; content: ""; height: 11px; left: 8px; position: absolute; top: 3px; transform: rotate(45deg); width: 6px; }
.clokli-check input[type="checkbox"]:focus-visible { outline: 3px solid var(--clokli-color-text); outline-offset: 2px; }
.clokli-check input[type="checkbox"][aria-invalid="true"] { border-color: var(--clokli-color-error); border-width: 2px; }
.clokli-check a { color: var(--clokli-color-text); text-decoration: underline; text-underline-offset: 3px; }
.clokli-check .clokli-field__error { padding-left: 36px; }
.clokli-modal .clokli-check__label { font-size: 13px; }

/* Cookie notice / choice banner. */
.clokli-consent { background: var(--clokli-color-surface); border: 1px solid var(--clokli-color-neutral); border-radius: 20px; bottom: max(16px, env(safe-area-inset-bottom)); box-shadow: 0 10px 32px rgba(0,0,0,.1); left: 50%; max-width: min(960px, calc(100vw - 32px)); position: fixed; transform: translateX(-50%); width: 100%; z-index: 80; }
.clokli-consent[hidden] { display: none; }
.clokli-consent__inner { align-items: center; display: flex; gap: 20px 28px; justify-content: space-between; padding: 16px 20px; }
.clokli-consent__text { font-size: 14px; line-height: 1.5; margin: 0; }
.clokli-consent__text a, .clokli-consent__link { color: var(--clokli-color-text); text-decoration: underline; text-underline-offset: 3px; }
.clokli-consent__actions { align-items: center; display: flex; flex: none; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; }
.clokli-consent__link { background: none; border: 0; cursor: pointer; font: 600 14px/1.3 var(--clokli-font); min-height: 44px; padding: 0 6px; }
.clokli-consent__link:focus-visible, .clokli-consent__text a:focus-visible { outline: 3px solid var(--clokli-color-text); outline-offset: 2px; }
html.clokli-consent-visible .clokli-to-top { bottom: calc(var(--clokli-consent-height, 0px) + 32px); }
@media (max-width: 720px) {
	.clokli-consent__inner { align-items: stretch; flex-direction: column; padding: 14px 16px; }
	.clokli-consent__actions { justify-content: stretch; }
	.clokli-consent__actions .clokli-button { flex: 1 1 140px; }
}

/* Cookie settings dialog. */
.clokli-consent-dialog { background: var(--clokli-color-surface); border: 0; border-radius: var(--clokli-radius-surface); color: var(--clokli-color-text); max-height: calc(100dvh - 32px); max-width: calc(100vw - 32px); overflow: auto; padding: 0; width: 520px; }
.clokli-consent-dialog::backdrop { background: rgba(0,0,0,.52); }
.clokli-consent-dialog__inner { display: grid; gap: 16px; padding: 28px; }
.clokli-consent-dialog__title { font-size: clamp(24px, 2.4vw, 30px); font-weight: 650; letter-spacing: -.04em; line-height: 1.1; margin: 0; }
.clokli-consent-dialog__intro { color: var(--clokli-color-text-secondary); font-size: 15px; line-height: 1.5; margin: 0; }
.clokli-consent-dialog__group { border-top: 1px solid var(--clokli-color-neutral); display: grid; gap: 6px; padding-top: 16px; }
.clokli-consent-dialog__group h3 { font-size: 17px; font-weight: 650; margin: 0; }
.clokli-consent-dialog__group p { color: var(--clokli-color-text-secondary); font-size: 14px; line-height: 1.5; margin: 0; }
.clokli-consent-dialog__group .clokli-consent-dialog__state { color: var(--clokli-color-text); font-size: 13px; font-weight: 600; }
.clokli-consent-dialog__toggle { align-items: center; cursor: pointer; display: grid; font-size: 14px; gap: 12px; grid-template-columns: 24px 1fr auto; margin-top: 6px; min-height: 44px; }
.clokli-consent-dialog__toggle input { appearance: none; -webkit-appearance: none; background: var(--clokli-color-surface); border: 1px solid var(--clokli-color-text-secondary); border-radius: 6px; cursor: pointer; height: 24px; margin: 0; position: relative; width: 24px; }
.clokli-consent-dialog__toggle input:checked { background: var(--clokli-color-accent); border-color: var(--clokli-color-text); }
.clokli-consent-dialog__toggle input:checked::after { border: solid var(--clokli-color-text); border-width: 0 2px 2px 0; content: ""; height: 11px; left: 8px; position: absolute; top: 3px; transform: rotate(45deg); width: 6px; }
.clokli-consent-dialog__toggle input:focus-visible { outline: 3px solid var(--clokli-color-text); outline-offset: 2px; }
.clokli-consent-dialog__toggle strong { font-size: 13px; }
.clokli-consent-dialog__saved { color: var(--clokli-color-text); font-size: 14px; font-weight: 600; margin: 0; }
.clokli-consent-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) {
	.clokli-consent-dialog__inner { padding: 22px 18px; }
}

/* About: contacts and the Google map shown on demand. */
.clokli-about-contact__layout { align-items: start; display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: .8fr 1.2fr; }
.clokli-about-contact .clokli-section-copy { margin: 0 0 20px; }
.clokli-address { color: var(--clokli-color-text); font-size: clamp(16px, 1.4vw, 19px); font-weight: 550; letter-spacing: -.01em; line-height: 1.35; text-align: right; }
.clokli-map { background: var(--clokli-color-surface-alt); border-radius: var(--clokli-radius-surface); min-height: 360px; overflow: hidden; position: relative; }
.clokli-map__placeholder { display: grid; gap: 14px; min-height: 360px; padding: clamp(22px, 3vw, 40px); align-content: center; }
.clokli-map__placeholder[hidden] { display: none; }
.clokli-map__title { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; margin: 0; }
.clokli-map__address { font-size: 17px; font-weight: 550; line-height: 1.4; margin: 0; }
.clokli-map__notice { color: var(--clokli-color-text-secondary); font-size: 14px; line-height: 1.5; margin: 0; max-width: 56ch; }
.clokli-map__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.clokli-map__frame { border: 0; display: block; height: 420px; width: 100%; }
@media (max-width: 768px) {
	.clokli-about-contact__layout { grid-template-columns: 1fr; }
	.clokli-map__frame { height: 340px; }
}
@media (max-width: 520px) {
	.clokli-about-contact .clokli-contact__channels li { flex-direction: column; }
	.clokli-address { text-align: left; }
}

/* Legal documents. */
/* Legal pages only: the version line sits 10px under the hero description (the shared hero is not changed). */
.clokli-page-hero:has(+ .clokli-header-trigger + .clokli-legal) .clokli-hero__inner { padding-bottom: 0; }
.clokli-page .clokli-header-trigger + .clokli-section.clokli-legal { padding-top: 10px; }
.clokli-legal__body { max-width: 820px; }
.clokli-legal__meta { color: var(--clokli-color-text-secondary); font-size: 13px; line-height: 1.5; margin: 0 0 8px; }
.clokli-legal__heading { font-size: clamp(21px, 2vw, 27px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; margin: 40px 0 12px; }
.clokli-legal__body :is(p, li) { font-size: 17px; line-height: 1.6; }
.clokli-legal__body p { margin: 0 0 14px; }
.clokli-legal__body ul { margin: 0 0 14px; padding-left: 22px; }
.clokli-legal__body li { margin-bottom: 8px; }
.clokli-legal__table { border: 1px solid var(--clokli-color-neutral); border-radius: 16px; margin: 0 0 16px; overflow-x: auto; }
.clokli-legal__table:focus-visible { outline: 3px solid var(--clokli-color-text); outline-offset: 2px; }
.clokli-legal__table table { border-collapse: collapse; min-width: 640px; width: 100%; }
.clokli-legal__table :is(th, td) { border-bottom: 1px solid var(--clokli-color-neutral); font-size: 14px; line-height: 1.5; padding: 12px 14px; text-align: left; vertical-align: top; }
.clokli-legal__table thead th { background: var(--clokli-color-surface-alt); font-weight: 650; }
.clokli-legal__table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.clokli-legal__table tbody th { font-weight: 600; }
.clokli-legal__others { border-top: 1px solid var(--clokli-color-neutral); display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 40px; padding-top: 12px; }
@media (max-width: 520px) {
	.clokli-legal__body :is(p, li) { font-size: 16px; }
}
@media (forced-colors: active) {
	.clokli-consent, .clokli-consent-dialog { border: 1px solid CanvasText; }
	.clokli-check input[type="checkbox"], .clokli-consent-dialog__toggle input { border: 1px solid CanvasText; }
}
