/* Pods by Ter - shared architectural privacy controls */

:root {
  --pods-consent-ivory: #f5eee6;
  --pods-consent-espresso: #30231d;
  --pods-consent-bronze: #be8f63;
  --pods-consent-font: var(--pbt-font-family, "Qanelas", sans-serif);
}

.pods-consent,
.pods-consent * {
  box-sizing: border-box;
}

.pods-consent {
  position: fixed;
  left: clamp(20px, 2.4vw, 42px);
  right: auto;
  bottom: clamp(20px, 2.4vw, 36px);
  z-index: 10000;
  width: min(560px, calc(100vw - 64px));
  max-width: none;
  margin: 0;
  padding: clamp(24px, 2vw, 32px);
  overflow-wrap: anywhere;
  background: var(--pods-consent-espresso);
  border: 1px solid rgba(190, 143, 99, 0.34);
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(24, 14, 10, 0.18);
  color: var(--pods-consent-ivory);
  font-family: var(--pods-consent-font);
  text-align: left;
  isolation: isolate;
  animation: pods-consent-enter 300ms ease-out both;
}

.pods-consent[dir="rtl"] {
  text-align: right;
}

.pods-consent .pods-consent__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 15px;
  color: var(--pods-consent-bronze);
  font-family: var(--pods-consent-font);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pods-consent .pods-consent__title {
  margin: 0 0 13px;
  color: var(--pods-consent-ivory);
  font-family: var(--pods-consent-font);
  font-size: clamp(23px, 1.7vw, 28px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: inherit;
}

.pods-consent .pods-consent__copy {
  max-width: 52ch;
  margin: 0;
  color: rgba(245, 238, 230, 0.72);
  font-family: var(--pods-consent-font);
  font-size: clamp(13.5px, 0.85vw, 15px);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
  text-align: inherit;
}

.pods-consent .pods-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.pods-consent .pods-consent__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 46px;
  margin: 0;
  padding: 0 20px;
  background: #786456;
  border: 2px solid transparent;
  border-radius: 8px;
  color: #faf3e3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  font-family: var(--pods-consent-font);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.pods-consent .pods-consent__button--secondary {
  background: #786456;
  border-color: transparent;
  color: #faf3e3;
}

.pods-consent .pods-consent__button[aria-pressed="true"] {
  box-shadow: inset 0 -3px 0 var(--pods-consent-bronze);
}

.pods-consent .pods-consent__button--secondary[aria-pressed="true"] {
  border-color: var(--pods-consent-bronze);
}

.pods-consent .pods-consent__button:hover {
  transform: translateY(-1px);
  background: #fff8ed;
  border-color: #786456;
  color: #786456;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.pods-consent .pods-consent__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: rgba(245, 238, 230, 0.78);
  font-family: var(--pods-consent-font);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.pods-consent .pods-consent__link:hover {
  color: var(--pods-consent-ivory);
}

.pods-consent .pods-consent__button:focus-visible,
.pods-consent .pods-consent__link:focus-visible {
  outline: 2px solid var(--pods-consent-bronze);
  outline-offset: 3px;
}

.pbt-privacy-page .pods-consent-manage.pods-consent-manage {
  appearance: none;
  min-height: 46px;
  margin-top: 16px;
  background: transparent;
  border: 1px solid rgba(48, 35, 29, 0.28);
  border-radius: 0;
  color: var(--pods-consent-espresso);
  font-family: var(--pods-consent-font);
  cursor: pointer;
}

.pbt-privacy-page .pods-consent-manage.pods-consent-manage:hover {
  border-color: var(--pods-consent-bronze);
}

.pbt-privacy-page .pods-consent-manage.pods-consent-manage:focus-visible {
  outline: 2px solid var(--pods-consent-bronze);
  outline-offset: 3px;
}

.pods-consent-status {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.offcanvas-open .pods-consent,
html.pods-custom-popup-open .pods-consent {
  visibility: hidden;
  pointer-events: none;
}

html.pods-consent-open .pbt-whatsapp-pulse__text,
html.pods-consent-open #hubspot-messages-iframe-container {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.pods-consent-open .pods-consent-manage {
  visibility: hidden;
  pointer-events: none;
}

@keyframes pods-consent-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .pods-consent {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 22px 20px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .pods-consent .pods-consent__title {
    font-size: 22px;
  }

  .pods-consent .pods-consent__copy {
    font-size: 14px;
  }

  .pods-consent .pods-consent__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
  }

  .pods-consent .pods-consent__button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .pods-consent .pods-consent__link {
    align-self: flex-start;
    min-height: 44px;
  }

  html.pods-consent-open .pbt-whatsapp-pulse {
    bottom: calc(var(--pods-consent-panel-height, 0px) + max(24px, calc(env(safe-area-inset-bottom) + 12px))) !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  .pods-consent {
    animation: none;
  }

  .pods-consent .pods-consent__button,
  .pods-consent .pods-consent__link {
    transition: none;
  }
}
