/* Valtex — compact bottom cookie banner + mobile WhatsApp FAB */

.vtx-consent-root {
  z-index: 10050;
  font-family: inherit;
}

.vtx-consent-banner[hidden],
.vtx-consent-banner:not(.is-visible) {
  display: none !important;
}

.vtx-consent-banner.is-visible {
  display: block !important;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 10060;
  pointer-events: none;
}

.vtx-consent-banner__inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #0a1218;
  color: #f4f8f8;
  border: 1px solid rgba(0, 184, 184, 0.28);
  box-shadow: 0 12px 36px rgba(4, 12, 16, 0.4);
}

.vtx-consent-banner__title {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.vtx-consent-banner__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(244, 248, 248, 0.8);
}

.vtx-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.vtx-consent-banner__actions[hidden],
.vtx-consent-banner__prefs[hidden] {
  display: none !important;
}

.vtx-consent-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.vtx-consent-btn:focus-visible {
  outline: 2px solid #00ffff;
  outline-offset: 2px;
}

.vtx-consent-btn--primary {
  background: linear-gradient(135deg, #00b8b8 0%, #009a9a 100%);
  color: #041210;
}

.vtx-consent-btn--secondary {
  background: transparent;
  color: #f4f8f8;
  border-color: rgba(244, 248, 248, 0.45);
}

.vtx-consent-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 248, 248, 0.92);
  border-color: rgba(0, 184, 184, 0.35);
}

.vtx-consent-banner__prefs {
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vtx-consent-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.vtx-consent-cat__name {
  font-size: 0.84rem;
  font-weight: 650;
  color: #fff;
}

.vtx-consent-cat__name small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: rgba(244, 248, 248, 0.65);
  margin-top: 0.1rem;
}

.vtx-consent-pill {
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #00b8b8;
  border: 1px solid rgba(0, 184, 184, 0.4);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  white-space: nowrap;
}

.vtx-consent-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.vtx-consent-switch__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

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

.vtx-consent-switch__ui {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
}

.vtx-consent-switch__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.vtx-consent-switch input:checked + .vtx-consent-switch__ui {
  background: #009a9a;
  border-color: #00b8b8;
}

.vtx-consent-switch input:checked + .vtx-consent-switch__ui::after {
  transform: translateX(18px);
}

.vtx-consent-banner__prefs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

/* WhatsApp FAB — mobile only */
.vtx-wa-fab {
  display: none;
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(18px, calc(18px + env(safe-area-inset-bottom, 0px)));
  z-index: 10040;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(10, 18, 24, 0.35);
}

.vtx-wa-fab__icon {
  width: 28px;
  height: 28px;
  display: block;
}

.vtx-wa-fab.is-hidden-by-consent {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

@media (max-width: 767px) {
  .vtx-wa-fab {
    display: inline-flex;
  }

  .vtx-consent-banner__actions,
  .vtx-consent-banner__prefs-actions {
    flex-direction: column;
  }

  .vtx-consent-banner__actions .vtx-consent-btn,
  .vtx-consent-banner__prefs-actions .vtx-consent-btn {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .vtx-consent-banner.is-visible {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}
