/* Master Cookie - styles */
:root{
  --mc-accent: #2563eb;
  --mc-bg: rgba(15, 23, 42, 0.55);
  --mc-card: #ffffff;
  --mc-text: #0f172a;
  --mc-muted: #475569;
  --mc-border: rgba(148, 163, 184, 0.35);
  --mc-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
  --mc-radius: 16px;
  --mc-font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mc-fab-right: 18px;
  --mc-fab-bottom: 88px;
  --mc-fab-bg: #ffffff;
  --mc-fab-fg: #f97316;
}

.mc-noscroll{ overflow: hidden !important; }

.mc-root{
  position: fixed;
  inset: 0;
  z-index: 2147483647;
}

.mc-backdrop{
  position: absolute;
  inset: 0;
  background: var(--mc-bg);
  backdrop-filter: blur(2px);
}

.mc-modal{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  pointer-events: none;
}

.mc-card{
  pointer-events: auto;
  width: min(760px, 100%);
  background: var(--mc-card);
  border: 1px solid var(--mc-border);
  border-radius: 18px;
  box-shadow: var(--mc-shadow);
  padding: 18px;
  font-family: var(--mc-font);
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.mc-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mc-title{
  font-size: 20px;
  font-weight: 750;
  color: var(--mc-text);
  margin-bottom: 6px;
}

.mc-message{
  color: var(--mc-muted);
  line-height: 1.5;
}

.mc-privacy{ margin-top: 10px; }
.mc-privacy a{ color: var(--mc-accent); text-decoration: none; }
.mc-privacy a:hover{ text-decoration: underline; }

.mc-close{
  all: unset;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color: var(--mc-muted);
  background: rgba(148,163,184,0.18);
  font-size: 22px;
  line-height: 1;
}
.mc-close:hover{ background: rgba(148,163,184,0.28); }

.mc-toggle-details{
  all: unset;
  color: var(--mc-accent);
  margin-top: 12px;
  cursor: pointer;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  -webkit-tap-highlight-color: transparent;
}
.mc-toggle-details:hover{ text-decoration: underline; }

.mc-details{
  /* Animated collapse/expand */
  display: grid;
  gap: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);

  margin-top: 0;
  padding-top: 0;
  border-top: 0 solid var(--mc-border);

  transition:
    max-height .35s ease,
    opacity .20s ease,
    transform .20s ease,
    margin-top .35s ease,
    padding-top .35s ease,
    border-top-width .35s ease;
}

/* Details open/closed */
.mc-details[hidden]{ display:none !important; }
.mc-details.is-open{
  opacity: 1;
  transform: translateY(0);
  margin-top: 14px;
  padding-top: 12px;
  border-top-width: 1px;
}

.mc-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}
.mc-row-text{ min-width: 0; }
.mc-row-label{ font-weight: 750; color: var(--mc-text); }
.mc-row-desc{ color: var(--mc-muted); font-size: 13px; margin-top: 2px; }

.mc-actions{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.mc-btn{
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(148,163,184,0.45);
  background: #fff;
  color: var(--mc-text);
  cursor: pointer;
  font-weight: 700;
  font-family: var(--mc-font);
}
.mc-btn:hover{ filter: brightness(0.98); }

.mc-btn-primary{
  background: var(--mc-accent);
  border-color: rgba(37,99,235,0.55);
  color: #fff;
}

.mc-btn-ghost{
  background: transparent;
}

.mc-switch{
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.mc-switch input{ display:none; }

.mc-slider{
  position:absolute;
  cursor:pointer;
  top:0; left:0; right:0; bottom:0;
  background: rgba(148,163,184,0.35);
  border-radius: 999px;
  transition: .2s;
  border: 1px solid rgba(148,163,184,0.55);
}
.mc-slider:before{
  position:absolute;
  content:"";
  height: 20px; width: 20px;
  left: 2px; top: 1px;
  background:#fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 6px 16px rgba(2,6,23,0.18);
}

.mc-switch input:checked + .mc-slider{
  background: rgba(37,99,235,0.25);
  border-color: rgba(37,99,235,0.55);
}
.mc-switch input:checked + .mc-slider:before{
  transform: translateX(20px);
}

.mc-switch-locked .mc-slider{ cursor: not-allowed; opacity: 0.95; }

/* Floating cookie icon */
.mc-fab{
  all: unset;
  position: fixed;
  right: var(--mc-fab-right) !important;
  bottom: var(--mc-fab-bottom) !important;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2147483646;
  background: var(--mc-fab-bg);
  color: var(--mc-fab-fg);
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.25);
}
.mc-fab:hover{ filter: brightness(0.98); }
.mc-fab:focus{ outline: 2px solid rgba(37,99,235,0.35); outline-offset: 3px; }

.mc-fab-icon{ width: 22px; height: 22px; display:block; }
.mc-fab-icon svg{ width: 100%; height: 100%; display:block; fill: currentColor; }

.mc-settings-link{ cursor: pointer; }

/* Mobile */
@media (max-width: 520px){
  .mc-actions{ justify-content: stretch; }
  .mc-btn{ flex: 1 1 auto; text-align: center; }
  .mc-row{ align-items: flex-start; }
  .mc-row-action{ padding-top: 2px; }
}
