body.privacy-consent-open {
  overflow: hidden;
}

body.privacy-consent-open .floating-whatsapp {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.privacy-consent-overlay,
.privacy-consent-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  padding: 20px;
  background: rgba(3, 15, 28, 0.58);
  backdrop-filter: blur(6px);
}

.privacy-consent-overlay {
  align-items: end;
}

.privacy-consent-modal-overlay {
  z-index: 10010;
  place-items: center;
  overflow-y: auto;
}

.privacy-consent-overlay[hidden],
.privacy-consent-modal-overlay[hidden],
.privacy-consent-trigger[hidden] {
  display: none !important;
}

.privacy-consent-banner,
.privacy-consent-modal {
  width: min(1120px, 100%);
  margin-inline: auto;
  border: 1px solid rgba(153, 184, 208, 0.52);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #f4f8fb 100%);
  box-shadow: 0 28px 80px rgba(3, 15, 28, 0.32);
  color: #10243a;
}

.privacy-consent-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.privacy-consent-banner__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.privacy-consent-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #0f2d4a, #1a527a);
  box-shadow: 0 10px 24px rgba(15, 45, 74, 0.2);
  color: #fff;
}

.privacy-consent-icon svg {
  width: 25px;
  height: 25px;
}

.privacy-consent-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #147767;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-consent-banner h2,
.privacy-consent-modal h2,
.privacy-consent-category h3 {
  color: #0d2238;
}

.privacy-consent-banner h2,
.privacy-consent-modal h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.privacy-consent-banner p,
.privacy-consent-modal p {
  color: #536478;
}

.privacy-consent-banner__main p {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.privacy-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.privacy-consent-links a,
.privacy-consent-note a {
  color: #0f517a;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy-consent-actions,
.privacy-consent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.privacy-consent-actions {
  max-width: 430px;
}

.privacy-consent-button,
.privacy-consent-close,
.privacy-consent-trigger,
.footer-cookie-preferences {
  font: inherit;
}

.privacy-consent-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 16px;
  font-size: 0.79rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.privacy-consent-button:hover,
.privacy-consent-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.privacy-consent-button:focus-visible,
.privacy-consent-close:focus-visible,
.privacy-consent-trigger:focus-visible,
.footer-cookie-preferences:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.42);
  outline-offset: 3px;
}

.privacy-consent-button--accept {
  background: linear-gradient(135deg, #147767, #0f5f55);
  box-shadow: 0 10px 22px rgba(15, 95, 85, 0.24);
  color: #fff;
}

.privacy-consent-button--accept:hover,
.privacy-consent-button--accept:focus-visible {
  box-shadow: 0 14px 28px rgba(15, 95, 85, 0.32);
}

.privacy-consent-button--reject {
  border-color: #244d70;
  background: #fff;
  color: #163b5d;
}

.privacy-consent-button--reject:hover,
.privacy-consent-button--reject:focus-visible {
  background: #edf4f8;
}

.privacy-consent-button--ghost {
  border-color: rgba(15, 45, 74, 0.18);
  background: #e9f0f5;
  color: #173a59;
}

.privacy-consent-modal {
  max-width: 720px;
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 26px;
}

.privacy-consent-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.privacy-consent-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(15, 45, 74, 0.16);
  border-radius: 12px;
  background: #edf3f7;
  color: #173a59;
  font-size: 1.55rem;
  line-height: 1;
}

.privacy-consent-modal__intro {
  margin: 12px 0 20px;
  font-size: 0.87rem;
  line-height: 1.55;
}

.privacy-consent-categories {
  display: grid;
  gap: 10px;
}

.privacy-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(15, 45, 74, 0.13);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.privacy-consent-category h3 {
  margin: 0;
  font-size: 0.96rem;
}

.privacy-consent-category p {
  margin: 5px 0 0;
  font-size: 0.77rem;
  line-height: 1.5;
}

.privacy-consent-category code {
  border-radius: 5px;
  background: #edf3f7;
  color: #173a59;
  padding: 1px 4px;
}

.privacy-consent-switch {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 5px;
  cursor: pointer;
}

.privacy-consent-switch__label {
  color: #617184;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

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

.privacy-consent-switch__control {
  position: relative;
  display: block;
  width: 48px;
  height: 27px;
  border: 1px solid #a6b4c0;
  border-radius: 999px;
  background: #dce4ea;
  transition: background 180ms ease, border-color 180ms ease;
}

.privacy-consent-switch__control::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 45, 74, 0.24);
  content: "";
  transition: transform 180ms ease;
}

.privacy-consent-switch input:checked + .privacy-consent-switch__control {
  border-color: #147767;
  background: #147767;
}

.privacy-consent-switch input:checked + .privacy-consent-switch__control::after {
  transform: translateX(21px);
}

.privacy-consent-switch input:focus-visible + .privacy-consent-switch__control {
  outline: 3px solid rgba(37, 211, 102, 0.42);
  outline-offset: 3px;
}

.privacy-consent-switch input:disabled + .privacy-consent-switch__control {
  border-color: #a6b4c0;
  background: #dce4ea;
  opacity: 0.82;
  cursor: not-allowed;
}

.privacy-consent-switch input:checked:disabled + .privacy-consent-switch__control {
  border-color: #7ca696;
  background: #5b8f7d;
}

.privacy-consent-note {
  margin: 15px 0 20px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.privacy-consent-trigger {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 9000;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, #0f2d4a, #164e72);
  box-shadow: 0 12px 28px rgba(3, 15, 28, 0.25);
  color: #fff;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.privacy-consent-trigger svg {
  width: 19px;
  height: 19px;
}

.privacy-consent-trigger:hover,
.privacy-consent-trigger:focus-visible {
  box-shadow: 0 16px 34px rgba(3, 15, 28, 0.32);
  transform: translateY(-2px);
}

.footer-cookie-preferences {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy-consent-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .privacy-consent-banner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .privacy-consent-actions {
    max-width: none;
    justify-content: stretch;
  }

  .privacy-consent-actions .privacy-consent-button {
    flex: 1 1 150px;
  }
}

@media (max-width: 580px) {
  .privacy-consent-overlay,
  .privacy-consent-modal-overlay {
    align-items: end;
    padding: 10px;
  }

  .privacy-consent-banner,
  .privacy-consent-modal {
    border-radius: 20px;
    padding: 18px;
  }

  .privacy-consent-banner {
    max-height: calc(100svh - 20px);
    overflow-y: auto;
  }

  .privacy-consent-banner__main {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .privacy-consent-icon {
    width: 42px;
    height: 42px;
  }

  .privacy-consent-actions,
  .privacy-consent-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .privacy-consent-category {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .privacy-consent-modal {
    max-height: calc(100svh - 20px);
  }

  .privacy-consent-trigger {
    bottom: 78px;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-consent-button,
  .privacy-consent-close,
  .privacy-consent-trigger,
  .privacy-consent-switch__control,
  .privacy-consent-switch__control::after {
    transition: none !important;
  }
}
