/* WeatherFile overrides for vanilla-cookieconsent */
#cc-main {
  --cc-bg: #04173f;
  --cc-primary-color: #fff;
  --cc-secondary-color: #c8d4e8;
  --cc-btn-primary-bg: #009;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: #009;
  --cc-btn-primary-hover-bg: #05285a;
  --cc-btn-primary-hover-color: #fff;
  --cc-btn-primary-hover-border-color: #05285a;
  --cc-btn-secondary-bg: rgba(255, 255, 255, 0.12);
  --cc-btn-secondary-color: #fff;
  --cc-btn-secondary-border-color: rgba(255, 255, 255, 0.22);
  --cc-btn-secondary-hover-bg: rgba(255, 255, 255, 0.22);
  --cc-btn-secondary-hover-color: #fff;
  --cc-btn-secondary-hover-border-color: rgba(255, 255, 255, 0.3);
  --cc-toggle-on-bg: #009;
  --cc-toggle-off-bg: #4a6280;
  --cc-toggle-on-knob-bg: #fff;
  --cc-toggle-off-knob-bg: #fff;
  --cc-toggle-readonly-bg: #3a5068;
  --cc-toggle-readonly-knob-bg: #8fa3bc;
  --cc-link-color: #9ecbff;
  --cc-separator-border-color: rgba(255, 255, 255, 0.18);
  --cc-cookie-category-block-bg: #05285a;
  --cc-cookie-category-block-border: #0a3a72;
  --cc-cookie-category-block-hover-bg: #0a3a72;
  --cc-cookie-category-block-hover-border: #0d4590;
  --cc-cookie-category-expanded-block-bg: #04173f;
  --cc-cookie-category-expanded-block-hover-bg: #0a3a72;
  --cc-footer-bg: #031028;
  --cc-footer-color: #c8d4e8;
  --cc-footer-border-color: rgba(255, 255, 255, 0.15);
  --cc-overlay-bg: rgba(0, 0, 0, 0.55);
  --cc-modal-border-radius: 0.5rem;
  --cc-btn-border-radius: 0.35rem;
  --cc-modal-margin: 0.75rem;
}

#cc-main .cm,
#cc-main .pm {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--cc-primary-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

#cc-main .pm--box {
  max-width: 36rem;
}

#cc-main .cm__title,
#cc-main .pm__title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

#cc-main .cm__desc,
#cc-main .pm__section-desc,
#cc-main .pm__section-desc-wrapper {
  color: var(--cc-secondary-color);
  line-height: 1.55;
}

#cc-main .cm__desc a,
#cc-main .pm__section-desc a,
#cc-main .pm__section-desc-wrapper a,
#cc-main .cc-link {
  color: var(--cc-link-color);
  text-decoration: underline;
}

#cc-main .cc__link:hover,
#cc-main a:hover {
  color: #cfe4ff !important;
  background-size: 100% 1px;
}

#cc-main .pm__section:not(:first-child):hover {
  background: var(--cc-cookie-category-block-hover-bg);
  border-color: var(--cc-cookie-category-block-hover-border);
}

#cc-main .pm__section--toggle .pm__section-title {
  color: var(--cc-primary-color);
  font-weight: 600;
}

#cc-main .pm__section--toggle .pm__section-title:hover {
  background: var(--cc-cookie-category-block-hover-bg);
  border-color: var(--cc-cookie-category-block-hover-border);
}

#cc-main .pm__section-title {
  color: var(--cc-primary-color);
}

#cc-main .pm__badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--cc-primary-color);
}

#cc-main .pm__service-counter {
  background: var(--cc-btn-primary-bg);
  color: var(--cc-btn-primary-color);
}

#cc-main .pm__service:hover {
  background-color: var(--cc-cookie-category-block-hover-bg);
}

#cc-main .pm__section:not(.pm__section--toggle) {
  color: var(--cc-secondary-color);
  border-color: var(--cc-separator-border-color);
}

#cc-main .pm__section:not(.pm__section--toggle) .pm__section-title,
#cc-main .pm__section:not(.pm__section--toggle) p {
  color: var(--cc-secondary-color);
}

#cc-main .pm__btn,
#cc-main .cm__btn {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Cookie policy page (/cookies) --- */

