/* ==================================================================
   Cookie Information banner - complete styling (LGT-655)
   This file is the SINGLE source of truth for the banner's CSS.
   The Cookie Information dashboard keeps: template HTML + JS, texts,
   the cookie inventory and consent settings. Its CSS field is empty
   on purpose. See docs/cookie-banner-layout-handover.md.

   Structure:
   - SECTION A: the vendor template CSS, verbatim (do not edit).
   - SECTION B: LGT refinements, higher-specificity overrides of A.
   ================================================================== */

/* ==================================================================
   SECTION A — Vendor template CSS, verbatim.
   This is the Cookie Information "Overlay v2 - GCM v2 (Landscape /
   Bottom variant)" template CSS that previously lived in the CI
   dashboard's CSS field (backed up in LGT-655, comment of 2026-08-25).
   The dashboard CSS field is now EMPTY on purpose: all banner styling
   ships from this file. Keep this section verbatim so it can be
   diffed against future vendor template updates; put LGT changes in
   SECTION B below instead.
   ================================================================== */

/**
    Template name: Overlay v2 - Google Consent Mode v2 (Landscape / Bottom variant)
    URI: https://cookieinformation.com
    Version 1.2.1

    Changes vs. the original overlay template:
    - #coiOverlay docks to the bottom of the viewport instead of centering
    - .coi-banner__wrapper is full-width instead of a 550px centered card
    - .coi-banner__page / .coi-banner__summary / .coi-banner__page-footer run
      as a single horizontal row on desktop (>900px)
    - Below 900px it automatically falls back to the original stacked layout
      (the existing @media rules at the bottom already cover mobile)
**/

.coi-banner-properties, .coi-renew-btn-properties {
  /*START OF CUSTOM PROPERTIES*/
  --popup-overlay-opacity: 0.35;
  --popup-overlay-blur: 0px;
  --popup-bg-color--primary: #FFFFFF;
  --popup-bg-color--secondary: #F4F7F7;
  --popup-text-color: 55, 53, 48;
  --popup-link-color: #6ec281;
  --popup-border-width: 0px;
  --popup-border-color: unset;
  --popup-border-radius: 0px;
  --popup-font-family: system-ui, -apple-system, Roboto, sans-serif;
  --popup-font-size: 16px;
  --popup-link-decoration: underline;
  --popup-button-color: #1b6057;
  --popup-button-font-color: #FFFFFF;
  --popup-button-color--hover: #910944;
  --popup-button-font-color--hover: #FFFFFF;
  --popup-button-border-radius: 10px;
  --popup-toggle-bg-color--active: #2C622C;
  --popup-toggle-bg-color--inactive: #7D8A89;
  --popup-toggle-icon-color: #FFFFFF;
  --popup-toggle-border-radius: 100px;
/*END OF CUSTOM PROPERTIES*/
}

.noScroll,
.noScroll body {
  overflow: hidden !important;
  position: relative;
  height: 100%;
}

/* POPUP APPEARANCE STYLING (bottom bar, full width) */

#coiOverlay {
  background: rgba(0, 0, 0, var(--popup-overlay-opacity));
  display: none;
  position: fixed;
  box-sizing: border-box;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: flex-end;
  z-index: 99999999999;
  padding: 0;
  font-family: var(--popup-font-family);
  font-size: var(--popup-font-size);
  backdrop-filter: blur(var(--popup-overlay-blur));

  button {
    font-family: var(--popup-font-family);
    font-size: var(--popup-font-size);
  }

  button:not(:disabled) {
    cursor: pointer;
  }

  h2 {
    font-weight: 500;
  }
}

#coi-banner-wrapper * {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  white-space: normal;
  letter-spacing: 0.15px;
}

#coi-banner-wrapper *:not(.coi-banner__accept:not(:disabled),
.coi-banner__decline:not(:disabled),
.coi-banner__lastpage:not(:disabled)) {
  line-height: 1.5;
}

