/* Cookie consent (design A): bottom bar, settings window (bottom sheet on phones), "פרטיות" button. */
.mm-cc, .mm-policy, .mm-cookies-table {
	--cc-ink: #111318;
	--cc-ink2: #2E323B;
	--cc-muted: #5B606B;
	--cc-line: #E6E4DD;
	--cc-line2: #D6D3CA;
	--cc-tint: #F7F7F4;
	--cc-green: #16804A;
	--cc-green-soft: #E3F4EA;
}
.mm-cc [hidden] { display: none !important; }
.mm-cc { font-family: inherit; color: var(--cc-ink); line-height: 1.45; }
.mm-cc-ico { width: 22px; height: 22px; flex: none; }

.mm-cc__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 0 20px; border: 1px solid var(--cc-ink); border-radius: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; box-shadow: none; }
.mm-cc__btn--ink { background: var(--cc-ink); color: #fff; }
.mm-cc__btn--ink:hover { color: #fff; opacity: .9; }
.mm-cc__btn--ghost { background: #fff; color: var(--cc-ink); }
.mm-cc__btn--ghost:hover { background: var(--cc-tint); color: var(--cc-ink); }
.mm-cc__link { margin: 0; padding: 0 4px; min-height: 0; border: 0; background: none; color: var(--cc-ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.mm-cc button:focus-visible, .mm-cc a:focus-visible, .mm-cc input:focus-visible { outline: 2px solid #2B4FB8; outline-offset: 2px; }

/* Bar */
.mm-cc__bar { position: fixed; inset: auto 0 0 0; z-index: 99990; display: flex; align-items: center; gap: 18px; padding: 14px max(20px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); background: #fff; border-top: 1px solid var(--cc-line); box-shadow: 0 -8px 24px rgba(17, 19, 24, .08); }
.mm-cc__text { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; color: var(--cc-ink2); }
.mm-cc__text b { color: var(--cc-ink); }
.mm-cc__text a { color: var(--cc-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.mm-cc__acts { display: flex; align-items: center; gap: 8px; flex: none; }

/* Settings window */
.mm-cc__dim { position: fixed; inset: 0; z-index: 99994; background: rgba(17, 19, 24, .45); }
.mm-cc__modal { position: fixed; z-index: 99995; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; width: 540px; max-width: calc(100vw - 32px); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(17, 19, 24, .3); text-align: right; }
.mm-cc__mh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 6px; }
.mm-cc__mh h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--cc-ink); }
.mm-cc__x { display: grid; place-items: center; width: 36px; height: 36px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--cc-line2); border-radius: 50%; background: #fff; color: var(--cc-ink); cursor: pointer; }
.mm-cc__x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mm-cc__mp { margin: 0; padding: 0 20px 8px; font-size: 13.5px; color: var(--cc-muted); }
.mm-cc__cats { display: grid; gap: 8px; padding: 8px 20px 4px; }
.mm-cc__cat { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; margin: 0; padding: 12px 14px; border: 1px solid var(--cc-line); border-radius: 14px; font-weight: 400; cursor: pointer; }
.mm-cc__cat b { font-size: 15px; font-weight: 600; }
.mm-cc__cat span { grid-column: 1; font-size: 13px; color: var(--cc-muted); }
.mm-cc__cat .mm-cc__tg, .mm-cc__cat .mm-cc__lock { grid-row: 1 / span 2; grid-column: 2; }
.mm-cc__lock { padding: 3px 10px; border-radius: 999px; background: var(--cc-green-soft); color: var(--cc-green); font-size: 12px; font-style: normal; font-weight: 600; white-space: nowrap; }
.mm-cc__tg { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 26px; margin: 0; border: 0; border-radius: 13px; background: var(--cc-line2); cursor: pointer; transition: background .15s; }
.mm-cc__tg::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: right .15s; }
.mm-cc__tg:checked { background: var(--cc-ink); }
.mm-cc__tg:checked::after { right: 21px; }
.mm-cc__mf { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--cc-line); }

/* "פרטיות" button after a choice */
.mm-cc__again { position: fixed; left: 16px; bottom: 16px; z-index: 9980; display: flex; align-items: center; gap: 6px; min-height: 0; margin: 0; padding: 6px 12px 6px 10px; border: 1px solid var(--cc-line2); border-radius: 999px; background: #fff; color: var(--cc-ink2); font-size: 12.5px; font-weight: 500; line-height: 1.3; text-transform: none; letter-spacing: 0; box-shadow: 0 2px 8px rgba(17, 19, 24, .08); cursor: pointer; }
.mm-cc__again .mm-cc-ico { width: 16px; height: 16px; }
.mm-cc__again:hover { border-color: var(--cc-ink); }

/* While the bar is up, the WhatsApp button sits above it. */
body.mm-consent-open .mm-wa { bottom: calc(var(--mm-consent-h, 80px) + 12px) !important; }

@media (prefers-reduced-motion: no-preference) {
	.mm-cc__bar { animation: mm-cc-up .25s ease-out; }
	@keyframes mm-cc-up { from { transform: translateY(100%); } to { transform: none; } }
}

/* Phones */
@media (max-width: 760px) {
	.mm-cc__bar { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 16px; border-radius: 18px 18px 0 0; }
	.mm-cc__acts { display: grid; grid-template-columns: 1fr 1fr; }
	.mm-cc__acts .mm-cc__link { grid-column: 1 / -1; justify-self: center; padding: 4px; }
	.mm-cc__modal { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; max-width: none; max-height: 88vh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
	.mm-cc__mf { display: grid; grid-template-columns: 1fr 1fr; }
	.mm-cc__again { left: 10px; bottom: 10px; }
	/* Above the cart's pay bar and the checkout's sticky step buttons. */
	body.mm-cart-page .mm-cc__again, body.mm-co-page .mm-cc__again { bottom: 84px; }
}

/* Privacy policy page */
.mm-policy__settings { margin-top: 24px; }
.mm-cookies-table { overflow-x: auto; margin: 16px 0; }
.mm-cookies-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mm-cookies-table th { background: var(--cc-tint); text-align: right; font-weight: 600; padding: 9px 12px; }
.mm-cookies-table td { padding: 9px 12px; border-top: 1px solid var(--cc-line); }
