/* TM Kaubad – küpsiste nõusolek. „Keeldun“ ja „Nõustun kõigiga“ on võrdse kaaluga. */
.tmk-cc {
	--cc-ink: var(--wp--preset--color--tint, #161817);
	--cc-muted: var(--wp--preset--color--grafiit, #4A504C);
	--cc-line: var(--wp--preset--color--joon, #C9CFC7);
	--cc-paper: var(--wp--preset--color--valge, #fff);
	position: fixed;
	z-index: 99990;
	left: 1rem;
	bottom: 1rem;
	width: min(26rem, calc(100vw - 2rem));
	font-family: var(--wp--preset--font-family--tekst, system-ui, sans-serif);
	color: var(--cc-ink);
}
.tmk-cc[hidden] { display: none; }
.tmk-cc__box {
	background: var(--cc-paper);
	border: 1px solid var(--cc-line);
	border-radius: 14px;
	box-shadow: 0 24px 48px -24px rgba(22, 24, 23, .35);
	padding: 1.1rem 1.2rem 1.15rem;
}
.tmk-cc__title,
.tmk-cc-dlg__title {
	margin: 0 0 .35rem;
	font-family: var(--wp--preset--font-family--kuva, inherit);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.2;
}
.tmk-cc__text,
.tmk-cc-dlg__intro { margin: 0 0 .9rem; font-size: .9rem; line-height: 1.5; color: var(--cc-muted); }
.tmk-cc__text a { color: var(--cc-ink); }
.tmk-cc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tmk-cc__btn {
	flex: 1 1 8rem;
	min-height: 44px;
	padding: .6rem 1rem;
	border: 1.5px solid var(--cc-ink);
	border-radius: 999px;
	background: var(--cc-ink);
	color: #fff;
	font: inherit;
	font-size: .9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.tmk-cc__btn:hover { background: var(--wp--preset--color--sammal, #2F3B33); border-color: var(--wp--preset--color--sammal, #2F3B33); }
.tmk-cc__link {
	min-height: 44px;
	padding: .5rem .25rem;
	border: 0;
	background: none;
	color: var(--cc-ink);
	font: inherit;
	font-size: .9375rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.tmk-cc__btn:focus-visible,
.tmk-cc__link:focus-visible,
.tmk-cc-dlg input:focus-visible { outline: 2px solid var(--wp--preset--color--plaat, #A8803A); outline-offset: 2px; }

/* Seadete aken */
.tmk-cc-dlg {
	--cc-ink: var(--wp--preset--color--tint, #161817);
	--cc-muted: var(--wp--preset--color--grafiit, #4A504C);
	--cc-line: var(--wp--preset--color--joon, #C9CFC7);
	width: min(34rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: 16px;
	color: var(--cc-ink);
	font-family: var(--wp--preset--font-family--tekst, system-ui, sans-serif);
	box-shadow: 0 24px 48px -24px rgba(22, 24, 23, .45);
}
.tmk-cc-dlg::backdrop { background: rgba(22, 24, 23, .45); }
.tmk-cc-dlg__form { padding: 1.4rem 1.4rem 1.3rem; }
.tmk-cc-dlg__title { font-size: 1.35rem; }
.tmk-cc-cat { padding: .8rem 0; border-top: 1px solid var(--cc-line); }
.tmk-cc-cat:last-of-type { margin-bottom: 1rem; border-bottom: 1px solid var(--cc-line); }
.tmk-cc-cat__head { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.tmk-cc-cat__head input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--cc-ink); flex: none; }
.tmk-cc-cat__head em { margin-left: auto; font-style: normal; font-weight: 400; font-size: .8125rem; color: var(--cc-muted); }
.tmk-cc-cat p { margin: .3rem 0 0 1.85rem; font-size: .875rem; line-height: 1.5; color: var(--cc-muted); }

@media (max-width: 600px) {
	.tmk-cc { left: .5rem; right: .5rem; bottom: .5rem; width: auto; }
	.tmk-cc__box { padding: 1rem; }
	.tmk-cc-dlg__form { padding: 1.1rem 1rem 1rem; }
	.tmk-cc-dlg .tmk-cc__btn { flex-basis: 100%; }
}
@media print { .tmk-cc, .tmk-cc-dlg { display: none !important; } }

/* Privaatsuspoliitika küpsiste tabel */
.tmk-cookies { scroll-margin-top: 6rem; }
.tmk-cookies__wrap { overflow-x: auto; margin: 1rem 0; }
.tmk-cookies__table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .875rem; line-height: 1.45; }
.tmk-cookies__table th,
.tmk-cookies__table td { padding: .5rem .6rem; border-bottom: 1px solid var(--wp--preset--color--joon, #C9CFC7); text-align: left; vertical-align: top; }
.tmk-cookies__table thead th { font-weight: 700; }
.tmk-cookies__table tbody th { padding-top: 1rem; font-weight: 700; }
.tmk-cookies__table code { font-size: .8125rem; word-break: break-all; }
.tmk-cookies__btn {
	display: inline-block;
	padding: .55rem 1.1rem;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}