.coi-banner__wrapper {
  width: 100%;
  max-width: 100%;
  max-height: 60vh;
  background: var(--popup-bg-color--primary);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: var(--popup-border-radius);
  border: var(--popup-border-width) solid var(--popup-border-color);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.coi-banner__wrapper::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 5px;
  z-index: 11000;
}

.coi-banner__wrapper::-webkit-scrollbar-track {
  background-color: transparent;
}

.coi-banner__wrapper::-webkit-scrollbar {
  width: 6px;
  background-color: #f5f5f5;
  border-radius: 2px;
}

/* POPUP CONTROLS STYLING */

#coi-banner-wrapper *:focus-visible,
.coi-checkboxes input:focus-visible + .checkbox-toggle,
#Coi-Renew:focus-visible {
  outline-offset: 2px !important;
  outline: 2px solid black;
}

.coi-checkboxes input:focus-visible + .checkbox-toggle {
  box-sizing: content-box !important;
}

#coiConsentBannerCategoriesWrapper:focus-visible {
  outline-offset: -2px !important;
}

.coi-banner__wrapper:focus {
  outline: none !important;
}

/* BRANDING STYLING */

#coi-banner-wrapper .coi-banner__branding {
  font-size: 0.625em;
  color: rgb(var(--popup-text-color));
  text-align: right;
  letter-spacing: 0.4px;
  display: flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
}

.coi-banner__branding-wrapper {
  display: flex;
  min-height: 0;
  justify-content: flex-end;
  align-items: center;
  flex-direction: row;
  padding: 0 0 0 20px;
  position: static;
  background: transparent;
  flex-shrink: 0;
  border-left: 1px solid rgba(var(--popup-text-color), 0.15);
}

.coi-banner__branding-wrapper img {
  max-width: 100%;
}

.coi-banner__branding-wrapper .coi-banner__branding a {
  display: block;
  letter-spacing: 0.4px;
  color: rgb(var(--popup-text-color)) !important;
  text-decoration: none !important;
  font-weight: bold;
}

/* RENEW BUTTON STYLING */

#Coi-Renew {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  background: #fff;
  z-index: 99999999999;
  padding: 10px;
  border: 0;
  cursor: pointer;
  border-top-right-radius: 50%;
  transform: scale(0.7);
  transform-origin: bottom left;
  transition: all 0.3s ease;
}

#Coi-Renew:hover {
  transform: scale(1);
}

#Coi-Renew svg {
  width: 100%;
}

#Coi-Renew .renew_path {
  fill: var(--popup-button-color);
}

/* COOKIES LIST STYLING */

.coi-purpose-list {
  display: inline;
  list-style: none;
  padding: 0;
}

.coi-purpose-list li {
  display: inline;
}

.coi-purpose-list li::after {
  content: ", ";
}

.coi-purpose-list li:last-child::after {
  content: "\a";
  white-space: pre;
}

/* COMMON ELEMENTS STYLING */

.coi-banner__page {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  display: flex;
  width: 100%;
  padding: 14px 28px;
  gap: 24px;
  color: rgb(var(--popup-text-color));
}

#coi-banner-categories {
  display: none;
}

.coi-banner__summary {
  flex: 2 1 320px;
  min-width: 0;
  padding: 0;
  width: auto;
}

.coi-banner__text {
  display: flex;
  flex-direction: column;
}

.coi-banner__maintext {
  font-weight: 400;
  white-space: pre-line !important;
}

.coi-banner__cookiedeclaration .coi-banner__maintext {
  white-space: normal !important;
}

.coi-banner__headline {
  display: block;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 4px;
}

.coi-banner__wrapper ul,
.coi-banner__wrapper ol {
  list-style-position: inside;
  list-style-type: none;
  margin-bottom: 10px;
  padding-left: 0;
}

#coiPage-3 a {
  padding: 1px 0;
    display: inline-flex;
    align-items: center;
}

