/* Consent dialog. Brand colours come from the --ecc-* variables set by the plugin. */

html.ecc-lock,
html.ecc-lock body {
  overflow: hidden !important;
}

.ecc-root,
.ecc-root *,
.ecc-launcher {
  box-sizing: border-box;
}

.ecc-root[hidden],
.ecc-launcher[hidden],
.ecc-root [hidden] {
  display: none !important;
}

.ecc-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 16px;
  line-height: 1.5;
  color: #1c1c1c;
  text-align: left;
}

.ecc-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 580px;
  max-height: 100%;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  outline: none;
}

.ecc-dialog.ecc-jump {
  animation: ecc-jump 0.45s ease;
}

@keyframes ecc-jump {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-16px);
  }
  55% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecc-dialog.ecc-jump {
    animation: ecc-flash 0.45s ease;
  }
  .ecc-root .ecc-switch-track,
  .ecc-root .ecc-switch-track::after {
    transition: none;
  }
}

@keyframes ecc-flash {
  50% {
    box-shadow: 0 0 0 4px var(--ecc-accent, #2a6ebb);
  }
}

.ecc-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: break-word;
  overscroll-behavior: contain;
  padding: 24px 24px 8px;
}

.ecc-root .ecc-title {
  width: auto;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 0 32px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.ecc-root .ecc-intro p,
.ecc-root .ecc-intro ol,
.ecc-root .ecc-details-text {
  margin: 0 0 14px;
  font-size: 15px;
  color: inherit;
}

.ecc-root .ecc-intro ol {
  padding-left: 22px;
}

.ecc-root .ecc-intro li {
  margin: 0;
}

.ecc-root .ecc-intro a {
  color: var(--ecc-link, #1a5fb4);
  font-weight: 600;
  text-decoration: underline;
}

.ecc-root .ecc-details-toggle {
  display: inline-block;
  min-height: 0;
  margin: 0 0 12px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
  cursor: pointer;
}

.ecc-root .ecc-details-title {
  width: auto;
  max-width: 100%;
  margin: 14px 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  text-transform: none;
}

.ecc-table-wrap {
  margin: 0 0 14px;
  overflow-x: auto;
}

.ecc-root .ecc-table,
.ecc-cookie-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
}

.ecc-root .ecc-table th,
.ecc-root .ecc-table td,
.ecc-cookie-table th,
.ecc-cookie-table td {
  padding: 6px 8px;
  border: 1px solid #d9d9d9;
  color: inherit;
  font-size: inherit;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  vertical-align: top;
}

.ecc-root .ecc-table th,
.ecc-cookie-table th {
  background: #f3f3f3;
  font-weight: 600;
}

.ecc-footer {
  flex: 0 0 auto;
  padding: 12px 24px 20px;
  border-top: 1px solid #ececec;
}

.ecc-buttons {
  display: flex;
  gap: 16px;
}

/* Both buttons share one style, so declining is as prominent as accepting. */
.ecc-root .ecc-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 2px;
  background: var(--ecc-accent, #2a6ebb);
  box-shadow: none;
  color: var(--ecc-accent-text, #fff);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

.ecc-root .ecc-btn:hover {
  filter: brightness(0.92);
}

.ecc-root .ecc-btn:focus-visible,
.ecc-root .ecc-details-toggle:focus-visible,
.ecc-root .ecc-close:focus-visible,
.ecc-root .ecc-intro a:focus-visible,
.ecc-launcher:focus-visible,
.ecc-root .ecc-switch-input:focus-visible + .ecc-switch-track {
  outline: 3px solid #1c1c1c;
  outline-offset: 2px;
}

.ecc-switches {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-top: 16px;
}

.ecc-root .ecc-switch {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.ecc-root .ecc-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.ecc-root .ecc-switch-track {
  position: relative;
  width: 64px;
  height: 34px;
  border-radius: 17px;
  background: #7f8c8d;
  transition: background 0.15s ease;
}

.ecc-root .ecc-switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.ecc-root .ecc-switch-input:checked + .ecc-switch-track {
  background: var(--ecc-accent, #2a6ebb);
}

.ecc-root .ecc-switch-input:checked + .ecc-switch-track::after {
  transform: translateX(30px);
}

.ecc-root .ecc-switch-input:disabled + .ecc-switch-track {
  opacity: 0.45;
  cursor: not-allowed;
}

.ecc-root .ecc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  color: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.ecc-launcher {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147482000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ecc-accent, #2a6ebb);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: var(--ecc-accent-text, #fff);
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 480px) {
  .ecc-body {
    padding: 18px 16px 4px;
  }
  .ecc-footer {
    padding: 10px 16px 14px;
  }
  .ecc-buttons {
    gap: 10px;
  }
  .ecc-root .ecc-btn {
    font-size: 15px;
  }
  .ecc-root .ecc-switch-track {
    width: 54px;
    height: 30px;
  }
  .ecc-root .ecc-switch-track::after {
    width: 22px;
    height: 22px;
  }
  .ecc-root .ecc-switch-input:checked + .ecc-switch-track::after {
    transform: translateX(24px);
  }
}

@media print {
  .ecc-root,
  .ecc-launcher {
    display: none !important;
  }
}