#cookie_container .bootstrap-frm.wf-cookie-page,
#cookie_container .bootstrap-frm {
  max-width: min(100%, 820px) !important;
  width: 100%;
  box-sizing: border-box;
  text-shadow: none;
}

#cookie_container .wf-cookie-policy-content {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: #444;
}

#cookie_container .wf-cookie-policy-content p {
  margin: 0 0 0.75em;
}

#cookie_container .wf-cookie-policy-content a {
  color: #0044cc;
  text-decoration: underline;
}

#cookie_container .wf-cookie-policy-content a:hover {
  color: #04173f;
}

/* Hero — matches consent modal navy + locations panel grey */
#cookie_container .wf-cookie-hero {
  background: #f8f9fb;
  border: 1px solid #e2e4e8;
  border-left: 4px solid #009;
  border-radius: 6px;
  padding: 14px 16px 16px;
  margin-bottom: 14px;
}

#cookie_container .wf-cookie-lead {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 12px;
  color: #333;
}

#cookie_container .wf-cookie-lead strong {
  color: #04173f;
  font-weight: 700;
}

#cookie_container .wf-cookie-prefs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid #04173f;
  border-radius: 6px;
  background: #04173f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#cookie_container .wf-cookie-prefs-btn:hover {
  background: #0a2a6b;
  border-color: #0a2a6b;
}

/* Section blocks — same surface language as locations shortcuts */
#cookie_container .wf-cookie-block {
  background: #fff;
  border: 1px solid #e2e4e8;
  border-radius: 6px;
  padding: 12px 14px 14px;
  margin-bottom: 10px;
}

#cookie_container .wf-cookie-block__title {
  margin: 0 0 8px;
  padding-left: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #04173f;
  line-height: 1.3;
  border-left: 3px solid #04173f;
}

#cookie_container .wf-cookie-block--functional .wf-cookie-block__title {
  border-left-color: #009;
}

#cookie_container .wf-cookie-block--account .wf-cookie-block__title {
  border-left-color: #2a6b4f;
}

#cookie_container .wf-cookie-block--analytics .wf-cookie-block__title {
  border-left-color: #5a7a9a;
}

#cookie_container .wf-cookie-block--controls .wf-cookie-block__title {
  border-left-color: #009;
}

#cookie_container .wf-cookie-block__text {
  margin: 0 0 0.65em;
  font-size: 12px;
  color: #555;
}

#cookie_container .wf-cookie-block__text:last-child {
  margin-bottom: 0;
}

#cookie_container .wf-cookie-block__label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #04173f;
}

#cookie_container .wf-cookie-list {
  list-style: none;
  margin: 0 0 0.75em;
  padding: 0;
  font-size: 12px;
  color: #444;
}

#cookie_container .wf-cookie-list li {
  position: relative;
  padding: 5px 0 5px 16px;
  margin: 0;
  border-bottom: 1px solid #f0f2f5;
  line-height: 1.45;
}

#cookie_container .wf-cookie-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#cookie_container .wf-cookie-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #009;
}

#cookie_container .wf-cookie-block--analytics .wf-cookie-list li::before {
  background: #5a7a9a;
}

#cookie_container .wf-cookie-list--compact li {
  padding-top: 4px;
  padding-bottom: 4px;
}

#cookie_container .wf-cookie-note {
  margin: 0;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.45;
  color: #666;
  background: #f8f9fb;
  border: 1px solid #e2e4e8;
  border-radius: 6px;
}

#cookie_container .wf-cookie-note code,
#cookie_container .wf-cookie-block code,
#cookie_container .wf-cookie-table code {
  display: inline;
  padding: 1px 5px;
  margin: 0;
  border: none;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #eef2f7;
  color: #04173f;
  border-radius: 3px;
  line-height: normal;
}

/* Table — desktop; stacks on mobile (no horizontal scroll) */
#cookie_container .wf-cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
  border: 1px solid #e2e4e8;
  border-radius: 6px;
  overflow: hidden;
}

#cookie_container .wf-cookie-table th,
#cookie_container .wf-cookie-table td {
  padding: 8px 11px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e8ecf0;
}

