.cookie-notice[hidden],
.cookie-notice [hidden],
[data-cookie-settings][hidden] {
  display: none !important;
}

.cookie-notice {
  position: fixed;
  inset-inline: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 26px;
  width: min(960px, calc(100% - 24px));
  max-height: min(420px, calc(100vh - 24px));
  margin-inline: auto;
  padding: 20px 48px 20px 22px;
  overflow: auto;
  border: 1px solid var(--line, #dedcd6);
  border-radius: 12px;
  background: var(--paper, #faf9f6);
  color: var(--ink, #242424);
  box-shadow: 0 8px 36px rgb(36 36 36 / 18%);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-notice h2 {
  margin: 0 0 5px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
}

.cookie-notice p {
  margin: 0;
  color: var(--text, #555);
}

.cookie-notice .cookie-notice-details {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice .cookie-notice-current {
  margin-top: 6px;
  font-weight: 700;
}

.cookie-notice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cookie-notice-choice,
.cookie-notice-close,
[data-cookie-settings] {
  font: inherit;
  cursor: pointer;
}

.cookie-notice-choice {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--ink, #242424);
  border-radius: 6px;
  background: transparent;
  color: var(--ink, #242424);
  font-weight: 750;
  line-height: 1.25;
}

.cookie-notice-choice:hover,
.cookie-notice-close:hover {
  background: var(--stone, #f1efeb);
}

.cookie-notice-choice:disabled {
  cursor: wait;
  opacity: .55;
}

.cookie-notice-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink, #242424);
  font-size: 23px;
  line-height: 1;
}

.cookie-notice .cookie-notice-status {
  grid-column: 1 / -1;
  margin: 0;
}

[data-cookie-settings] {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer [data-cookie-settings]:focus-visible {
  outline-color: var(--paper, #faf9f6);
}

@media (max-width: 680px) {
  .cookie-notice {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 16px 14px;
  }

  .cookie-notice h2 {
    padding-right: 32px;
  }

  .cookie-notice-choice {
    padding-inline: 6px;
  }
}

/* RESIDION: discreet WhatsApp link without external tracking widgets */
.whatsapp-contact[hidden] { display: none !important; }
.whatsapp-contact {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 119;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #484640;
  border-radius: 50%;
  background: #242424;
  color: #faf9f6;
  box-shadow: 0 5px 22px rgba(36, 36, 36, .18);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.whatsapp-contact:hover {
  background: #484640;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(36, 36, 36, .22);
}
.whatsapp-contact:focus-visible { outline: 3px solid #8e897e; outline-offset: 4px; }
.whatsapp-contact svg { display: block; width: 28px; height: 28px; fill: currentColor; }
@media (max-width: 680px) {
  .whatsapp-contact { right: 15px; bottom: max(15px, env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .whatsapp-contact svg { width: 27px; height: 27px; }
}
