.marketing-consent [hidden],
.marketing-consent[hidden] { display: none !important; }

[data-consent-temporary-copy] { display: none; }
.marketing-consent-paused [data-open-marketing-consent],
.marketing-consent-paused [data-consent-notice-copy] { display: none !important; }
.marketing-consent-paused [data-consent-temporary-copy] { display: block; }

.marketing-consent {
  --consent-teal: #008b88;
  --consent-teal-dark: #006f6c;
  --consent-ink: #12383b;
  box-sizing: border-box;
  position: fixed;
  z-index: 990;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid #d5e9e2;
  border-radius: 22px;
  background: #fbfcf8;
  color: var(--consent-ink);
  box-shadow: 0 14px 40px rgba(18, 56, 59, .18), 0 2px 8px rgba(18, 56, 59, .06);
  font: 400 14px/1.5 Inter, 'Noto Sans Georgian', system-ui, sans-serif;
  overscroll-behavior: contain;
}

.marketing-consent__title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--consent-ink);
  font: 700 20px/1.3 Inter, 'Noto Sans Georgian', system-ui, sans-serif;
}
.marketing-consent__cookie { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: #f8ecd8; font-size: 26px; line-height: 1; }
.marketing-consent__title > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.marketing-consent__text { margin: 0 0 16px; color: #4e6967; font-size: 13px; line-height: 1.55; }
.marketing-consent__text a { color: var(--consent-teal-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.marketing-consent__accept {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--consent-teal), var(--consent-teal-dark));
  color: #fff;
  font: 700 17px/1.3 Inter, 'Noto Sans Georgian', system-ui, sans-serif;
  box-shadow: 0 8px 18px rgba(0, 111, 108, .16);
  cursor: pointer;
  transition: background .18s ease;
}
.marketing-consent__accept:hover { background: var(--consent-teal-dark); }
.marketing-consent__manage {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 8px 0 -8px;
  padding: 8px;
  border: 0;
  background: none;
  color: #526e68;
  font: 500 13px/1.4 Inter, 'Noto Sans Georgian', system-ui, sans-serif;
  cursor: pointer;
}
.marketing-consent__manage:hover { color: var(--consent-teal-dark); }
.marketing-consent__settings { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.marketing-consent__settings legend { width: 100%; margin: 0 0 8px; padding: 0; text-align: left; font-size: 13px; color: #4e6967; }
.marketing-consent__category { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-weight: 650; cursor: pointer; }
.marketing-consent__category input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--consent-teal-dark); cursor: pointer; }
.marketing-consent__category:has(input:disabled) { cursor: default; }
.marketing-consent__category input:disabled { cursor: default; }
.marketing-consent a:focus-visible,
.marketing-consent button:focus-visible,
.marketing-consent input:focus-visible,
[data-open-marketing-consent]:focus-visible { outline: 3px solid #087c71; outline-offset: 3px; }

[data-open-marketing-consent] { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

body:has(.service-sticky.is-visible) .marketing-consent { bottom: calc(104px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 124px - env(safe-area-inset-bottom)); }

@media (min-width: 701px) {
  body:has(.scroll-to-top.visible) .marketing-consent { right: max(88px, env(safe-area-inset-right)); }
}

@media (max-width: 700px) {
  .marketing-consent {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
    padding: 18px;
    border-radius: 20px;
  }
  .marketing-consent__title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-consent__accept { transition: none; }
}
