/* Author: Dr. Babak Sorkhpour with AI assistance
 * Release 0.7.132 consent unit. Consent window (non-modal dialog) and the footer "Privacy settings" control.
 * Same-origin stylesheet only. Accept all, Reject all and Choose share ONE rule: equal size, weight, colour and place. */
.cws-consent {
  position: fixed;
  z-index: 70;
  right: 0;
  bottom: 12px;
  left: 0;
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: 40rem;
  max-height: 80vh;
  margin-inline: auto;
  padding: 1rem;
  overflow: auto;
  border: 1px solid var(--border, #365b70);
  border-radius: 0.5rem;
  background: var(--surface, #ffffff);
  color: var(--text, #0a1d3a);
  box-shadow: 0 10px 28px rgba(10, 29, 58, 0.22);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.cws-consent[hidden],
.cws-consent [hidden] {
  display: none !important;
}

@media (min-width: 40rem) {
  .cws-consent {
    bottom: 1.25rem;
  }
}

.cws-consent *,
.cws-consent *::before,
.cws-consent *::after {
  box-sizing: border-box;
}

.cws-consent .cws-consent__title {
  margin: 0 0 0.5rem;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.cws-consent .cws-consent__title:focus {
  outline: none;
}

.cws-consent .cws-consent__title:focus-visible {
  outline: 2px solid var(--accent, #65d8ce);
  outline-offset: 2px;
}

.cws-consent .cws-consent__text,
.cws-consent .cws-consent__desc,
.cws-consent .cws-consent__record,
.cws-consent .cws-consent__links {
  margin: 0 0 0.75rem;
  color: inherit;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cws-consent .cws-consent__row {
  margin: 0 0 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border, #365b70);
}

.cws-consent .cws-consent__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 700;
}

.cws-consent .cws-consent__check {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
}

.cws-consent .cws-consent__desc {
  margin: 0;
}

.cws-consent .cws-consent__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.cws-consent .cws-consent__btn {
  flex: 1 1 9rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--text, #0a1d3a);
  border-radius: 0.375rem;
  background: var(--surface, #ffffff);
  color: var(--text, #0a1d3a);
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.cws-consent .cws-consent__btn:hover {
  background: var(--surface-soft, #e9f1f6);
}

.cws-consent .cws-consent__closep {
  margin: 0;
}

.cws-consent .cws-consent__closep .cws-consent__btn {
  flex: none;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cws-consent .cws-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.cws-consent .cws-consent__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.cws-consent .cws-consent__btn:focus-visible,
.cws-consent .cws-consent__check:focus-visible,
.cws-consent .cws-consent__links a:focus-visible {
  outline: 3px solid var(--accent, #65d8ce);
  outline-offset: 2px;
}

.cws-consent-open-wrap {
  margin: 0.75rem 0 0;
}

.cws-consent-open {
  min-height: 44px;
  padding: 0.25rem 0.5rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.cws-consent-open:focus-visible {
  outline: 3px solid var(--accent, #65d8ce);
  outline-offset: 2px;
}
