/* MM Cookies - stile banner */
.mmc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: color-mix(in srgb, var(--mmc-overlay) 72%, transparent);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.mmc-overlay[hidden] { display: none; }

.mmc-modal {
  width: 100%;
  max-width: 626px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--mmc-bg);
  color: var(--mmc-text);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 20, 30, .35);
  overflow: hidden;
  animation: mmc-in .25s ease-out;
}
@keyframes mmc-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.mmc-scroll { overflow-y: auto; padding: 24px 24px 8px; }

.mmc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.mmc-logo { max-height: 36px; max-width: 160px; width: auto; display: block; }
.mmc-shopname { font-weight: 700; font-size: 18px; }

.mmc-close {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--mmc-text);
  line-height: 0;
  border-radius: 50%;
}
.mmc-close:hover { background: rgba(0, 0, 0, .06); }

.mmc-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--mmc-text);
  text-transform: none;
  letter-spacing: 0;
}
.mmc-text {
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--mmc-text);
}
.mmc-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 8px; }
.mmc-links a, .mmc-footer-link a {
  color: var(--mmc-link);
  font-size: 14px;
  text-decoration: none;
}
.mmc-links a:hover, .mmc-footer-link a:hover { text-decoration: underline; }

.mmc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 10px;
  padding: 12px 24px 22px;
}
.mmc-actions[data-for="settings"] { grid-template-columns: 1fr 1.3fr; }
.mmc-actions[hidden] { display: none; }

.mmc-btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  min-height: 49px;
  padding: 10px 14px;
  border-radius: 2px;
  cursor: pointer;
  border: 0;
  transition: transform .1s, filter .15s, background .15s;
}
.mmc-btn:active { transform: scale(.97); }
.mmc-btn-ghost { background: transparent; color: var(--mmc-text); }
.mmc-btn-ghost:hover { background: rgba(0, 0, 0, .05); }
.mmc-btn-primary { background: var(--mmc-btn); color: var(--mmc-btn-text); }
.mmc-btn-primary:hover { filter: brightness(1.25); }
.mmc-btn:focus-visible, .mmc-close:focus-visible, .mmc-switch input:focus-visible + span {
  outline: 2px solid var(--mmc-link);
  outline-offset: 2px;
}

/* Categorie */
.mmc-cat {
  border-top: 1px solid rgba(10, 34, 51, .12);
  padding: 14px 0 6px;
}
.mmc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mmc-cat-name { font-weight: 600; font-size: 16px; margin: 0; }
.mmc-cat-desc { font-size: 14px; line-height: 1.35; margin: 6px 0 8px; opacity: .85; }
.mmc-always { font-size: 13px; font-weight: 600; color: var(--mmc-link); }

.mmc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; margin: 0; }
.mmc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.mmc-switch span {
  position: absolute; inset: 0;
  background: rgba(10, 34, 51, .25);
  border-radius: 24px;
  transition: background .2s;
}
.mmc-switch span::before {
  content: ""; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.mmc-switch input:checked + span { background: var(--mmc-btn); }
.mmc-switch input:checked + span::before { transform: translateX(20px); }

.mmc-footer-link { text-align: center; padding: 8px 0; }

body.mmc-lock { overflow: hidden; }

@media (max-width: 560px) {
  .mmc-scroll { padding: 20px 18px 6px; }
  .mmc-text { font-size: 15px; }
  .mmc-actions, .mmc-actions[data-for="settings"] {
    grid-template-columns: 1fr 1fr;
    padding: 10px 18px 18px;
  }
  .mmc-actions .mmc-btn-primary { grid-column: 1 / -1; order: -1; }
}
