/* Mobile first; all rules are local to the consent interface. */
.wgcc {
  --wgcc-ink: #182721;
  --wgcc-muted: #596760;
  --wgcc-line: #dce3df;
  --wgcc-surface: #f4f7f4;
  --wgcc-accent: #9b5608;
  color: var(--wgcc-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

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

.wgcc__panel {
  position: fixed;
  z-index: 2147483630;
  right: 12px;
  bottom: 12px;
  left: 12px;
  width: auto;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--wgcc-line);
  border-radius: 18px;
  box-shadow: 0 8px 48px rgb(24 39 33 / 18%);
  text-align: left;
}

.wgcc__heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wgcc__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--wgcc-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wgcc .wgcc__title {
  margin: 0;
  color: var(--wgcc-ink);
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none;
}

.wgcc button,
.wgcc input {
  font: inherit;
}

.wgcc button {
  cursor: pointer;
}

.wgcc button:disabled {
  cursor: wait;
  opacity: .65;
}

.wgcc :focus-visible {
  outline: 3px solid #567dce;
  outline-offset: 3px;
}

.wgcc__close {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  padding: 0;
  color: var(--wgcc-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.wgcc__close:hover {
  color: var(--wgcc-ink);
  background: var(--wgcc-surface);
}

.wgcc .wgcc__intro,
.wgcc .wgcc__help {
  margin: 0 0 16px;
  color: var(--wgcc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.wgcc__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.wgcc__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.wgcc__button--choice,
.wgcc__button--save {
  color: #fff;
  background: var(--wgcc-accent);
  border-color: var(--wgcc-accent);
}

.wgcc__button--choice:hover,
.wgcc__button--save:hover {
  background: #ffffff;
  color: black;
  border-color: #9e5d07;
}

.wgcc__button--settings {
  color: var(--wgcc-ink);
  background: #fff;
  border-color: var(--wgcc-line);
}

.wgcc__button--settings:hover {
  background: var(--wgcc-surface);
}

.wgcc__details {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--wgcc-line);
}

.wgcc__category {
  padding: 14px 0;
  border-bottom: 1px solid var(--wgcc-line);
}

.wgcc__category-label {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: 0;
  color: var(--wgcc-ink);
  font-weight: 600;
  cursor: pointer;
}

.wgcc__required {
  display: block;
  color: var(--wgcc-muted);
  font-size: 11px;
  font-weight: 400;
}

.wgcc .wgcc__toggle {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 26px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #e4e9e6;
  border: 1px solid #82958a;
  border-radius: 20px;
  cursor: pointer;
}

.wgcc__toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 1px solid #819389;
  border-radius: 50%;
  content: '';
  transition: transform .15s ease;
}

.wgcc .wgcc__toggle:checked {
  background: var(--wgcc-accent);
  border-color: var(--wgcc-accent);
}

.wgcc__toggle:checked::after {
  border-color: #fff;
  transform: translateX(18px);
}

.wgcc .wgcc__toggle:disabled {
  opacity: .65;
  cursor: default;
}

.wgcc__category p,
.wgcc__storage p {
  margin: 6px 0 0;
  color: var(--wgcc-muted);
  font-size: 12px;
  line-height: 1.55;
}

.wgcc .wgcc__providers {
  font-size: 11px;
}

.wgcc__storage {
  margin: 16px 0;
  padding: 12px;
  background: var(--wgcc-surface);
  border-radius: 8px;
}

.wgcc__storage h3 {
  margin: 0;
  color: var(--wgcc-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

.wgcc__storage code {
  padding: 0;
  color: inherit;
  background: transparent;
  overflow-wrap: anywhere;
}

.wgcc__button--save {
  width: 100%;
}

.wgcc__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  margin-top: 8px;
}

.wgcc .wgcc__text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--wgcc-muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wgcc .wgcc__text-link:hover {
  color: var(--wgcc-ink);
}

.wgcc .wgcc__status {
  margin: 8px 0 0;
  padding: 10px 12px;
  color: var(--wgcc-ink);
  background: var(--wgcc-surface);
  border-radius: 8px;
  font-size: 13px;
}

.wgcc__panel[aria-busy="true"] .wgcc__status:not([data-error])::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid var(--wgcc-line);
  border-top-color: var(--wgcc-accent);
  border-radius: 50%;
  vertical-align: -2px;
  animation: wgcc-spin .8s linear infinite;
  content: '';
}

@keyframes wgcc-spin {
  to { transform: rotate(360deg); }
}

.wgcc .wgcc__status[data-error] {
  color: #7c271f;
  background: #fff0ee;
}

.wgcc__noscript {
  margin: 16px;
  padding: 12px;
  background: var(--wgcc-surface);
  border: 1px solid var(--wgcc-line);
  border-radius: 8px;
}

.wgcc-embed-note {
  margin: 16px 0;
  padding: 18px;
  color: #182721;
  background: #f4f7f4;
  border: 1px solid #dce3df;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.wgcc-embed-note button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 14px;
  color: #fff;
  background: #244b3a;
  border: 1px solid #244b3a;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.wgcc-embed-note button:focus-visible {
  outline: 3px solid #567dce;
  outline-offset: 3px;
}

@media (min-width: 480px) {
  .wgcc__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wgcc__button--settings {
    grid-column: 1 / -1;
  }

  .wgcc__required {
    display: inline;
    margin-left: 6px;
  }
}

@media (min-width: 768px) {
  .wgcc__panel {
    right: 24px;
    bottom: 24px;
    left: auto;
    width: 540px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 26px;
    border-radius: 20px;
  }

  .wgcc .wgcc__title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wgcc__toggle::after {
    transition: none;
  }

  .wgcc__panel[aria-busy="true"] .wgcc__status::before {
    animation: none;
  }
}

@media (forced-colors: active) {
  .wgcc .wgcc__toggle {
    appearance: auto;
    -webkit-appearance: auto;
  }

  .wgcc__toggle::after {
    content: none;
  }
}

/* Keep the native hidden state effective for every component variant. */
.wgcc [hidden] {
  display: none;
}

/* Keep the cookie inventory readable within narrow CMS content columns. */
.privacy-policy-section table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: .85rem;
  line-height: 1.5;
}
.privacy-policy-section th,
.privacy-policy-section td {
  padding: .55rem;
  border: 1px solid #dce3df;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.privacy-policy-section table code {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) {
  .privacy-policy-section table { font-size: .95rem; }
  .privacy-policy-section th,
  .privacy-policy-section td { padding: .8rem; }
}
