.mm-cookies, .mm-cookies *, .mm-cookies *::before, .mm-cookies *::after { box-sizing: border-box; }
.mm-cookies {
  --mm-ink: #1D2B4F;
  --mm-ink-2: #3E4A66;
  --mm-ink-3: #4A5571;
  --mm-ink-4: #5F6A85;
  --mm-blue: #1C6FB0;
  --mm-blue-light: #2E8FD6;
  --mm-line: #ECEAF2;
  --mm-green: #11673F;
  --mm-green-bg: #E2F4EA;
  --mm-switch-off: #8E97AD;
}
.mm-cookies .ck-dim {
  position: fixed; z-index: 70; inset: 0;
  background: rgba(29, 43, 79, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.mm-cookies .ck {
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #FFFFFF; border-radius: 22px;
  box-shadow: 0 24px 64px rgba(29, 43, 79, .35);
  padding: clamp(20px, 5vw, 32px);
  display: flex; flex-direction: column; gap: 20px;
  font-family: var(--body); color: var(--mm-ink);
}
.mm-cookies .ck-head { display: flex; flex-direction: column; gap: 10px; }
.mm-cookies .ck-ic {
  width: 48px; height: 48px; border-radius: 14px;
  background: #EAF4FC; color: #2384CA;
  display: flex; align-items: center; justify-content: center;
}
.mm-cookies .ck h2 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(21px, 5vw, 26px); font-weight: 700; line-height: 1.3;
}
.mm-cookies .ck p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--mm-ink-2); }
.mm-cookies .ck a { color: var(--mm-blue); font-weight: 700; }
.mm-cookies .ck-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mm-cookies .ckb {
  flex: 1 1 140px; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--mm-blue); border-radius: 999px;
  font: 800 16px var(--body); cursor: pointer;
  background: linear-gradient(90deg, var(--mm-blue-light), var(--mm-blue));
  color: #FFFFFF;
}
.mm-cookies .ckb.ghost { flex-basis: 100%; background: #FFFFFF; color: var(--mm-blue); }
.mm-cookies .ckb:focus-visible, .mm-cookies .ckd-x:focus-visible, .mm-cookies .ck-sw:focus-visible, .mm-cookies .toast button:focus-visible { outline: 3px solid #F2B636; outline-offset: 2px; }
.mm-cookies .ckd-dim {
  position: fixed; z-index: 70; inset: 0;
  background: rgba(29, 43, 79, .5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.mm-cookies .ckd {
  width: 100%; max-width: 600px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  background: #FFFFFF; border-radius: 22px;
  box-shadow: 0 24px 64px rgba(29, 43, 79, .35);
  display: flex; flex-direction: column; overflow: hidden;
  font-family: var(--body); color: var(--mm-ink);
}
.mm-cookies .ckd-h { flex: none;
  padding: 24px 24px 14px;
  display: flex; flex-direction: column; gap: 6px;
  border-bottom: 1px solid var(--mm-line);
}
.mm-cookies .ckd-h > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mm-cookies .ckd-h h2 {
  margin: 0;
  font-family: var(--head);
  font-size: 24px; font-weight: 700; line-height: 1.3;
}
.mm-cookies .ckd-h p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mm-ink-3); }
.mm-cookies .ckd-x {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px;
  background: #F1F0F5; color: var(--mm-ink-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mm-cookies .ckd ul {
  list-style: none; margin: 0; padding: 0 24px;
  display: flex; flex-direction: column; overflow-y: auto; min-height: 0;
}
.mm-cookies .ckd li {
  padding: 14px 0; border-bottom: 1px solid var(--mm-line);
  display: flex; flex-direction: column; gap: 4px;
}
.mm-cookies .ckd li:last-child { border-bottom: 0; }
.mm-cookies .ck-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.mm-cookies .ck-name { font-weight: 800; font-size: 17px; }
.mm-cookies .ck-on {
  flex: none; font-size: 13.5px; font-weight: 700;
  color: var(--mm-green); background: var(--mm-green-bg);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.mm-cookies .ck-sw {
  flex: none; display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0; border: 0; background: transparent;
  font-family: inherit; cursor: pointer;
}
.mm-cookies .ck-sw b { font-size: 14px; font-weight: 700; color: var(--mm-ink-4); }
.mm-cookies .ck-track {
  width: 50px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 0 3px; background: var(--mm-switch-off);
  transition: background .15s ease;
}
.mm-cookies .ck-track i {
  width: 24px; height: 24px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(29, 43, 79, .3);
}
.mm-cookies .ck-sw[aria-checked="true"] b { color: var(--mm-blue); }
.mm-cookies .ck-sw[aria-checked="true"] .ck-track { background: var(--mm-blue); justify-content: flex-end; }
.mm-cookies .ck-desc { font-size: 15px; line-height: 1.65; color: var(--mm-ink-3); }
.mm-cookies .ck-ex { font-size: 14px; line-height: 1.55; color: var(--mm-ink-4); }
.mm-cookies .ckd-f { flex: none;
  padding: 14px 24px 24px;
  border-top: 1px solid var(--mm-line); background: #FBFAF7;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.mm-cookies .ckd-f .ckb { flex: 1 1 140px; min-height: 46px; background: #FFFFFF; color: var(--mm-blue); }
.mm-cookies .ckd-f .ckb.save {
  flex-basis: 100%; min-height: 50px; border: 0;
  background: linear-gradient(90deg, var(--mm-blue-light), var(--mm-blue));
  color: #FFFFFF;
}
.mm-cookies .toast { min-width: 0;
  position: fixed; z-index: 60; inset-inline-start: 24px; bottom: 24px; max-width: 600px;
  background: var(--mm-ink); color: #FFFFFF; border-radius: 16px;
  box-shadow: 0 14px 36px rgba(29, 43, 79, .3);
  padding: 12px 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  font-family: var(--body);
}
.mm-cookies .toast p { margin: 0; flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.6; }
.mm-cookies .toast svg { flex: none; margin-top: 3px; }
.mm-cookies .toast .nowrap { white-space: nowrap; }
.mm-cookies .toast div { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; margin-inline-start: auto; }
.mm-cookies .toast button {
  min-height: 40px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  background: transparent; color: #FFFFFF;
  font: 700 14px var(--body); cursor: pointer; white-space: nowrap;
}
.mm-cookies .toast button + button { border-color: transparent; background: rgba(255, 255, 255, .12); }
.mm-cookies [hidden] { display: none !important; }
.mm-cookies .ck:focus, .mm-cookies .ckd:focus { outline: none; }

@media (max-width: 620px) {
.mm-cookies .toast { min-width: 0; inset-inline: 12px; bottom: 12px; }
.mm-cookies .ckd-dim { padding: 0; }
.mm-cookies .ck { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.mm-cookies .ckd { height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
}
