/* Meier Cookie Consent banner. Colors come from Settings as --mcc-* variables. */
#mcc-banner, #mcc-modal, #mcc-reopen {
	--mcc-radius: 10px;
	--mcc-shadow: 0 8px 32px rgba(0, 0, 0, .18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--mcc-text);
	box-sizing: border-box;
}
#mcc-banner *, #mcc-modal * { box-sizing: border-box; }
#mcc-banner[hidden], #mcc-modal[hidden], #mcc-reopen[hidden] { display: none !important; }

#mcc-banner {
	position: fixed;
	z-index: 2147483000;
	background: var(--mcc-bg);
	box-shadow: var(--mcc-shadow);
}
#mcc-banner p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
#mcc-banner .mcc-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
#mcc-banner a, #mcc-modal a { color: inherit; text-decoration: underline; }
#mcc-banner .mcc-inner { display: flex; gap: 16px 24px; align-items: center; padding: 16px 20px; }
#mcc-banner .mcc-text { flex: 1 1 auto; min-width: 0; }

.mcc-pos-bar { left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.mcc-pos-bar .mcc-inner { max-width: 1200px; margin: 0 auto; }
.mcc-pos-box { left: 16px; bottom: 16px; width: 400px; max-width: calc(100% - 32px); border-radius: var(--mcc-radius); }
.mcc-pos-box .mcc-inner { flex-direction: column; align-items: stretch; }
.mcc-pos-center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 520px; max-width: calc(100% - 32px); border-radius: var(--mcc-radius); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45), var(--mcc-shadow); }
.mcc-pos-center .mcc-inner { flex-direction: column; align-items: stretch; padding: 22px 24px; }

.mcc-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
#mcc-banner .mcc-buttons, #mcc-modal .mcc-buttons { flex: 0 0 auto; }
.mcc .mcc-btn {
	appearance: none;
	margin: 0;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	padding: 10px 18px;
	min-height: 42px;
	border: 2px solid var(--mcc-accent);
	border-radius: 6px;
	background: var(--mcc-accent);
	color: var(--mcc-accent-text);
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
}
.mcc .mcc-btn:hover { filter: brightness(1.12); }
.mcc .mcc-btn-link { background: transparent; border-color: transparent; color: var(--mcc-text); text-decoration: underline; padding-left: 8px; padding-right: 8px; }
.mcc .mcc-btn:focus-visible, .mcc .mcc-close:focus-visible, .mcc .mcc-switch:focus-visible, #mcc-reopen:focus-visible { outline: 3px solid var(--mcc-accent); outline-offset: 2px; }
.mcc-pos-box .mcc-buttons .mcc-btn:not(.mcc-btn-link), .mcc-pos-center .mcc-buttons .mcc-btn:not(.mcc-btn-link) { flex: 1 1 0; }
.mcc-pos-box .mcc-btn-link, .mcc-pos-center .mcc-btn-link { order: 3; flex-basis: 100%; }

#mcc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	background: rgba(0, 0, 0, .5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
#mcc-modal .mcc-dialog {
	background: var(--mcc-bg);
	color: var(--mcc-text);
	border-radius: var(--mcc-radius);
	box-shadow: var(--mcc-shadow);
	width: 560px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 20px 22px;
}
#mcc-modal .mcc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
#mcc-modal h2 { margin: 0; font-size: 20px; line-height: 1.3; color: inherit; font-family: inherit; }
#mcc-modal .mcc-close { appearance: none; border: 0; background: transparent; color: inherit; font-size: 28px; line-height: 1; padding: 4px 8px; cursor: pointer; border-radius: 6px; }
#mcc-modal .mcc-cat { border-top: 1px solid rgba(127, 127, 127, .25); }
#mcc-modal .mcc-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; cursor: pointer; margin: 0; font-weight: normal; }
#mcc-modal .mcc-row > span { display: flex; flex-direction: column; gap: 2px; }
#mcc-modal .mcc-desc { opacity: .8; font-size: 14px; }
#mcc-modal .mcc-used { font-size: 13px; opacity: .7; }
#mcc-modal .mcc-foot { border-top: 1px solid rgba(127, 127, 127, .25); padding-top: 14px; margin-top: 4px; }
#mcc-modal .mcc-policy { margin: 12px 0 0; font-size: 14px; text-align: right; }

.mcc .mcc-switch {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 13px;
	background: #b8bcc2;
	position: relative;
	cursor: pointer;
	transition: background .15s;
	border: 0;
}
.mcc .mcc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.mcc .mcc-switch:checked { background: var(--mcc-accent); }
.mcc .mcc-switch:checked::after { transform: translateX(20px); }
.mcc .mcc-switch:disabled { opacity: .55; cursor: not-allowed; }

#mcc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mcc-accent);
	color: var(--mcc-accent-text);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: .85;
	transition: opacity .15s; /* not "all" from the theme, or moving it above a bottom menu would wobble */
}
#mcc-reopen.mcc-reopen-right { left: auto; right: 16px; }
#mcc-reopen:hover { opacity: 1; }
html.mcc-modal-open { overflow: hidden; }

.mcc-cookie-list { width: 100%; border-collapse: collapse; }
.mcc-cookie-list th, .mcc-cookie-list td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid rgba(127, 127, 127, .3); }

@media (max-width: 720px) {
	#mcc-banner .mcc-inner { flex-direction: column; align-items: stretch; padding: 14px 16px; }
	#mcc-banner .mcc-buttons .mcc-btn:not(.mcc-btn-link) { flex: 1 1 0; }
	#mcc-banner .mcc-btn-link { order: 3; flex-basis: 100%; }
	#mcc-modal .mcc-foot .mcc-btn { flex: 1 1 100%; }
	#mcc-reopen { width: 40px; height: 40px; left: 12px; bottom: 12px; }
	#mcc-reopen.mcc-reopen-right { left: auto; right: 12px; }
}
@media print { #mcc-banner, #mcc-modal, #mcc-reopen { display: none !important; } }
