/*
 * Misting Pazar Cookie Consent UI
 * Version: 2026.06.26
 * Isolated selectors: mp-consent-*
 */
#mp-consent-root,
#mp-consent-root * {
  box-sizing: border-box;
}

#mp-consent-root {
  --mpc-bg: #ffffff;
  --mpc-text: #14213d;
  --mpc-muted: #58647a;
  --mpc-border: rgba(20, 33, 61, .13);
  --mpc-primary: #0d6efd;
  --mpc-primary-dark: #084eb5;
  --mpc-soft: #eef5ff;
  --mpc-shadow: 0 20px 60px rgba(14, 30, 55, .20);
  color: var(--mpc-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  z-index: 2147483000;
}

#mp-consent-root button,
#mp-consent-root a {
  font: inherit;
}

#mp-consent-root .mp-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--mpc-border);
  border-radius: 18px;
  box-shadow: var(--mpc-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#mp-consent-root .mp-consent-banner.is-visible {
  display: flex;
}

#mp-consent-root .mp-consent-copy {
  min-width: 0;
  flex: 1 1 auto;
}

#mp-consent-root .mp-consent-title {
  margin: 0 0 6px;
  color: var(--mpc-text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.01em;
}

#mp-consent-root .mp-consent-text {
  margin: 0;
  color: var(--mpc-muted);
  font-size: 14px;
}

#mp-consent-root .mp-consent-text a {
  color: var(--mpc-primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#mp-consent-root .mp-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

#mp-consent-root .mp-consent-btn {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  margin: 0;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

#mp-consent-root .mp-consent-btn:hover {
  transform: translateY(-1px);
}

#mp-consent-root .mp-consent-btn:focus-visible,
#mp-consent-root .mp-consent-settings-button:focus-visible,
#mp-consent-root .mp-consent-close:focus-visible,
#mp-consent-root .mp-consent-switch input:focus-visible + span {
  outline: 3px solid rgba(13, 110, 253, .28);
  outline-offset: 2px;
}

#mp-consent-root .mp-consent-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--mpc-primary), var(--mpc-primary-dark));
  box-shadow: 0 9px 22px rgba(13, 110, 253, .22);
}

#mp-consent-root .mp-consent-btn-secondary {
  color: var(--mpc-text);
  background: #fff;
  border-color: var(--mpc-border);
}

#mp-consent-root .mp-consent-btn-ghost {
  color: var(--mpc-primary-dark);
  background: var(--mpc-soft);
}

#mp-consent-root .mp-consent-settings-button {
  appearance: none;
  -webkit-appearance: none;
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--mpc-primary), var(--mpc-primary-dark));
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(13, 70, 145, .28);
  cursor: pointer;
}

#mp-consent-root .mp-consent-settings-button.is-visible {
  display: flex;
}

#mp-consent-root .mp-consent-settings-button svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

#mp-consent-root .mp-consent-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 16, 32, .56);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#mp-consent-root .mp-consent-backdrop.is-open {
  display: flex;
}

#mp-consent-root .mp-consent-dialog {
  width: min(690px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--mpc-bg);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 20px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, .34);
}

#mp-consent-root .mp-consent-dialog-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 17px;
  border-bottom: 1px solid var(--mpc-border);
}

#mp-consent-root .mp-consent-dialog-heading {
  flex: 1 1 auto;
  min-width: 0;
}

#mp-consent-root .mp-consent-dialog-heading h2 {
  margin: 0 0 5px;
  color: var(--mpc-text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

#mp-consent-root .mp-consent-dialog-heading p {
  margin: 0;
  color: var(--mpc-muted);
  font-size: 14px;
}

#mp-consent-root .mp-consent-close {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--mpc-text);
  background: #f4f7fb;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

#mp-consent-root .mp-consent-dialog-body {
  overflow-y: auto;
  padding: 16px 24px 20px;
}

#mp-consent-root .mp-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--mpc-border);
}

#mp-consent-root .mp-consent-category:last-child {
  border-bottom: 0;
}

#mp-consent-root .mp-consent-category h3 {
  margin: 0 0 4px;
  color: var(--mpc-text);
  font-size: 16px;
  font-weight: 780;
}

#mp-consent-root .mp-consent-category p {
  margin: 0;
  color: var(--mpc-muted);
  font-size: 13px;
}

#mp-consent-root .mp-consent-required {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: #17653a;
  background: #e8f7ef;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

#mp-consent-root .mp-consent-switch {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 29px;
  flex: 0 0 auto;
}

#mp-consent-root .mp-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#mp-consent-root .mp-consent-switch span {
  position: absolute;
  inset: 0;
  background: #c8cfdb;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s ease;
}

#mp-consent-root .mp-consent-switch span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
  transition: transform .18s ease;
}

#mp-consent-root .mp-consent-switch input:checked + span {
  background: var(--mpc-primary);
}

#mp-consent-root .mp-consent-switch input:checked + span::after {
  transform: translateX(21px);
}

#mp-consent-root .mp-consent-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--mpc-border);
}

body.mp-consent-modal-open {
  overflow: hidden !important;
}

@media (max-width: 820px) {
  #mp-consent-root .mp-consent-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  #mp-consent-root .mp-consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #mp-consent-root .mp-consent-banner {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 17px;
    border-radius: 15px;
  }

  #mp-consent-root .mp-consent-title {
    font-size: 17px;
  }

  #mp-consent-root .mp-consent-actions {
    grid-template-columns: 1fr;
  }

  #mp-consent-root .mp-consent-btn {
    width: 100%;
  }

  #mp-consent-root .mp-consent-settings-button {
    left: 12px;
    bottom: 72px;
    width: 44px;
    height: 44px;
  }

  #mp-consent-root .mp-consent-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  #mp-consent-root .mp-consent-dialog {
    width: 100%;
    max-height: calc(100vh - 18px);
    border-radius: 20px 20px 0 0;
  }

  #mp-consent-root .mp-consent-dialog-header,
  #mp-consent-root .mp-consent-dialog-body,
  #mp-consent-root .mp-consent-dialog-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  #mp-consent-root .mp-consent-dialog-footer {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mp-consent-root *,
  #mp-consent-root *::before,
  #mp-consent-root *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