#cookie_container .wf-cookie-table tr:last-child td {
  border-bottom: none;
}

#cookie_container .wf-cookie-table th {
  background: #04173f;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
}

#cookie_container .wf-cookie-table tbody tr:nth-child(even) {
  background: #f8f9fb;
}

#cookie_container .wf-cookie-table td {
  color: #444;
  word-break: break-word;
}

#cookie_container .wf-cookie-browser-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0f3;
}

#cookie_container .wf-cookie-browser-links__label {
  font-size: 11px;
  font-weight: 700;
  color: #04173f;
  margin-right: 2px;
}

#cookie_container .wf-cookie-browser-chip {
  display: inline-block;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #04173f !important;
  text-decoration: none !important;
  background: #f8f9fb;
  border: 1px solid #e2e4e8;
  border-radius: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#cookie_container .wf-cookie-browser-chip:hover {
  background: #fff;
  border-color: #04173f;
  color: #04173f !important;
}

#cookie_container .wf-cookie-footer {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #e2e4e8;
  text-align: center;
}

#cookie_container .wf-cookie-footer p {
  margin: 0 0 4px;
  font-size: 12px;
  color: #666;
}

#cookie_container .wf-cookie-footer__copy {
  font-size: 11px;
  color: #888;
}

@media only screen and (max-width: 767px) {
  #cc-main {
    --cc-modal-margin: 0.5rem;
  }

  #cc-main .cm--bar .cm__body {
    padding: 0.65em 0 0.85em !important;
  }

  #cc-main .cm__title {
    font-size: 0.95em !important;
  }

  #cc-main .cm__desc {
    font-size: 0.85em !important;
    max-height: 32vh;
  }

  #cc-main .pm--box {
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  #cc-main .pm__section--toggle .pm__section-title {
    padding: 0.9em 4.2em 0.9em 1em;
    min-height: auto;
    font-size: 0.9em;
    line-height: 1.35;
  }

  #cc-main .pm__section--expandable .pm__section-title {
    padding-left: 2.8em;
  }

  #cc-main .section__toggle-wrapper {
    right: 12px;
  }

  #cookie_container .bootstrap-frm {
    padding: 12px 10px;
  }

  #cookie_container .wf-cookie-hero {
    padding: 12px 14px 14px;
  }

  #cookie_container .wf-cookie-lead {
    font-size: 12px;
  }

  #cookie_container .wf-cookie-prefs-btn {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
  }

  #cookie_container .wf-cookie-block {
    padding: 11px 12px 13px;
  }

  /* Stack table rows — no sideways scroll */
  #cookie_container .wf-cookie-table thead {
    display: none;
  }

  #cookie_container .wf-cookie-table,
  #cookie_container .wf-cookie-table tbody,
  #cookie_container .wf-cookie-table tr,
  #cookie_container .wf-cookie-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  #cookie_container .wf-cookie-table {
    border: none;
    background: transparent;
  }

  #cookie_container .wf-cookie-table tr {
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #f8f9fb;
    border: 1px solid #e2e4e8;
    border-radius: 6px;
  }

  #cookie_container .wf-cookie-table tr:last-child {
    margin-bottom: 0;
  }

  #cookie_container .wf-cookie-table td {
    padding: 3px 0;
    border: none;
    font-size: 12px;
  }

  #cookie_container .wf-cookie-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #04173f;
    margin-bottom: 2px;
  }

  #cookie_container .wf-cookie-table td:first-child {
    padding-top: 0;
    margin-bottom: 4px;
  }

  #cookie_container .wf-cookie-table td:first-child::before {
    display: none;
  }

  #cookie_container .wf-cookie-browser-links {
    flex-direction: column;
    align-items: stretch;
  }

  #cookie_container .wf-cookie-browser-links__label {
    margin-bottom: 2px;
  }

  #cookie_container .wf-cookie-browser-chip {
    text-align: center;
    padding: 8px 12px;
  }

  #cookie_container h3 td:first-child {
    font-size: 13px;
  }
}

@media only screen and (max-width: 480px) {
  #cc-main .cm__btn,
  #cc-main .pm__btn {
    min-height: 44px;
    font-size: 0.88em;
  }
}
