:root {
  --mpcc-accent: #f49531;
  --mpcc-light-bg: #fef5ec;
  --mpcc-btn-b: #777067;
  --mpcc-btn-bg: #00000066;
  --mpcc-logo-url: url("../img/netclicks-logo.png");
  --mpcc-logo-h: 40px;
  --mpcc-logo-w: 42px;
  --mpcc-btn-radius: 8px;
  --mpcc-btn-padding: 0.5rem 1rem;
  --mpcc-btn-fw: 600;
}

.mpcc-modal * {
  font-size: 0.7rem;
}
.mpcc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #111;
  color: #fff;
  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}
.mpcc-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.mpcc-banner__text a {
  color: #9cd2ff;
  text-decoration: underline;
}
.mpcc-banner__actions {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.mpcc-btn {
  border: 1px solid #666;
  background: #222;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

.mpcc-btn--primary {
  background: #2d6cdf;
  border-color: #2d6cdf;
  color: #fff;
}

.mpcc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 10000;
}
.banner-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}
.mpcc-modal.is-open {
  display: block;
}
.mpcc-modal__dialog {
  background: #fff;
  color: #111;
  width: 92%;
  max-width: 800px;
  margin: 8vh auto;
  border-radius: 1.2rem;
  overflow: hidden;
}
.mpcc-modal__head,
.mpcc-modal__foot {
  padding: 1em 1.5rem 1rem;
  background: #f6f7f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.mpcc-modal__body {
  padding: 1rem 1.5rem;
  min-height: 520px;
  max-height: 70vh;
  overflow-y: auto;
}

.mpcc-modal__body p {
  margin: 0;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: -0.01em;
}
.mpcc-close {
  background: transparent;
  border: 0;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #222;
  padding: 0;
  height: 2rem;
  width: 2rem;
}
.mpcc-close:hover {
  background: #222;
  color: #fff;
}
.mpcc-close:focus {
  background: transparent;
  color: #222;
}
.mpcc-row {
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
}
.mpcc-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.mpcc-switch input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.mpcc-accordion-wrapper {
  display: block;
  margin: 1rem 0;
}

.mpcc-accordion {
  border: 1px solid var(--mpcc-b, #e5e7eb);
  border-radius: 0.75rem;
  margin: 0 0 0.75rem;
  overflow: hidden;
  background: var(--mpcc-bg, #f9fafb);
}
.mpcc-accordion .mpcc-accordion-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
}
.mpcc-accordion .mpcc-accordion-chevron {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.35rem;
}
.mpcc-accordion .mpcc-chevron {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.mpcc-open .mpcc-chevron {
  transform: rotate(45deg);
}

.mpcc-accordion-header-wrapper {
  flex: 1;
  min-width: 0;
}
.mpcc-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}
.mpcc-accordion-btn {
  all: unset;
  cursor: pointer;
  font-weight: 600;
}
.mpcc-accordion-header-des {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.mpcc-always-on {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  white-space: nowrap;
}
.mpcc-switch input[type="checkbox"] {
  width: 42px;
  height: 24px;
  appearance: none;
  background: #e5e7eb;
  border-radius: 999px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.mpcc-switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: left 0.2s;
}
.mpcc-switch input[type="checkbox"]:checked {
  background: var(--mpcc-accent);
}
.mpcc-switch input[type="checkbox"]:checked::after {
  left: 20px;
}

.mpcc-accordion-body {
  padding: 0.75rem 1rem 1rem;
  background: var(--mpcc-tbg, #f6f7fb);
}

.mpcc-accordion-body {
  display: none;
}
.mpcc-accordion.mpcc-open .mpcc-accordion-body {
  display: block;
}

.mpcc-audit-table {
  display: grid;
  gap: 0.5rem;
}
.mpcc-cookie-des-table {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.35rem 0.8rem;
  background: #fff;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--mpcc-b, #e5e7eb);
  border-radius: 0.5rem;
}
.mpcc-cookie-des-table li {
  display: contents;
}
.mpcc-cookie-des-table li > div:first-child {
  font-weight: 600;
  opacity: 0.8;
}
.mpcc-cookie-des-table code {
  background: #f3f4f6;
  padding: 0.05rem 0.35rem;
  border-radius: 0.35rem;
}

#mpcc-widget.mpcc-widget {
  position: fixed;
  left: -6.8rem;
  bottom: 6rem;
  width: 8.2rem;
  height: 2.5rem;
  border: solid 1px var(--mpcc-btn-b);
  border-radius: 0 1000px 1000px 0;
  background: var(--mpcc-btn-bg);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  z-index: 2147483640; /* stays above */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;

  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  color: #ffffff;
}

#mpcc-widget.mpcc-widget:hover {
  transform: translateX(6rem);
}
#mpcc-widget.mpcc-widget.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#mpcc-widget[hidden] {
  display: none !important;
}

body.elementor-editor-active #mpcc-widget,
body.elementor-editor-preview #mpcc-widget {
  display: none !important;
}

/* Chevron on accordion */
.mpcc-accordion-btn {
  position: relative;
  padding-left: 1rem;
}

.mpcc-accordion-btn::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%) rotate(0deg);
  background: url("../img/arrow-right.svg") no-repeat center / contain;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.mpcc-accordion.mpcc-open .mpcc-accordion-btn::before {
  transform: translateY(-50%) rotate(90deg);
}

