.mcm-root {
  --mcm-primary: #6d28d9;
  --mcm-text: #18181b;
  --mcm-muted: #5b5b66;
  --mcm-border: #e4e4e7;
  position: relative;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--mcm-text);
  line-height: 1.45;
}

.mcm-root[hidden] { display: none !important; }

.mcm-banner {
  position: fixed;
  z-index: 2147483000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 28px;
  width: auto;
  max-width: 1180px;
  margin: auto;
  padding: 22px;
  border: 1px solid var(--mcm-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.mcm-banner.mcm-bottom-left,
.mcm-banner.mcm-bottom-right {
  display: block;
  width: min(460px, calc(100% - 36px));
  margin: 0;
}

.mcm-banner.mcm-bottom-left { right: auto; }
.mcm-banner.mcm-bottom-right { left: auto; }
.mcm-copy { flex: 1 1 auto; min-width: 0; }
.mcm-copy h2, .mcm-modal h2 { margin: 0 0 8px; color: var(--mcm-text); font-size: 21px; line-height: 1.25; }
.mcm-copy p, .mcm-intro { margin: 0 0 8px; color: var(--mcm-muted); font-size: 14px; }
.mcm-policy { color: var(--mcm-primary); font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.mcm-actions, .mcm-modal-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.mcm-bottom-left .mcm-actions, .mcm-bottom-right .mcm-actions { margin-top: 17px; }

.mcm-btn {
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid var(--mcm-primary);
  border-radius: 9px;
  background: transparent;
  color: var(--mcm-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.mcm-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(0, 0, 0, .1); }
.mcm-btn:focus-visible, .mcm-close:focus-visible, .mcm-reopen:focus-visible, .mcm-switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--mcm-primary) 35%, transparent); outline-offset: 2px; }
.mcm-primary { background: var(--mcm-primary); color: #fff; }
.mcm-secondary { background: #fff; }

.mcm-overlay {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 15, 20, .58);
  backdrop-filter: blur(3px);
}
.mcm-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
}
.mcm-modal:focus { outline: none; }
.mcm-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f4f4f5;
  color: #333;
  font-size: 25px;
  cursor: pointer;
}
[dir="rtl"] .mcm-close { right: auto; left: 15px; }
.mcm-intro { margin: 0 42px 20px 0; }
[dir="rtl"] .mcm-intro { margin-right: 0; margin-left: 42px; }
.mcm-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 11px;
  padding: 16px;
  border: 1px solid var(--mcm-border);
  border-radius: 12px;
  background: #fff;
}
label.mcm-category { cursor: pointer; }
.mcm-category h3 { margin: 0 0 4px; color: var(--mcm-text); font-size: 16px; }
.mcm-category p { margin: 0; color: var(--mcm-muted); font-size: 13px; }
.mcm-always { flex: 0 0 auto; color: #16803a; font-size: 12px; font-weight: 750; }
.mcm-switch { position: relative; flex: 0 0 46px; width: 46px; height: 26px; }
.mcm-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mcm-switch span { position: absolute; inset: 0; border-radius: 99px; background: #a1a1aa; transition: .2s; }
.mcm-switch span::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); content: ""; transition: .2s; }
.mcm-switch input:checked + span { background: var(--mcm-primary); }
.mcm-switch input:checked + span::after { transform: translateX(20px); }
[dir="rtl"] .mcm-switch span::after { right: 3px; left: auto; }
[dir="rtl"] .mcm-switch input:checked + span::after { transform: translateX(-20px); }
.mcm-modal-links { margin: 17px 0; }
.mcm-modal-actions { padding-top: 3px; }

.mcm-reopen {
  position: fixed;
  z-index: 2147482999;
  bottom: 16px;
  left: 16px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 11px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--mcm-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  cursor: pointer;
}
[dir="rtl"] .mcm-reopen { right: 16px; left: auto; }
.mcm-reopen svg { width: 24px; height: 24px; fill: #fff; }
.mcm-modal-open { overflow: hidden; }

@media (max-width: 800px) {
  .mcm-banner { display: block; bottom: 10px; right: 10px; left: 10px; padding: 18px; border-radius: 14px; }
  .mcm-actions { margin-top: 16px; }
  .mcm-actions .mcm-btn { flex: 1 1 135px; }
  .mcm-modal { padding: 23px 17px 18px; }
  .mcm-category { padding: 14px; }
  .mcm-modal-actions .mcm-btn { flex: 1 1 135px; }
}

@media (max-width: 480px) {
  .mcm-copy h2, .mcm-modal h2 { font-size: 19px; }
  .mcm-actions, .mcm-modal-actions { display: grid; grid-template-columns: 1fr; }
  .mcm-btn { width: 100%; }
  .mcm-category { gap: 12px; }
  .mcm-overlay { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mcm-btn, .mcm-switch span, .mcm-switch span::after { transition: none; }
}

