.mcc-modal-open {
  overflow: hidden;
}

.mcc-root {
  position: relative;
  z-index: 2147483000;
  --mcc-banner-bg: #ffffff;
  --mcc-modal-bg: #ffffff;
  --mcc-heading-color: #111827;
  --mcc-body-color: #4b5563;
  --mcc-eyebrow-color: #0f766e;
  --mcc-primary-bg: #111827;
  --mcc-primary-text: #ffffff;
  --mcc-secondary-bg: #eef2ff;
  --mcc-secondary-text: #243b6b;
  --mcc-ghost-bg: #ffffff;
  --mcc-ghost-text: #111827;
}

.mcc-root .is-hidden {
  display: none !important;
}

.mcc-banner,
.mcc-modal__dialog,
.mcc-trigger {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mcc-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(460px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: var(--mcc-banner-bg);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
}

.mcc-banner__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--mcc-eyebrow-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mcc-banner h2,
.mcc-modal h2 {
  margin: 0 0 10px;
  color: var(--mcc-heading-color);
  font-size: 24px;
  line-height: 1.15;
}

.mcc-banner p,
.mcc-modal__intro {
  margin: 0;
  color: var(--mcc-body-color);
  font-size: 14px;
  line-height: 1.6;
}

.mcc-banner__actions,
.mcc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.mcc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mcc-btn:hover {
  transform: translateY(-1px);
}

.mcc-btn--primary {
  background: var(--mcc-primary-bg);
  color: var(--mcc-primary-text);
}

.mcc-btn--secondary {
  background: var(--mcc-secondary-bg);
  border-color: #dbe4ff;
  color: var(--mcc-secondary-text);
}

.mcc-btn--ghost {
  background: var(--mcc-ghost-bg);
  border-color: #d1d5db;
  color: var(--mcc-ghost-text);
}

.mcc-trigger {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  cursor: pointer;
}

.mcc-root--bottom-left .mcc-trigger {
  left: 24px;
  right: auto;
}

.mcc-trigger__cookie,
.mcc-trigger__cookie::before,
.mcc-trigger__cookie::after {
  position: absolute;
  display: block;
}

.mcc-trigger__cookie {
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  background: #b9824a;
  box-shadow: inset -7px -7px 0 0 #efc28f;
}

.mcc-trigger__cookie::before {
  content: "";
  left: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff7ed;
  box-shadow: 10px 2px 0 #fff7ed, 6px 13px 0 #fff7ed;
}

.mcc-trigger__cookie::after {
  content: "";
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #b9824a;
}

.mcc-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
}

.mcc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.mcc-modal__dialog {
  position: relative;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  padding: 24px;
  overflow: auto;
  border-radius: 20px;
  background: var(--mcc-modal-bg);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
}

.mcc-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mcc-modal__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mcc-preferences {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.mcc-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}

.mcc-pref__text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--mcc-heading-color);
  font-size: 15px;
  text-align: left;
}

.mcc-pref__text small {
  display: block;
  color: var(--mcc-body-color);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.mcc-pref.is-locked {
  background: #f3f4f6;
}

.mcc-switch {
  position: relative;
  flex: 0 0 auto;
}

.mcc-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mcc-switch span {
  display: block;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background-color 0.18s ease;
}

.mcc-switch span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
  transition: transform 0.18s ease;
}

.mcc-switch input:checked + span {
  background: #111827;
}

.mcc-switch input:checked + span::after {
  transform: translateX(18px);
}

@media (max-width: 767px) {
  .mcc-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    padding: 18px;
    border-radius: 16px;
  }

  .mcc-banner h2,
  .mcc-modal h2 {
    font-size: 21px;
  }

  .mcc-modal__dialog {
    width: calc(100vw - 16px);
    margin: 8px auto;
    padding: 18px;
    border-radius: 18px;
  }

  .mcc-banner__actions .mcc-btn,
  .mcc-modal__actions .mcc-btn {
    width: 100%;
    justify-content: center;
  }
}
