/* Scoped consent controls. Keep this sheet after the site's existing styles. */
.cookie-consent.fvpn-consent {
  position: relative;
  inset: auto;
  z-index: auto;
  display: block;
  width: auto;
  margin: 0;
  padding: 16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
  border: 0;
  border-block-start: 3px solid #6c4dff;
  border-block-end: 1px solid #8a70ff;
  background: #1a1a2e;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
  text-align: start;
  font: 400 0.9375rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  scroll-margin-block-start: 6rem;
}

.cookie-consent.fvpn-consent[hidden] {
  display: none !important;
}

.fvpn-consent .cookie-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1200px;
  margin-inline: auto;
}

.fvpn-consent .fvpn-consent-message {
  flex: 1 1 28rem;
  min-width: 0;
}

.fvpn-consent .fvpn-consent-title {
  position: static;
  inset: auto;
  margin: 0 0 4px;
  padding: 0;
  color: #fff;
  font: 700 1rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: start;
  transform: none;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.fvpn-consent .fvpn-consent-title::after {
  content: none;
}

.fvpn-consent .cookie-content .fvpn-consent-text {
  min-width: 0;
  margin: 0;
  color: #e0e0ef;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.fvpn-consent .fvpn-consent-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.fvpn-consent .cookie-btn {
  flex: 1 1 auto;
  width: auto;
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  margin: 0;
  padding: 10px 18px;
  border: 2px solid #ff8a00;
  border-radius: 8px;
  background: #ff8a00;
  color: #1a1a2e;
  box-shadow: none;
  font: 700 0.875rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
  transition: none;
}

.fvpn-consent .fvpn-consent-reject {
  border-color: #8a70ff;
  background: #6c4dff;
  color: #fff;
}

.fvpn-consent .cookie-btn:hover {
  filter: brightness(1.08);
  box-shadow: none;
  transform: none;
}

.fvpn-privacy-choices {
  display: inline-block;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  margin: 4px 0;
  padding: 8px 12px;
  border: 1px solid #8a70ff;
  border-radius: 8px;
  background: #1a1a2e;
  color: #fff;
  font: 600 0.875rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: start;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}

.fvpn-privacy-choices:hover {
  border-color: #ff8a00;
}

.fvpn-consent .cookie-btn:focus,
.fvpn-privacy-choices:focus {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.fvpn-consent-footer {
  padding: 12px 16px;
  background: #1a1a2e;
  text-align: start;
}

@media (max-width: 600px) {
  .fvpn-consent .fvpn-consent-actions {
    flex-basis: 100%;
  }

  .fvpn-consent .cookie-btn {
    flex: 1 1 10rem;
  }
}

@media (forced-colors: active) {
  .fvpn-consent .cookie-btn,
  .fvpn-privacy-choices {
    border-color: ButtonText;
  }
}

@media print {
  .cookie-consent.fvpn-consent,
  .fvpn-privacy-choices,
  .fvpn-consent-footer {
    display: none !important;
  }
}