#coiPage-3 ul a {
  margin: 4px 0;
}

#coi-details-toggle {
  color: rgb(var(--popup-text-color));
  border: 0;
  padding: 0;
  background: none;
  text-decoration: var(--popup-link-decoration);
  cursor: pointer;
  font-size: 1em;
}

#updateButton {
  display: none;
}

.cookiedeclaration_wrapper {
  overflow-x: hidden;
}

svg.coi-external-link__icon {
    width: calc(var(--popup-font-size) + 1px);
    height: calc(var(--popup-font-size) + 1px);
    margin-left: 4px;
    margin-bottom: 2px;
    vertical-align: middle;
}

/* BUTTONS STYLING */

button.coi-banner__privacy-policy {
  display: inline;
  font-weight: 700;
  color: var(--popup-link-color);
  padding: 0;
  background-color: transparent;
  border: none;
  text-decoration: var(--popup-link-decoration);
  text-align: left;
}

button.coi-banner__privacy-policy-return {
  display: block;
  color: var(--popup-link-color);
  padding: 0;
  background-color: transparent;
  border: none;
  text-decoration: var(--popup-link-decoration);
  text-align: left;

    svg {
      width: calc(var(--popup-font-size) + 1px);
      height: calc(var(--popup-font-size) + 1px);
      margin-right: 4px;
      margin-bottom: 2px;
      vertical-align: middle;
    }
}

/* COOKIE POLICY PAGE STYLING */

.cookiedeclaration_wrapper h2:not(:first-child) {
  margin-top: 20px;
}

.cookiedeclaration_wrapper p {
  margin: 8px 0;
}

.cookiedeclaration_wrapper p {
  font-size: 1em;
}

.cookiedeclaration_wrapper h2 {
  font-size: 1.25em;
}

.coi-banner__summary,
.cookiedeclaration_wrapper {
  padding: 0;
}

.coi-banner__cookiedeclaration {
  padding: 16px 24px 0;
}

#coiPage-3.coi-banner__page {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

#coiPage-3 .cookiedeclaration_wrapper {
  padding: 16px 24px;
  max-height: 40vh;
  overflow-y: auto;
}

/* LINKS STYLING */

.coi-banner__wrapper a[href]:not([disabled]) {
  text-decoration: var(--popup-link-decoration);
  text-underline-offset: 1px;
  color: var(--popup-link-color);
}

.coi-banner__wrapper a[target="_blank"] {
  text-decoration: var(--popup-link-decoration);
}

a.coi-banner__google-privacy-policy {
  display: inline-block;
  font-weight: 700;
}

/* CONSENT TOGGLES SECTION STYLING (row layout) */

.coi-banner__page-footer {
  background: transparent;
  width: auto;
  padding: 0;
  position: static;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 3 1 480px;
  flex-wrap: wrap;
}

#coiPage-1 .coi-banner__page-footer,
#coiPage-3 .coi-banner__page-footer {
  bottom: auto;
}

#coiPage-3 .coi-banner__page-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(var(--popup-text-color), 0.15);
}

.coi-button-group {
  display: flex;
  justify-content: flex-end;
  width: auto;
  flex: 0 0 auto;
  gap: 12px;
  order: 2;
}

.coi-toggle-group {
  display: block;
  justify-content: center;
  margin-top: 10px;
}

.coi-banner__accept:not(:disabled),
.coi-banner__decline:not(:disabled),
.coi-banner__lastpage:not(:disabled) {
  padding: 12px 20px;
  text-align: center;
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--popup-button-border-radius);
  max-width: none;
  border: 0;
  transition: all 300ms ease;
  font-weight: 500;
  flex: 0 0 auto;
  height: auto;
  background: var(--popup-button-color);
  color: var(--popup-button-font-color);
  text-decoration: none;
  line-height: 1.33;
  white-space: nowrap;
}

