/* Medpoint küpsiste nõusolek — bänner ja seadete aken. Brändivärv #3d3c6c. */
.mcc-on .wd-cookies-popup { display: none !important; }

.mcc-banner,
.mcc-modal { --mcc-brand: #3d3c6c; --mcc-ink: #1d2433; --mcc-ink-2: #4d566a; --mcc-line: #e1e4ec; --mcc-bg: #f5f6fa; font-family: inherit; color: var(--mcc-ink); }

.mcc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2147483647 !important; /* üle vestlusmulli (MCF 2147483646) */
	display: flex;
	justify-content: center;
	pointer-events: none;
}
.mcc-banner__inner {
	pointer-events: auto;
	max-width: 980px;
	width: 100%;
	background: #fff;
	border: 1px solid var(--mcc-line);
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(29, 36, 51, .18);
	padding: 20px 24px;
}
.mcc-banner__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--mcc-brand); }
.mcc-banner__text { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--mcc-ink-2); }
.mcc-banner__text a,
.mcc-modal__policy a { color: var(--mcc-brand); text-decoration: underline; }

.mcc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Teema (WoodMart) nupustiilid kirjutatakse üle: element + 2 klassi. */
.mcc-banner button.mcc-btn,
.mcc-modal button.mcc-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 170px;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: 2px solid var(--mcc-brand);
	border-radius: 8px;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-align: center;
	cursor: pointer;
	transition: filter .15s;
}
.mcc-banner button.mcc-btn--primary,
.mcc-modal button.mcc-btn--primary { background: var(--mcc-brand); color: #fff; }
.mcc-banner button.mcc-btn--secondary,
.mcc-modal button.mcc-btn--secondary { background: #fff; color: var(--mcc-brand); }
.mcc-banner button.mcc-btn--link { min-width: 0; padding: 10px 8px; background: none; border-color: transparent; color: var(--mcc-brand); text-decoration: underline; }
.mcc-banner button.mcc-btn:hover,
.mcc-modal button.mcc-btn:hover { filter: brightness(1.12); }
.mcc-banner button.mcc-btn--secondary:hover,
.mcc-modal button.mcc-btn--secondary:hover { filter: none; background: var(--mcc-bg); }
.mcc-banner button.mcc-btn:focus-visible,
.mcc-modal button.mcc-btn:focus-visible,
.mcc-modal button.mcc-modal__close:focus-visible,
.mcc-switch input:focus-visible + .mcc-switch__ui { outline: 3px solid #8f8ed8; outline-offset: 2px; }

.mcc-modal { position: fixed; inset: 0; z-index: 2147483647 !important; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mcc-modal__backdrop { position: absolute; inset: 0; background: rgba(29, 36, 51, .5); }
.mcc-modal__box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 20px 60px rgba(29, 36, 51, .3);
}
.mcc-modal__title { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--mcc-brand); }
.mcc-modal button.mcc-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	left: auto;
	width: 36px;
	min-width: 0;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	box-shadow: none;
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
	color: var(--mcc-ink-2);
	cursor: pointer;
}
.mcc-modal button.mcc-modal__close:hover { background: var(--mcc-bg); }
.mcc-modal__policy { margin: 6px 0 16px; font-size: 14px; }
html.mcc-modal-open { overflow: hidden; }

.mcc-cat { border-top: 1px solid var(--mcc-line); padding: 12px 0; }
.mcc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mcc-cat__name { font-weight: 700; font-size: 15px; cursor: pointer; margin: 0; }
.mcc-cat__desc { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--mcc-ink-2); }
.mcc-cat__always { font-size: 13px; font-weight: 600; color: #1f7a3d; }

.mcc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.mcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.mcc-switch__ui { position: absolute; inset: 0; background: #c9ccd6; border-radius: 999px; transition: background .15s; }
.mcc-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .15s; }
.mcc-switch input:checked + .mcc-switch__ui { background: var(--mcc-brand); }
.mcc-switch input:checked + .mcc-switch__ui::after { transform: translateX(20px); }

.mcc-reopen { cursor: pointer; }
.mcc-reopen--fallback { display: inline-block; margin: 8px 16px; text-decoration: underline; }

@media (max-width: 600px) {
	.mcc-banner { left: 0; right: 0; bottom: 0; }
	.mcc-banner__inner { border-radius: 14px 14px 0 0; padding: 14px 16px 12px; }
	.mcc-banner__title { font-size: 16px; margin-bottom: 4px; }
	.mcc-banner__text { font-size: 13px; line-height: 1.45; margin-bottom: 12px; }
	/* Nõustun / Ainult vajalikud kõrvuti ja võrdsed, Seaded nende all */
	.mcc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.mcc-banner button.mcc-btn,
	.mcc-modal button.mcc-btn { min-width: 0; width: 100%; padding: 10px 8px; font-size: 14px; }
	.mcc-banner button.mcc-btn--link { grid-column: 1 / -1; width: auto; justify-self: center; min-height: 36px; padding: 6px 8px; }
	.mcc-modal { padding: 0; align-items: flex-end; }
	.mcc-modal__box { border-radius: 14px 14px 0 0; max-height: 90vh; padding: 20px 16px 16px; }
}

/* YouTube'i ja Google Mapsi kohatäited (eelistuste nõusolek) */
.mcc-embed { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; margin: 0 0 1.2em; background: #2a2950; color: #fff; border-radius: 10px; text-align: center; overflow: hidden; }
.mcc-embed--map { aspect-ratio: auto; height: 100%; min-height: 320px; background: #e9ecf3; color: #1d2433; } /* täidab kaardi konteineri (kontaktilehel fikseeritud kõrgus) */
.mcc-embed.is-loaded { display: block; background: none; }
.mcc-embed__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mcc-embed__inner { padding: 16px; max-width: 440px; }
.mcc-embed p.mcc-embed__label { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: inherit; }
.mcc-embed button.mcc-embed__btn { -webkit-appearance: none; appearance: none; display: inline-block; min-height: 40px; margin: 0; padding: 9px 20px; border: 2px solid #fff; border-radius: 8px; background: #fff; color: #3d3c6c; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none; }
.mcc-embed--map button.mcc-embed__btn { border-color: #3d3c6c; background: #3d3c6c; color: #fff; }
.mcc-embed p.mcc-embed__note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: inherit; opacity: .85; }
.mcc-embed p.mcc-embed__note a { color: inherit; text-decoration: underline; }

