/* Centro preferenze condiviso: palette MythicMaster, contrasto e layout mobile. */
#mm-cookie-center { font-family: 'Montserrat', sans-serif; }
#mm-cookie-center [hidden] { display: none !important; }
#mm-cookie-center button { font-family: inherit; cursor: pointer; }
#mm-cookie-center button:focus-visible, .mm-cookie-footer-link:focus-visible, .mm-cookie-media-placeholder button:focus-visible { outline: 3px solid #a74bce; outline-offset: 3px; }
.mm-cookie-launcher { position: fixed; z-index: 9998; left: 0; bottom: 22px; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 0 15px 15px 0; background: #ffd400; box-shadow: 0 9px 25px rgba(61, 25, 85, .19); color: #65189a; font-size: 1.5rem; }
.mm-cookie-launcher:hover { background: #ffe466; transform: translateX(3px); }
.mm-cookie-banner, .mm-cookie-preferences { position: fixed; z-index: 10002; width: min(460px, calc(100vw - 36px)); max-height: min(82vh, 740px); overflow: auto; border: 1px solid #eadcf1; border-radius: 21px; background: #fff; box-shadow: 0 24px 70px rgba(38, 18, 60, .23); color: #332345; }
.mm-cookie-banner { left: 18px; bottom: 88px; padding: 22px; }
.mm-cookie-preferences { left: 50%; top: 50%; width: min(560px, calc(100vw - 28px)); padding: 25px; transform: translate(-50%, -50%); }
.mm-cookie-backdrop { position: fixed; z-index: 10001; inset: 0; background: rgba(32, 16, 50, .54); backdrop-filter: blur(3px); }
.mm-cookie-modal-open { overflow: hidden; }
.mm-cookie-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mm-cookie-heading h2 { flex: 1; margin: 0; color: #381e53; font-size: 1.21rem; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.mm-cookie-symbol { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: #f4e8fb; color: #7426a8; font-size: 1.1rem; }
.mm-cookie-close, .mm-cookie-cancel { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid #d8c4e7; border-radius: 10px; background: #f8f0fc; color: #5b3971; font-size: 1.45rem; line-height: 1; }
.mm-cookie-close:hover, .mm-cookie-cancel:hover { background: #f0e4f8; }
.mm-cookie-banner > p, .mm-cookie-pref-intro { margin: 0 0 17px; color: #74687e; font-size: .85rem; line-height: 1.65; }
.mm-cookie-banner .mm-cookie-close-note { margin-top: -7px; color: #816b90; font-size: .73rem; }
.mm-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mm-cookie-actions button, .mm-cookie-pref-actions button { min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: .75rem; font-weight: 700; line-height: 1.3; }
.mm-cookie-deny, .mm-cookie-deny-pref { border: 1px solid #65189a; background: #65189a; color: #fff; box-shadow: 0 7px 14px rgba(65, 18, 102, .14); }
.mm-cookie-accept, .mm-cookie-save { border: 1px solid #ffd400; background: #ffd400; color: #481475; box-shadow: 0 7px 14px rgba(200, 155, 0, .14); }
.mm-cookie-deny:hover, .mm-cookie-deny-pref:hover { background: #4f107e; }
.mm-cookie-accept:hover, .mm-cookie-save:hover { background: #ffe153; }
.mm-cookie-actions .mm-cookie-customize { grid-column: 1 / -1; min-height: 37px; border: 0; background: #f7f0fb; color: #672399; }
.mm-cookie-actions .mm-cookie-customize:hover { background: #eddef6; }
.mm-cookie-policy { display: inline-block; margin-top: 15px; color: #692e94; font-size: .72rem; font-weight: 700; line-height: 1.45; text-decoration: underline; text-underline-offset: 3px; }
.mm-cookie-policy:hover { color: #481475; }
.mm-cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 9px 0; padding: 15px; border: 1px solid #e9dff0; border-radius: 13px; background: #fcf9fe; }
.mm-cookie-category strong { display: block; color: #39254a; font-size: .86rem; }
.mm-cookie-category p, .mm-cookie-category small { display: block; margin: 5px 0 0; color: #786a82; font-size: .73rem; font-weight: 400; line-height: 1.5; }
.mm-cookie-always { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #e9f7ed; color: #287446; font-size: .66rem; font-weight: 700; }
.mm-cookie-category-optional { position: relative; cursor: pointer; }
.mm-cookie-category-optional > span:first-child { flex: 1; }
.mm-cookie-category-optional input { position: absolute; right: 20px; width: 42px; height: 25px; margin: 0; opacity: 0; cursor: pointer; }
.mm-cookie-switch { position: relative; flex: 0 0 44px; width: 44px; height: 26px; border: 1px solid #d6c7df; border-radius: 999px; background: #ded7e4; transition: background .18s ease; }
.mm-cookie-switch::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(36, 16, 56, .18); content: ''; transition: transform .18s ease; }
.mm-cookie-category-optional input:checked + .mm-cookie-switch { border-color: #752bad; background: #752bad; }
.mm-cookie-category-optional input:checked + .mm-cookie-switch::after { transform: translateX(18px); }
.mm-cookie-category-optional input:focus-visible + .mm-cookie-switch { outline: 3px solid #af69d4; outline-offset: 3px; }
.mm-cookie-no-tracking { margin: 13px 2px 17px; color: #81748b; font-size: .72rem; line-height: 1.5; }
.mm-cookie-pref-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mm-cookie-footer-link { display: inline-block; margin: 8px 0 0; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mm-cookie-footer-link:hover { color: #ffe27a; }
.mm-cookie-media-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 340px; padding: 30px; background: linear-gradient(135deg, #f7f1fc, #efe1f9); color: #412656; text-align: center; }
.mm-cookie-media-icon { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 15px; border-radius: 50%; background: #691ea1; color: #fff; font-size: 1.3rem; }
.mm-cookie-media-placeholder strong { font-size: 1.2rem; }
.mm-cookie-media-placeholder p { max-width: 420px; margin: 9px 0 18px; color: #6b587a; font-size: .85rem; line-height: 1.6; }
.mm-cookie-media-placeholder button { min-height: 43px; padding: 9px 17px; border: 0; border-radius: 10px; background: #ffd400; color: #481475; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.mm-cookie-media-placeholder button:hover { background: #ffe364; }
@media (max-width: 520px) {
  .mm-cookie-banner { left: 12px; bottom: 83px; width: calc(100vw - 24px); padding: 18px; }
  .mm-cookie-preferences { padding: 18px; }
  .mm-cookie-heading h2 { font-size: 1.08rem; }
  .mm-cookie-category { gap: 9px; padding: 12px; }
  .mm-cookie-category strong { font-size: .78rem; }
  .mm-cookie-always { font-size: .58rem; }
  .mm-cookie-media-placeholder { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-cookie-switch, .mm-cookie-switch::after { transition: none; }
}

/* Persistent cookie preferences launcher */
.mm-cookie-launcher {
  z-index: 10000;
  left: 16px;
  bottom: 18px;
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 48px;
  height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: #6812a8;
  box-shadow: 0 8px 22px rgba(45,15,68,.25);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.mm-cookie-launcher:hover {
  background: #541087;
  box-shadow: 0 10px 26px rgba(45,15,68,.3);
  transform: translateY(-2px);
}
.mm-cookie-launcher svg { width: 19px; height: 19px; overflow: visible; fill: none; stroke: #ffdf66; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mm-cookie-launcher svg circle { fill: #ffdf66; stroke: none; }
@media (max-width: 520px) {
  .mm-cookie-launcher { left: 12px; bottom: 14px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-cookie-launcher { transition: none; }
}