button.coi-banner__accept:hover,
button.coi-banner__lastpage:hover,
button.coi-banner__decline:hover {
  background: var(--popup-button-color--hover);
  color: var(--popup-button-font-color--hover);
}

.coi-button-group button:first-child,
#updateButton {
  margin-left: 0;
}

.coi-button-group button:last-child {
  margin-right: 0;
}

.coi-banner-consent-group {
  display: flex;
  flex-flow: wrap;
  justify-content: flex-start;
  gap: 20px;
  order: 1;
  flex: 1 1 auto;
}

.coi-banner-consent-field {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.coi-banner-consent-field:last-child {
  border-right: 0;
}

.coi-banner-consent-field div {
  display: flex;
  flex: 1;
  justify-content: center;
}

/* CONSENT TOGGLES STYLING */

.coi-checkboxes {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
  font-size: 0.8em;
  text-align: center;
  gap: 4px;
}

.coi-checkboxes input {
  opacity: 0;
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: pointer;
  clip: initial;
  left: 0;
  top: 0;
  display: block;
  border: none;
  background: transparent;
}

input[type="checkbox"]:disabled {
  opacity: 0;
}

.coi-checkboxes .checkbox-toggle {
  background: var(--popup-toggle-bg-color--inactive);
  width: 52px;
  height: 30px;
  border-radius: var(--popup-toggle-border-radius);
  position: relative;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 0;
  transform-origin: center;
  box-sizing: content-box !important;
}

.coi-checkboxes input[type="checkbox"]:checked + .checkbox-toggle {
  background: var(--popup-toggle-bg-color--active);
}

.coi-checkboxes input[type="checkbox"]:checked + .checkbox-toggle:before {
  left: 25px;
  top: 3px;
  background: var(--popup-toggle-icon-color);
}

.coi-checkboxes input[type="checkbox"]:disabled {
  cursor: not-allowed !important;
}

.coi-checkboxes input[type="checkbox"]:disabled + .checkbox-toggle {
  opacity: 0.4;
}

.coi-checkboxes .checkbox-toggle:before {
  transition: 0.3s ease;
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  background: var(--popup-toggle-icon-color);
  left: 3px;
  top: 3px;
  border-radius: var(--popup-toggle-border-radius);
}

/* COOKIE CATEGORIES STYLING (details drawer, expands above the bar) */

#coiConsentBannerCategoriesWrapper {
  background: var(--popup-bg-color--secondary);
  display: none;
  transition: all 0.3s ease-in-out;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 40vh;
  width: 100%;
  order: -1;
}

#coiConsentBannerCategoriesWrapper::-webkit-scrollbar-thumb,
.cookiedeclaration_wrapper::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 5px;
}

#coiConsentBannerCategoriesWrapper::-webkit-scrollbar-track,
.cookiedeclaration_wrapper::-webkit-scrollbar-track {
  background-color: transparent;
}

#coiConsentBannerCategoriesWrapper::-webkit-scrollbar,
.cookiedeclaration_wrapper::-webkit-scrollbar {
  width: 6px;
  background-color: #f5f5f5;
  border-radius: 2px;
  display: none;
}

.coi-consent-banner__categories-wrapper {
  position: relative;
  width: 100%;
  order: -1;
}

.coi-consent-banner__category-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  padding: 0 24px;
}

.coi-consent-banner__category-container:first-child {
  padding-top: 16px;
}

.coi-consent-banner__category-container:last-child {
  margin-bottom: 0;
  padding-bottom: 16px;
}

.coi-consent-banner__category-name:not(:hover):not(:active):not(.has-background) {
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  flex: 1 1;
  align-items: baseline;
  padding: 0 0 0 4px;
  font-size: 1em;
}

.coi-consent-banner__category-name:not(:hover):not(.has-background) {
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  flex: 1 1;
  align-items: baseline;
  padding: 0 0 0 4px;
  font-size: 1em;
}

.coi-consent-banner__category-name:hover {
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
  flex: 1 1;
  align-items: baseline;
  padding: 0 0 0 4px;
  font-size: 1em;
}

