/* Moustr v1.3 Privacy & Measurement Consent Banner (consent.v28.css)
   Warm-alabaster frosted glass surface aligned with MOUSTR-DESIGN-STANDARDS v1.3.
   Positioned bottom-left on desktop and above mobile bottom controls. */

#mo-consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 380px));
  min-width: 320px;
  z-index: 950;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 237, 0.90));
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(22, 20, 15, 0.12);
  border-radius: 18px;
  box-shadow:
    0 18px 44px rgba(22, 20, 15, 0.14),
    0 2px 8px rgba(22, 20, 15, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  color: #16140F;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

#mo-consent * {
  box-sizing: border-box;
}

.mo-c-in {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mo-c-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mo-c-kicker {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #244234;
}

.mo-c-close {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(22, 20, 15, 0.12);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3A3730;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.mo-c-close[hidden] {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .mo-c-close:hover {
    background: #FFFFFF;
    color: #16140F;
  }
}

.mo-c-close:focus-visible {
  outline: 2px solid #244234;
  outline-offset: 2px;
}

.mo-c-in p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #3A3730;
  text-wrap: pretty;
}

.mo-c-in a {
  color: #244234;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .mo-c-in a:hover {
    color: #16140F;
  }
}

.mo-c-in a:focus-visible {
  outline: 2px solid #244234;
  outline-offset: 2px;
  border-radius: 3px;
}

.mo-c-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mo-c-btns button {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  border: 1px solid rgba(22, 20, 15, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: #16140F;
  transition:
    background-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .mo-c-btns button:hover {
    background: #FFFFFF;
    border-color: rgba(22, 20, 15, 0.32);
  }
}

.mo-c-btns button:active {
  transform: scale(0.97);
}

.mo-c-btns button:focus-visible {
  outline: 2px solid #244234;
  outline-offset: 2px;
}

.mo-c-btns .mo-y {
  background: #244234;
  border-color: #244234;
  color: #F6F4EE;
}

@media (hover: hover) and (pointer: fine) {
  .mo-c-btns .mo-y:hover {
    background: #1D352A;
    border-color: #1D352A;
  }
}

.footer-cookie-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13.5px;
  line-height: inherit;
  color: var(--ink-2, #3A3730);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .footer-cookie-btn:hover {
    color: var(--ink, #16140F);
    text-decoration: underline;
  }
}

.footer-cookie-btn:focus-visible {
  outline: 2px solid #244234;
  outline-offset: 2px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  #mo-consent {
    left: 16px;
    right: 16px;
    bottom: 72px;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  #mo-consent {
    left: 12px;
    right: 12px;
    bottom: 72px;
  }
  .mo-c-in {
    padding: 16px;
  }
  .mo-c-btns button {
    min-height: 44px;
    width: 100%;
  }
  .footer-cols .footer-cookie-btn {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mo-consent,
  .mo-c-close,
  .mo-c-btns button {
    transition: none !important;
    transform: none !important;
  }
}

@media print {
  #mo-consent {
    display: none !important;
  }
}
