/* Privacy choices have equal visual weight. Load after site.css. */
.cookie-banner .cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  flex: 0 0 auto;
  width: min(485px, 48%);
  max-width: none;
  margin: 0;
}

.cookie-banner .cookie-actions .btn,
.cookie-banner .cookie-actions .btn.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid #b9c2c7;
  border-radius: 6px;
  background: #fff;
  color: #263138;
  font: 650 .74rem/1.5 Inter, "Segoe UI", Arial, sans-serif;
  text-align: center;
  white-space: normal;
  box-shadow: none;
  transform: none;
  transition: background-color .18s ease, border-color .18s ease;
}

.cookie-banner .cookie-actions .btn:last-child {
  grid-column: auto;
}

.cookie-banner .cookie-actions .btn:hover,
.cookie-banner .cookie-actions .btn.secondary:hover {
  border-color: #7d8b94;
  background: #f4f6f7;
  color: #263138;
  box-shadow: none;
  transform: none;
}

.cookie-banner .cookie-actions .btn:focus-visible,
.cookie-dialog .actions .btn:focus-visible {
  outline: 3px solid #1873aa;
  outline-offset: 3px;
}

/* The banner script maintains --iris-cookie-offset while it is visible. */
.site-footer .footer-bottom {
  padding-bottom: 90px;
}

.whatsapp-float {
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: calc(24px + var(--iris-cookie-offset, 0px) + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  max-width: calc(100vw - 40px);
  padding: 12px 19px 12px 15px;
  border: 1px solid #0d713b;
  border-radius: 999px;
  background: #107c41;
  color: #fff;
  box-shadow: 0 6px 24px #173d2725, 0 1px 3px #173d2718;
  font: 650 .8rem/1.4 Inter, "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.whatsapp-float svg {
  display: block;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: inherit;
}

.whatsapp-float > span {
  color: inherit;
  white-space: nowrap;
}

.whatsapp-float:hover {
  border-color: #095e30;
  background: #096d36;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px #173d2733, 0 1px 3px #173d2720;
  transform: none;
}

.whatsapp-float:focus-visible {
  outline: 3px solid #1873aa;
  outline-offset: 4px;
}

body.dialog-open .whatsapp-float {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .cookie-banner .cookie-actions {
    width: 100%;
    margin-top: 18px;
  }
}

@media (max-width: 550px) {
  .cookie-banner .cookie-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 16px;
  }

  .cookie-banner .cookie-actions .btn,
  .cookie-banner .cookie-actions .btn.secondary {
    min-height: 44px;
    padding: 10px 14px;
    font-size: .75rem;
  }

  .whatsapp-float {
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: calc(24px + var(--iris-cookie-offset, 0px) + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 12px;
  }

  .whatsapp-float > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .cookie-banner .cookie-actions .btn {
    transition: none;
    animation: none;
  }
}

@media print {
  .whatsapp-float,
  .cookie-banner {
    display: none !important;
  }
}