.coi-consent-banner__category-name-label {
    font-weight: 700;
    font-size: inherit;
    padding: 0;
    margin: 0 0 0 14px;
    word-break: keep-all;
    color: rgb(var(--popup-text-color));
}

.coi-consent-banner__category-controls {
  display: flex;
  align-items: flex-start;
  flex-flow: wrap;
  flex-direction: column;
}

.coi-consent-banner__no-cookies {
  margin: 0;
  font-size: 1em;
}

.coi-consent-banner__category-expander {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.coi-consent-banner__description-container {
  display: none;
  width: 100%;
  align-self: flex-end;
}

.tab-panel-active {
  display: block;
}

.coi-consent-banner__description-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 5px;
}

.coi-consent-banner__description-container::-webkit-scrollbar-track {
  background-color: transparent;
}

.coi-consent-banner__description-container::-webkit-scrollbar {
  width: 6px;
  background-color: #f5f5f5;
  border-radius: 2px;
  display: none;
}

.coi-consent-banner__category-description {
  padding-top: 4px;
  background: 0 0;
  color: rgb(var(--popup-text-color));
  font-size: 1em;
  font-weight: 400;
  flex: 4 1;
}

.cookie-details__detail-container {
  display: flex;
}

.cookie-details__detail-container,
.cookie-details__detail-container a {
  font-size: 1em;
  flex: 1;
  word-break: break-word;
}

.cookie-details__detail-title {
  font-weight: 700;
}

.cookie-details__detail-content {
  flex: 4;

  a {
    display: inline-block;
  }
}

.coi-consent-banner__found-cookies {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.coi-consent-banner__cookie-details {
  color: rgb(var(--popup-text-color));
  flex-direction: column;
  padding: 20px 0;
  border-top: 1px solid rgba(var(--popup-text-color), 0.15);
}

.coi-consent-banner__cookie-details:last-child {
  border-bottom: 1px solid rgba(var(--popup-text-color), 0.15);
}

.ci-arrow {
  border: solid rgb(var(--popup-text-color));
  border-width: 0 2px 2px 0;
  display: inline-block;
  transition: all 0.3s ease;
  width: calc(var(--popup-font-size) - 6px);
  height: calc(var(--popup-font-size) - 6px);
  top: -1px;
  transform: rotate(-45deg);
  position: relative;
}

.top-column__website-domains {
  display: block;
}

.top-column__bold-text {
  font-weight: 700;
  display: block;
  margin: 10px 0;
}

.coi-consent-banner__category-controls .ci-btn-tab-active .ci-arrow {
  transform: rotate(45deg);
  top: -3px;
}

/** ANIMATIONS **/

@keyframes ci-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-20px);
  }
}

.ci-bounce {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-name: bounce;
  animation-name: ci-bounce;
}

/* MOBILE / NARROW VIEW - falls back to a stacked layout */

@media only screen and (max-width: 900px) {
  .coi-banner__page {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
  }

  .coi-banner__page-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .coi-button-group {
    justify-content: space-between;
    width: 100%;
  }

  .coi-banner-consent-group {
    justify-content: space-around;
    width: 100%;
  }

  .coi-banner__branding-wrapper {
    border-left: 0;
    justify-content: flex-start;
    padding: 4px 0 0;
  }

  .coi-banner__wrapper {
    max-height: 85vh;
  }
}

