/* Stayfit – teisė: slapukų juosta, sutikimų tekstai sąsajoje, teisinių puslapių skaitomumas.
   Tokenai iš app.css (VIENA DIZAINO SISTEMA). */

/* ---------- Slapukų juosta ---------- */
.dck {
	position: fixed; left: 12px; right: 12px; z-index: 1040;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box; padding: 14px 16px 12px;
	background: var(--m-card, #FFFFFF); color: var(--m-ink, #171C1E);
	border: 1px solid var(--m-line, #E1E7E3); border-radius: var(--r-card, 22px);
	box-shadow: 0 2px 4px rgba(23,28,30,.05), 0 18px 44px rgba(23,28,30,.14);
	font-family: var(--m-font, "Figtree", system-ui, sans-serif);
	animation: dck-in .34s cubic-bezier(.22,1,.36,1) both;
}
.dck[hidden] { display: none; }
.dck.is-out { animation: dck-out .2s ease-in both; }
@keyframes dck-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dck-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .dck, .dck.is-out { animation: none; } }
body.da-has-tabs .dck { bottom: calc(var(--da-tabs-h, 66px) + var(--da-safe-b, 0px) + 10px); }
body.has-dsb .dck { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
body.da-no-tabs .dck { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.dck__text { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--m-ink2, #5C6668); text-wrap: pretty; }
.dck__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dck__btn {
	appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; margin: 0;
	min-height: 42px; padding: 0 16px; border-radius: var(--r-btn, 16px);
	font: inherit; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
	transition: background-color .15s, transform .16s cubic-bezier(.23,1,.32,1);
}
.dck__btn:active { transform: scale(.98); }
.dck__btn:focus-visible { outline: 2px solid var(--m-brand, #2A3539); outline-offset: 2px; }
.dck__btn--yes { background: var(--m-brand, #2A3539); color: #fff; flex: 1 1 auto; }
.dck__btn--no { background: var(--m-brand-soft, #E4E9E5); color: var(--m-brand-d, #171C1E); flex: 1 1 auto; }
@media (hover: hover) {
	.dck__btn--yes:hover { background: var(--m-brand-d, #171C1E); }
	.dck__btn--no:hover { background: #D0D8D4; }
}
.dck__link { flex: 1 1 100%; margin: 0; padding: 6px 2px 0; font-size: 13.5px; font-weight: 600; color: var(--m-ink2, #5C6668); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.dck__link:hover { color: var(--m-brand-d, #171C1E); }
@media (min-width: 768px) {
	.dck, body.da-has-tabs .dck, body.has-dsb .dck, body.da-no-tabs .dck { left: auto; right: 16px; bottom: 16px; width: 400px; max-width: min(400px, calc(100vw - 32px)); padding: 18px 20px 16px; }
	.dck__text { font-size: 14.5px; }
	/* Mygtukai telpa į vieną eilutę; jei šriftas platesnis (Windows) – „Nustatymai“ nusileidžia žemiau, o ne išlenda už kortelės (anksčiau nowrap kirpo nuorodą) */
	.dck__actions { flex-wrap: wrap; gap: 8px 10px; }
	.dck__btn { flex: 0 1 auto; min-width: 0; padding: 0 15px; font-size: 13.5px; }
	.dck__link { flex: 0 0 auto; margin-left: auto; padding: 8px 0 8px 2px; font-size: 13.5px; }
}

/* Slapukų nustatymų puslapis: būsena + mygtukas */
.dck-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 28px; padding: 16px 18px; background: var(--m-card, #FFFFFF); border: 1px solid var(--m-line, #E1E7E3); border-radius: var(--r-card, 22px); }
.dck-box__state { margin: 0; flex: 1 1 220px; font-size: 15px; color: var(--m-ink2, #5C6668); }
.dck-box__state strong { color: var(--m-ink, #171C1E); }
.dck-box .dck__btn { flex: 0 0 auto; }

/* ---------- Sutikimai sąsajoje ---------- */
/* Prisijungimo langas: po „Tęsti su Google“ ir pastabos */
.dlg-consent { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--m-ink2, #5C6668); text-align: center; text-wrap: pretty; }
.dlg-consent a { color: var(--m-brand-d, #171C1E); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* Trenerio profilio žingsnis: varnelė formos apačioje, prieš mygtuką */
.hp-form--user-update-profile .hp-form__footer { flex-wrap: wrap; }
.dtk-consent { flex: 1 1 100%; width: 100%; order: -1; margin: 4px 0 16px; }
.dtk-consent__label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin: 0; padding: 14px 16px; background: var(--m-brand-soft, #E4E9E5); border-radius: var(--r-input, 14px); }
.dtk-consent__label input[type="checkbox"] { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--m-brand, #2A3539); cursor: pointer; }
.dtk-consent__label span { display: block; }
.dtk-consent__label b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--m-ink, #171C1E); }
.dtk-consent__label small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--m-ink2, #5C6668); }
.dtk-consent__label a { color: var(--m-brand-d, #171C1E); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Teisiniai puslapiai: skaitymo režimas ---------- */
body.domus-teise .page__text { max-width: 72ch; }
body.domus-teise .page__text .domus-teise__meta { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--m-ink2, #5C6668); }
body.domus-teise .page__text > p { font-size: 16px; line-height: 1.6; }
body.domus-teise .page__text h2 { margin: 2.1em 0 .55em; font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; text-wrap: balance; }
body.domus-teise .page__text h3 { margin: 1.6em 0 .4em; font-size: 17.5px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
body.domus-teise .page__text ul, body.domus-teise .page__text ol { padding-left: 1.25em; margin: 0 0 1.1em; }
body.domus-teise .page__text li { margin: 0 0 .5em; line-height: 1.55; }
body.domus-teise .page__text li::marker { color: var(--m-brand, #2A3539); font-weight: 700; }
body.domus-teise .page__text a { color: var(--m-brand-d, #171C1E); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
body.domus-teise .page__text .wp-block-table { margin: 0 0 1.4em; overflow-x: auto; border: 1px solid var(--m-line, #E1E7E3); border-radius: 14px; background: var(--m-card, #FFFFFF); }
body.domus-teise .page__text .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.domus-teise .page__text .wp-block-table th, body.domus-teise .page__text .wp-block-table td { padding: 10px 12px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--m-line, #E1E7E3); line-height: 1.45; }
body.domus-teise .page__text .wp-block-table th { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--m-ink2, #5C6668); background: rgba(23,28,30,.03); }
body.domus-teise .page__text .wp-block-table tr:last-child td { border-bottom: 0; }
body.domus-teise .page__text .wp-block-table td:first-child { font-variant-numeric: tabular-nums; word-break: break-word; }
body.domus-teise ::selection { background: var(--m-brand-soft, #E4E9E5); color: var(--m-ink, #171C1E); }
