/* FabricAir Cookie Consent. Colours from the theme: $accentDark #1D4154, $light #D5E4EC, $dark #2D2D2D.
   Buttons as on the Cookiebot banner: "Continue without optional cookies" and "Customize" outlined,
   "Accept" filled, all the same size and on the first screen. */

.fa-cc {
  --fa-cc-dark: #1D4154;
  --fa-cc-dark-hover: #335465;
  --fa-cc-light: #D5E4EC;
  --fa-cc-text: #2D2D2D;
  --fa-cc-muted: #5F6B72;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--fa-cc-text);
  font-size: 15px;
  line-height: 1.5;
}

.fa-cc[hidden],
.fa-cc [hidden] {
  display: none !important;
}

.fa-cc *,
.fa-cc *::before,
.fa-cc *::after {
  box-sizing: border-box;
}

.fa-cc-title {
  margin: 0 0 6px;
  font-family: 'Poppins-SemiBold', 'Poppins', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--fa-cc-dark);
}

.fa-cc-message {
  margin: 0;
  font-size: 14px;
}

.fa-cc-privacy {
  color: var(--fa-cc-dark);
  text-decoration: underline;
  white-space: nowrap;
}

/* ---- banner ---- */

.fa-cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  background: #fff;
  border-top: 4px solid var(--fa-cc-dark);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(29, 65, 84, .25);
}

.fa-cc-banner__text {
  flex: 0 0 auto;
}

/* Buttons in a row under the text, sharing its width equally (as on the Cookiebot banner). */
.fa-cc-banner .fa-cc-btn {
  flex: 1 1 0;
}

.fa-cc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.fa-cc-btn {
  appearance: none;
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--fa-cc-dark);
  border-radius: 4px;
  background: var(--fa-cc-dark);
  color: #fff;
  font: inherit;
  font-family: 'Poppins-SemiBold', 'Poppins', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}

.fa-cc-btn:hover {
  background: var(--fa-cc-dark-hover);
  border-color: var(--fa-cc-dark-hover);
}

.fa-cc-btn--link {
  background: #fff;
  color: #141414;
}

.fa-cc-chevron {
  flex: 0 0 auto;
}

.fa-cc-btn--link:hover {
  background: var(--fa-cc-light);
  border-color: var(--fa-cc-dark);
}

.fa-cc-btn:focus-visible,
.fa-cc-close:focus-visible,
.fa-cc-reopen:focus-visible,
.fa-cc-privacy:focus-visible,
.fa-cc-switch input:focus-visible + .fa-cc-switch__track {
  outline: 3px solid #E53C46;
  outline-offset: 2px;
}

/* ---- settings dialog ---- */

.fa-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(29, 65, 84, .55);
}

.fa-cc-dialog {
  position: fixed;
  z-index: 2147483002;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .3);
  outline: none;
}

.fa-cc-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
  border-bottom: 1px solid #E5E5E5;
}

.fa-cc-close {
  appearance: none;
  width: 36px;
  height: 36px;
  margin: -6px -8px 0 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--fa-cc-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fa-cc-close:hover {
  background: var(--fa-cc-light);
}

.fa-cc-dialog__body {
  overflow-y: auto;
  padding: 16px 24px;
}

.fa-cc-dialog .fa-cc-actions {
  padding: 16px 24px 20px;
  border-top: 1px solid #E5E5E5;
}

.fa-cc-cat {
  padding: 14px 0;
  border-bottom: 1px solid #EEF4F7;
}

.fa-cc-cat:last-of-type {
  border-bottom: 0;
}

.fa-cc-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fa-cc-cat__label {
  font-family: 'Poppins-SemiBold', 'Poppins', Arial, sans-serif;
  font-weight: 600;
  color: var(--fa-cc-dark);
  cursor: pointer;
}

.fa-cc-cat__desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--fa-cc-muted);
}

.fa-cc-always {
  font-size: 13px;
  color: var(--fa-cc-muted);
}

.fa-cc-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
}

.fa-cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.fa-cc-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: #A5B3BB;
  transition: background .15s;
}

.fa-cc-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s;
}

.fa-cc-switch input:checked + .fa-cc-switch__track {
  background: var(--fa-cc-dark);
}

.fa-cc-switch input:checked + .fa-cc-switch__track::after {
  transform: translateX(20px);
}

/* Cookie list per category (like Cookiebot's "Details" tab). */
.fa-cc-cookies {
  margin: 8px 0 0;
  font-size: 13px;
}

.fa-cc-cookies summary {
  display: inline-block;
  color: var(--fa-cc-dark);
  text-decoration: underline;
  cursor: pointer;
}

.fa-cc-cookies summary::-webkit-details-marker {
  display: none;
}

.fa-cc-cookies summary::after {
  content: ' \25BE';
}

.fa-cc-cookies[open] summary::after {
  content: ' \25B4';
}

.fa-cc-cookies summary:focus-visible {
  outline: 3px solid #E53C46;
  outline-offset: 2px;
}

.fa-cc-cookies ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.fa-cc-cookies li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 8px 10px;
  background: #F4F8FA;
  border-radius: 4px;
}

.fa-cc-cookies li + li {
  margin-top: 6px;
}

.fa-cc-cookies code {
  font-size: 12px;
  font-weight: 600;
  color: var(--fa-cc-dark);
  background: none;
  padding: 0;
  word-break: break-word;
}

.fa-cc-cookies__meta,
.fa-cc-cookies__none {
  color: var(--fa-cc-muted);
  font-size: 12px;
}

.fa-cc-cookies__none {
  margin: 6px 0 0;
}

.fa-cc-about {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #EEF4F7;
  font-size: 13px;
  color: var(--fa-cc-muted);
}

.fa-cc-about p {
  margin: 0 0 10px;
}

.fa-cc-about__title {
  margin: 0 0 8px;
  font-family: 'Poppins-SemiBold', 'Poppins', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--fa-cc-dark);
}

/* Cookiebot's About text comes as paragraphs separated by blank lines. */
.fa-cc-about__intro {
  white-space: pre-line;
}

.fa-cc-id {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--fa-cc-muted);
  word-break: break-all;
}

/* ---- re-open button ---- */

.fa-cc-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482999;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fa-cc-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 65, 84, .3);
  cursor: pointer;
  opacity: .85;
}

.fa-cc-reopen:hover {
  opacity: 1;
}

@media (max-width: 860px) {
  .fa-cc-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 16px;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
  }

  .fa-cc-actions {
    justify-content: stretch;
  }

  .fa-cc-btn,
  .fa-cc-banner .fa-cc-btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fa-cc-switch__track,
  .fa-cc-switch__track::after {
    transition: none;
  }
}

@media print {
  .fa-cc {
    display: none !important;
  }
}