@media only screen and (max-width: 576px) {
  .coi-banner__branding-wrapper {
    display: none;
  }

  .coi-consent-banner__cookie-details {
    flex-direction: column;
  }

  .coi-banner__branding-wrapper > * {
    padding: 0 5px;
    align-items: center;
  }

  .coi-banner__branding-wrapper a {
    font-size: 100%;
  }

  .coi-banner__branding-wrapper img {
    max-width: 100%;
    align-self: center;
  }

  .coi-banner__headline {
    font-size: 1.15em;
  }

  #coiOverlay {
    align-items: flex-end;
  }

  #coi-banner-wrapper {
    max-height: 90vh;
  }

  .coi-banner__cookiedeclaration {
    padding: 16px 24px;
  }

  .cookiedeclaration_wrapper {
    padding: 6px 24px 16px;
  }

  .coi-button-group button {
    margin: 0 0 5px;
    padding: 10px 20px;
  }

  .coi-banner-consent-field {
    justify-content: center;
    border-right: 0;
    flex: 1 0 40%;
    padding: 10px 0;
  }

  .coi-consent-banner__description-container {
    width: 100%;
  }

  .cookie-details__detail-container,
  .cookie-details__detail-container a {
    flex-flow: wrap;
  }
}

@media only screen and (max-width: 350px) {
  .coi-button-group button {
    width: 100%;
    padding: 8px;
  }

  .coi-banner__cookiedeclaration {
    padding: 16px 24px;
  }
}

/* SCREEN READERS */

.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==================================================================
   SECTION B — LGT refinements (override SECTION A; keep last).
   Scoped under the banner wrapper id so they outrank SECTION A and
   any CSS Cookie Information might ever inject with the template.
   ================================================================== */

/* All widths. The template ships its text with literal newlines and
   white-space: pre-line, which renders every newline as a hard break and
   stacks the links onto their own lines. Paragraph breaks still work via
   the <br> elements in the text. */
#cookie-information-template-wrapper #coiOverlay .coi-banner__maintext {
  white-space: normal !important;
}

/* ---------- Desktop >= 900px: single-row bottom bar ---------- */
@media (min-width: 900px) {
  #cookie-information-template-wrapper #coiOverlay .coi-banner__wrapper { width: 100%; max-width: none; }
  #cookie-information-template-wrapper #coiOverlay #coiPage-1 {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 4px 40px; max-width: 94rem; margin: 0 auto; padding: 12px 24px;
  }
  #cookie-information-template-wrapper #coiOverlay .coi-banner__summary { flex: 1 1 520px; min-width: 380px; padding: 0; margin: 0; }
  #cookie-information-template-wrapper #coiOverlay .coi-banner__text { padding: 0; margin: 0; max-width: none; }
  #cookie-information-template-wrapper #coiOverlay .coi-banner__headline { font-size: 1em; margin: 0 0 4px; }
  #cookie-information-template-wrapper #coiOverlay .coi-banner__maintext { margin: 0; font-size: 0.875em; line-height: 1.45; }
  #cookie-information-template-wrapper #coiOverlay .coi-banner__maintext .coi-banner__privacy-policy,
  #cookie-information-template-wrapper #coiOverlay .coi-banner__maintext .coi-banner__google-privacy-policy {
    display: inline !important; width: auto !important;
    margin: 0 12px 0 0 !important; padding: 0 !important;
  }
  #cookie-information-template-wrapper #coiOverlay .coi-external-link__icon { width: 13px !important; height: 13px !important; vertical-align: -2px; }
  #cookie-information-template-wrapper #coiOverlay .coi-toggle-group { margin: 2px 0 0; }
  /* The stock footer has flex: 3 1 480px, which makes it grow and strand the
     Necessary toggle far from the buttons - flex: 0 0 auto regroups them. */
  #cookie-information-template-wrapper #coiOverlay .coi-banner__page-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 16px;
    flex: 0 0 auto !important; width: auto !important; margin: 0; padding: 0;
  }
  #cookie-information-template-wrapper #coiOverlay .coi-banner-consent-group { order: 1; margin: 0 !important; padding: 0; flex: 0 0 auto; }
  #cookie-information-template-wrapper #coiOverlay .coi-button-group { order: 2; display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 0; flex: 0 0 auto; }
  #cookie-information-template-wrapper #coiOverlay .coi-banner__decline,
  #cookie-information-template-wrapper #coiOverlay .coi-banner__accept { margin: 0; white-space: nowrap; }
  /* "Powered by" in small print on its own line, right-aligned below the controls */
  #cookie-information-template-wrapper #coiOverlay .coi-banner__branding-wrapper {
    order: 3; flex-basis: 100%; display: flex; flex-direction: row;
    justify-content: flex-end; align-items: baseline; gap: 4px;
    margin: -2px 0 0; padding: 0; font-size: 0.7em; opacity: 0.75; border: 0;
  }
  #cookie-information-template-wrapper #coiOverlay .coi-banner__branding-wrapper > span { border: 0; margin: 0; padding: 0; }
}