/* === Simple variant styles === */
#mpcc-simple-title,
.mpcc-simple-banner-title {
  position: relative;
  padding-left: calc(var(--mpcc-logo-w) + 16px);
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #030712;
  margin: 0;
}
#mpcc-simple-title::before,
.mpcc-simple-banner-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--mpcc-logo-w);
  height: var(--mpcc-logo-h);
  transform: translateY(-50%) rotate(0deg);
  background: var(--mpcc-logo-url) no-repeat center / contain;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.mpcc-simple-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 520px;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0;
  overflow: hidden;
}
.mpcc-simple-close {
  appearance: none;
  padding: 0 !important;
  border: 0 !important;
  background-color: var(--mpcc-accent) !important;
  cursor: pointer !important;
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1000px !important;
  border: 1px solid #14141f1f;
  color: white !important;
}
.mpcc-simple-close:hover {
  background-color: black !important;
  color: white !important;
}

.mpcc-simple-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.mpcc-simple-desc p {
  margin: 0;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: 0.8em;
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: -0.01em;
}
.mpcc-simple-policy {
  color: #030712;
  text-decoration: underline;
}
.mpcc-simple-policy:hover {
  color: var(--mpcc-accent);
}
.mpcc-simple-actions {
  display: flex;
  gap: 0.5em;
  padding: 1em 2em 1.5em;
}

/* Simple Banner Button */
#simple-banner .mpcc-simple-donotsell {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: 0.7em;
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: 0px;
  background: #fff;
  color: #030712;
  border: none;
  padding: 0;
  cursor: pointer;
}

.mpcc-simple-modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
}

.mpcc-simple-optout {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mpcc-simple-modal.mpcc-open {
  display: flex;
}
.mpcc-simple-modal.mpcc-open .mpcc-simple-modal__dialog {
  transform: translateY(0);
  opacity: 1;
}
.mpcc-simple-modal__dialog {
  background: #fff;
  color: #212121;
  width: 92%;
  max-width: 560px;
  margin: auto;

  border-radius: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(8px);
  opacity: 0.98;
  transition: all 0.2s ease;
  overflow: hidden;
}
.mpcc-simple-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--mpcc-logo-h);
}
.mpcc-simple-banner__head {
  min-height: var(--mpcc-logo-h);
}
.top-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 2em 2em 1.2em;
  background-color: var(--mpcc-light-bg);
}
.mpcc-simple-banner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mpcc-simple-head {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 2em 2em 1.2em;
  background-color: var(--mpcc-light-bg);
}

.mpcc-simple-modal__body {
  padding: 1em 2em;
}
.top-wrapper p {
  margin: 0;
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: 0.8em;
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: -0.01em;
}
.mpcc-simple-modal__foot {
  display: flex;
  gap: 1.2rem;
  padding: 0 2em 1em;
  justify-content: center;
}
#mpcc-portal .mpcc-simple-modal-close {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  background-color: var(--mpcc-accent);
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1000px;
  border: none;
  color: white;
}
#mpcc-portal .mpcc-simple-modal-close:hover {
  background-color: black;
  color: white;
}
.mpcc-simple-modal-close svg {
  height: 0.8rem;
  width: 0.8rem;
}

/* Checkbox */
.mpcc-simple-checkbox input {
  margin-right: 8px;
}

.mpcc-simple-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.mpcc-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.mpcc-chkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #c7c7c7;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.15s ease;
  color: #fff;
}

.mpcc-chk {
  transform: scale(0);
  transition: transform 0.15s ease;
}

.mpcc-simple-checkbox:hover .mpcc-chkbox {
  border-color: #999;
}

.mpcc-simple-checkbox:focus-within .mpcc-chkbox {
  box-shadow: 0 0 0 3px var(--mpcc-light-bg);
  border-color: var(--mpcc-accent);
}

input[type="checkbox"].mpcc-visually-hidden:checked + .mpcc-chkbox {
  background: var(--mpcc-accent);
  border-color: var(--mpcc-accent);
  color: #fff;
}

input[type="checkbox"].mpcc-visually-hidden:checked + .mpcc-chkbox .mpcc-chk {
  transform: scale(1);
}

.mpcc-chkbox-label {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: 0.7em;
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: 0px;
}

#mpcc-portal .mpcc-simple-save {
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: 0.9em;
  font-weight: var(--mpcc-btn-fw);
  line-height: 1.4em;
  letter-spacing: -0.01em;

  background: white;
  color: #3d3546;
  border: 1px solid #6d6774;
  border-radius: var(--mpcc-btn-radius, 0.7rem);
  padding: var(--mpcc-btn-padding);
  cursor: pointer;
}

#mpcc-portal .mpcc-simple-cancel {
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: 0.9em;
  font-weight: var(--mpcc-btn-fw);
  line-height: 1.4em;
  letter-spacing: -0.01em;

  background: #fff;
  color: #3d3546;
  border: 1px solid #6d6774;
  border-radius: var(--mpcc-btn-radius, 0.7rem);
  padding: var(--mpcc-btn-padding);
  cursor: pointer;
}
#mpcc-portal .mpcc-simple-save:hover {
  background: black;
  color: #fff;
  border-color: #030712;
}
#mpcc-portal .mpcc-simple-cancel:hover {
  background: black;
  color: #fff;
  border-color: #030712;
}

@media (max-width: 768px) {
  .mpcc-modal__body {
    min-height: 320px;
    max-height: 65vh;
  }

  .mpcc-simple-head,
  .top-wrapper {
    padding: 1em 1em 0.6em;
  }
  .mpcc-simple-banner__head,
  .mpcc-simple-modal__head {
    padding-right: 48px;
  }
  .mpcc-simple-actions,
  .mpcc-simple-modal__body {
    padding: 1em;
  }
  .mpcc-simple-modal__foot {
    padding: 0 1em 1em;
  }
  .mpcc-simple-close,
  .mpcc-simple-modal-close {
    height: 30px;
    width: 30px;
    position: absolute;
    right: 0.8em;
    top: 1em;
  }
  .mpcc-cookie-des-table {
    grid-template-columns: 1fr;
  }
}
