/* MinMindesten – Hjælp og kurv-rabat */
.mmdko-overlay {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; align-items: flex-end; justify-content: center;
	background: rgba(20, 18, 16, 0.38);
	opacity: 0; transition: opacity 0.2s ease;
	padding: 16px;
}
.mmdko-overlay.is-open { opacity: 1; }
@media (min-width: 640px) { .mmdko-overlay { align-items: center; } }
.mmdko-box {
	position: relative; width: 100%; max-width: 420px;
	background: #fff; color: #2b2724; border-radius: 14px;
	padding: 26px 24px 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
	font-size: 16px; line-height: 1.5; text-align: left;
	transform: translateY(12px); transition: transform 0.2s ease;
}
.mmdko-overlay.is-open .mmdko-box { transform: none; }
.mmdko-title { margin: 0 28px 8px 0; padding: 0; font-size: 21px; line-height: 1.25; font-weight: 600; color: #2b2724; }
.mmdko-text { margin: 0 0 18px; padding: 0; color: #4b4540; }
.mmdko-actions { display: flex; flex-direction: column; gap: 8px; }
.mmdko-btn {
	display: block; width: 100%; box-sizing: border-box; text-align: center;
	min-height: 46px; padding: 11px 16px; border-radius: 999px; cursor: pointer;
	font: inherit; font-weight: 600; text-decoration: none;
	background: #fff; color: #2b2724; border: 1px solid #d8cfc3;
}
.mmdko-btn:hover { border-color: #2b2724; color: #2b2724; }
.mmdko-btn.is-primary { background: #2b2724; border-color: #2b2724; color: #fff; }
.mmdko-btn.is-primary:hover { background: #000; color: #fff; }
.mmdko-btn[disabled] { opacity: 0.6; cursor: default; }
.mmdko-x {
	position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
	border: 0; background: transparent; color: #6b625a; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 50%;
}
.mmdko-x:hover { background: #f3efe9; color: #2b2724; }
.mmdko-btn:focus-visible, .mmdko-x:focus-visible { outline: 2px solid #2b2724; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mmdko-overlay, .mmdko-box { transition: none; } }

/* 1.1.0: formular og fast "Få hjælp"-knap */
.mmdko-box { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.mmdko-wide .mmdko-box { max-width: 480px; }
.mmdko-form { margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.mmdko-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.mmdko-label { font-size: 14px; font-weight: 600; color: #2b2724; }
.mmdko-note { font-size: 13px; color: #6b625a; line-height: 1.4; }
.mmdko-form input[type="text"], .mmdko-form input[type="email"], .mmdko-form input[type="tel"], .mmdko-form textarea {
	width: 100%; box-sizing: border-box; margin: 0; padding: 10px 12px; min-height: 44px;
	font: inherit; font-size: 16px; color: #2b2724; background: #fff;
	border: 1px solid #d8cfc3; border-radius: 10px; box-shadow: none;
}
.mmdko-form textarea { min-height: 92px; resize: vertical; }
.mmdko-form input:focus, .mmdko-form textarea:focus { outline: 2px solid #2b2724; outline-offset: 0; border-color: #2b2724; }
.mmdko-file, .mmdko-hp { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; overflow: hidden !important; pointer-events: none; left: -9999px; }
.mmdko-btn.mmdko-pick { border-style: dashed; background: #faf8f5; min-height: 52px; }
.mmdko-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.mmdko-thumbs:empty { display: none; }
.mmdko-thumb { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #f3efe9; border: 1px solid #e6dfd5; display: flex; align-items: center; justify-content: center; }
.mmdko-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mmdko-thumb-name { font-size: 11px; padding: 4px; text-align: center; word-break: break-all; color: #4b4540; }
.mmdko-thumb-x { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; background: rgba(43, 39, 36, 0.82); color: #fff; font-size: 18px; line-height: 26px; cursor: pointer; }
.mmdko-error { margin: 0; color: #a32d1f; font-size: 14px; font-weight: 600; }
.mmdko-error:empty { display: none; }

.mmdko-float {
	position: fixed; right: 16px; bottom: 16px; z-index: 2147482000;
	display: inline-flex; align-items: center; gap: 7px;
	min-height: 44px; padding: 10px 16px 10px 13px; margin: 0;
	border: 0; border-radius: 999px; cursor: pointer;
	background: #2b2724; color: #fff; font: inherit; font-size: 15px; font-weight: 600; line-height: 1;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s, bottom 0.15s ease;
}
.mmdko-float.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.15s ease; }
.mmdko-float:hover { background: #000; color: #fff; }
.mmdko-float:focus-visible { outline: 2px solid #2b2724; outline-offset: 3px; }
/* 1.1.1: venstre side, når højre side dækker en knap i designeren */
.mmdko-float.is-left { right: auto; left: 16px; }
/* Under måling skal knappen have sin rigtige størrelse, men være usynlig */
.mmdko-float.is-measuring { visibility: hidden; }
/* 1.1.1: på mobil kun et rundt "?" (teksten læses stadig op af skærmlæsere) */
@media (max-width: 600px) {
	.mmdko-float { right: 12px; width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; gap: 0; }
	.mmdko-float.is-left { right: auto; left: 12px; }
	.mmdko-float svg { width: 22px; height: 22px; }
	.mmdko-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .mmdko-float { transition: none; } }