/* ---------- Mobile < 900px: repair the stacked fallback ----------
   The dashboard's desktop-conversion rules leak below 900px: their
   flex-bases (520px/480px) become HEIGHTS in this column layout, blowing
   the sheet up to full screen and stranding the Necessary label far from
   its switch. The branding is also display:none below 900px. */
@media (max-width: 899.98px) {
  #cookie-information-template-wrapper #coiOverlay #coiPage-1 { height: auto; padding: 16px 20px 12px; }
  #cookie-information-template-wrapper #coiOverlay .coi-banner__summary { flex: 0 0 auto !important; height: auto !important; }
  /* bundle the Necessary label with its switch */
  #cookie-information-template-wrapper #coiOverlay .coi-checkboxes {
    height: auto !important; min-height: 0; width: auto;
    flex-direction: row-reverse !important; justify-content: flex-end;
    align-items: center; gap: 10px; text-align: left;
  }
  /* size the switch containers to content (stock makes them full-width), so
     Necessary shares one row with the buttons where the width allows, and
     sits left-aligned above them where it wraps */
  #cookie-information-template-wrapper #coiOverlay .coi-banner-consent-group,
  #cookie-information-template-wrapper #coiOverlay .coi-banner-consent-field,
  #cookie-information-template-wrapper #coiOverlay .coi-consent-banner__switch-container { width: auto !important; }
  #cookie-information-template-wrapper #coiOverlay .coi-banner-consent-field { display: flex; justify-content: flex-start; }
  #cookie-information-template-wrapper #coiOverlay .coi-banner-consent-field,
  #cookie-information-template-wrapper #coiOverlay .coi-consent-banner__switch-container { height: auto !important; min-height: 0; margin: 0; padding: 0; }
  /* aligned controls: one row when it fits, Necessary left above the buttons otherwise */
  #cookie-information-template-wrapper #coiOverlay .coi-banner__page-footer {
    flex: 0 0 auto !important; height: auto !important; display: flex;
    flex-direction: row !important; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 12px; margin: 12px 0 0; padding: 0;
  }
  #cookie-information-template-wrapper #coiOverlay .coi-banner-consent-group { margin: 0 !important; padding: 0; flex: 0 0 auto; }
  #cookie-information-template-wrapper #coiOverlay .coi-button-group {
    display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 0;
    width: auto !important; flex: 0 0 auto;
  }
  #cookie-information-template-wrapper #coiOverlay .coi-banner__decline,
  #cookie-information-template-wrapper #coiOverlay .coi-banner__accept { margin: 0; white-space: nowrap; }
  /* bring "Powered by" back (the dashboard CSS hides it below 900px) */
  #cookie-information-template-wrapper #coiOverlay .coi-banner__branding-wrapper {
    display: flex !important; flex-direction: row; justify-content: flex-end; align-items: baseline;
    gap: 4px; margin: 8px 0 0; padding: 0; font-size: 0.7em; opacity: 0.75; border: 0;
  }
  #cookie-information-template-wrapper #coiOverlay .coi-banner__branding-wrapper > span { border: 0; margin: 0; padding: 0; }
}

/* The former Show-details text collapse was removed on 2026-08-25: the
   banner text was shortened in the dashboard, and the clamp clipped the
   "Cookie policy" link out of the short version. */

/* ---------- Client theme (LGT-655, 2026-08-25) ----------
   Dark bar, brand buttons, Mark Pro Narrow. Colors from the client:
   black #373530, grey #878683, blue #5aa2c7. Hover shades are placeholder
   darkenings for the client to tune. */
.coi-banner-properties,
.coi-renew-btn-properties {
  --popup-bg-color--primary: #373530;
  --popup-bg-color--secondary: #45423d;
  --popup-text-color: 255, 255, 255;
  --popup-link-color: #ffffff;
  --popup-font-family: 'Mark Pro Narrow', 'Helvetica', sans-serif;
  --popup-button-color: #5aa2c7;
  --popup-button-color--hover: #4a8db0;
  --popup-button-border-radius: 100px;
  --popup-toggle-bg-color--active: #5aa2c7;
  --popup-toggle-bg-color--inactive: #878683;
}

/* The decline button ("Necessary only") in grey; accept stays blue via the
   variables above (CI only supports one button color variable). */
#cookie-information-template-wrapper #coiOverlay .coi-banner__decline:not(:disabled) {
  background: #878683;
  color: #ffffff;
}
#cookie-information-template-wrapper #coiOverlay button.coi-banner__decline:hover {
  background: #6f6e6b;
  color: #ffffff;
}

/* The Necessary toggle is redundant now that the decline button is labelled
   "Necessary only" in the dashboard texts. */
#cookie-information-template-wrapper #coiOverlay .coi-banner-consent-group {
  display: none !important;
}

/* Focus outline must be visible on the dark background. */
#cookie-information-template-wrapper #coi-banner-wrapper *:focus-visible {
  outline-color: #ffffff !important;
}

/* Headline in Mark Pro Narrow Bold. */
#cookie-information-template-wrapper #coiOverlay .coi-banner__headline {
  font-weight: 700;
}

/* ---------- Readability pass (LGT-655, 2026-08-25) ---------- */

/* Uniform links in the banner text (the template bolds two of them), and
   keep the external-link icon on the same line as its link. */
#cookie-information-template-wrapper #coiOverlay .coi-banner__maintext .coi-banner__privacy-policy,
#cookie-information-template-wrapper #coiOverlay .coi-banner__maintext .coi-banner__google-privacy-policy,
#cookie-information-template-wrapper #coiOverlay .coi-banner__maintext a[href] {
  font-size: inherit !important;
  font-weight: inherit !important;
}
#cookie-information-template-wrapper #coiOverlay .coi-banner__maintext .coi-banner__google-privacy-policy {
  white-space: nowrap !important;
}

/* More air between the text block and the buttons. */
#cookie-information-template-wrapper #coiOverlay #coiPage-1 {
  gap: 4px 72px;
}

/* Cookie-declaration page (coiPage-3, opened by "Read more about cookies"):
   padding and rhythm so it stays readable if the client keeps that link. */
#cookie-information-template-wrapper #coiOverlay #coiPage-3 .coi-banner__cookiedeclaration {
  padding: 24px 28px 0;
}
#cookie-information-template-wrapper #coiOverlay #coiPage-3 .cookiedeclaration_wrapper {
  padding: 8px 28px 24px;
  max-height: 50vh;
}
#cookie-information-template-wrapper #coiOverlay #coiPage-3 .cookiedeclaration_wrapper p {
  margin: 10px 0;
}
#cookie-information-template-wrapper #coiOverlay #coiPage-3 .cookiedeclaration_wrapper h2 {
  margin-top: 24px;
}
#cookie-information-template-wrapper #coiOverlay #coiPage-3 .coi-banner__page-footer {
  padding: 16px 28px;
  justify-content: flex-end;
}
#cookie-information-template-wrapper #coiOverlay #coiPage-3 .coi-banner__privacy-policy-return {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
#cookie-information-template-wrapper #coiOverlay #coiPage-3 a {
  padding: 2px 0;
}
