/* UWT Cookie Consent – matches the UWT site (navy #082c5e, blue #0f6fa4, gold #f2b84b).
   "Accept all" and "Reject all" look the same, so neither is pushed. */

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

.uwtcc {
  font-family: "Nunito Sans", "Nunito", Arial, sans-serif;
  color: #082c5e;
}

.uwtcc [hidden] {
  display: none !important;
}

/* ---------- buttons ----------
   #uwtcc + !important: other plugins/page builders style every <button>
   (e.g. transparent background, white text). These win over them. */
#uwtcc .uwtcc-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 48px;
  margin: 0 !important;
  padding: 12px 22px !important;
  border: 2px solid #082c5e !important;
  border-radius: 12px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .02em !important;
  text-align: center;
  text-indent: 0 !important;
  text-shadow: none !important;
  text-transform: none !important;
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer;
  box-shadow: none !important;
  background-image: none !important;
  transform: none !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

#uwtcc .uwtcc-btn--solid {
  background-color: #082c5e !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#uwtcc .uwtcc-btn--solid:hover,
#uwtcc .uwtcc-btn--solid:focus-visible {
  border-color: #0f6fa4 !important;
  background-color: #0f6fa4 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#uwtcc .uwtcc-btn--outline {
  background-color: #ffffff !important;
  color: #082c5e !important;
  -webkit-text-fill-color: #082c5e !important;
}

#uwtcc .uwtcc-btn--outline:hover,
#uwtcc .uwtcc-btn--outline:focus-visible {
  background-color: #eef4f9 !important;
  color: #082c5e !important;
  -webkit-text-fill-color: #082c5e !important;
}

#uwtcc .uwtcc-btn--link {
  border-color: transparent !important;
  background-color: transparent !important;
  color: #0f6fa4 !important;
  -webkit-text-fill-color: #0f6fa4 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

#uwtcc .uwtcc-btn--link:hover,
#uwtcc .uwtcc-btn--link:focus-visible {
  color: #082c5e !important;
  -webkit-text-fill-color: #082c5e !important;
}

/* close (×) and cookie buttons */
#uwtcc .uwtcc-modal__close,
#uwtcc .uwtcc-fab {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #082c5e !important;
  opacity: 1 !important;
  text-indent: 0 !important;
}

#uwtcc .uwtcc-modal__close:hover,
#uwtcc .uwtcc-modal__close:focus-visible,
#uwtcc .uwtcc-fab:hover,
#uwtcc .uwtcc-fab:focus-visible {
  background-color: #082c5e !important;
  color: #ffffff !important;
}

#uwtcc .uwtcc-btn span,
#uwtcc .uwtcc-modal__close svg,
#uwtcc .uwtcc-fab svg {
  color: inherit !important;
  -webkit-text-fill-color: inherit;
}

.uwtcc button:focus-visible,
.uwtcc a:focus-visible,
.uwtcc input:focus-visible + .uwtcc-switch__track {
  outline: 3px solid #f2b84b;
  outline-offset: 2px;
}

.uwtcc a {
  color: #0f6fa4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   BANNER – card along the bottom of the screen
========================================================= */
.uwtcc-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 999990;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid #e5eaf0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(8, 44, 94, .22);
  animation: uwtccUp .5s cubic-bezier(.2, .8, .2, 1) both;
}

.uwtcc-banner__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 26px;
}

.uwtcc-banner__copy {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.uwtcc-banner__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff6e2;
  color: #c98d16;
}

.uwtcc-banner__icon svg,
.uwtcc-fab svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uwtcc-banner__icon svg circle,
.uwtcc-fab svg circle {
  fill: currentColor;
  stroke: none;
}

.uwtcc .uwtcc-banner__title {
  margin: 0 0 4px !important;
  padding: 0 !important;
  color: #082c5e !important;
  font-family: inherit;
  font-size: 18px !important;
  font-weight: 800;
  line-height: 1.3 !important;
}

.uwtcc .uwtcc-banner__text {
  margin: 0 !important;
  color: #556274 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
}

.uwtcc-banner__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

@keyframes uwtccUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   PREFERENCES PANEL
========================================================= */
html.uwtcc-locked,
html.uwtcc-locked body {
  overflow: hidden !important;
}

.uwtcc-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.uwtcc-modal__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(6, 24, 50, .55);
  animation: uwtccFade .3s ease both;
}

.uwtcc-modal__box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(6, 24, 50, .35);
  animation: uwtccUp .4s cubic-bezier(.2, .8, .2, 1) both;
}

.uwtcc-modal__box:focus {
  outline: none;
}

.uwtcc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid #e5eaf0;
}

.uwtcc .uwtcc-modal__title {
  margin: 0 !important;
  padding: 0 !important;
  color: #082c5e !important;
  font-family: inherit;
  font-size: 22px !important;
  font-weight: 800;
  line-height: 1.25 !important;
}

.uwtcc .uwtcc-modal__close {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #d5e0ea;
  border-radius: 50%;
  background: #ffffff;
  color: #082c5e;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.uwtcc .uwtcc-modal__close:hover,
.uwtcc .uwtcc-modal__close:focus-visible {
  border-color: #082c5e;
  background: #082c5e;
  color: #ffffff;
}

.uwtcc-modal__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.uwtcc-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 26px 8px;
  -webkit-overflow-scrolling: touch;
}

.uwtcc .uwtcc-modal__intro {
  margin: 0 0 18px !important;
  color: #556274 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
}

.uwtcc .uwtcc-cats {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.uwtcc .uwtcc-cat {
  margin: 0 0 10px !important;
  padding: 16px 18px !important;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  background: #f8fafc;
  list-style: none !important;
}

.uwtcc .uwtcc-cat::before {
  display: none !important;
}

.uwtcc-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.uwtcc .uwtcc-cat__title {
  margin: 0 !important;
  padding: 0 !important;
  color: #082c5e !important;
  font-family: inherit;
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.3 !important;
}

.uwtcc .uwtcc-cat__desc {
  margin: 6px 0 0 !important;
  color: #556274 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

.uwtcc-cat__always {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e6f3ea;
  color: #1d7a3e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em !important;
  text-transform: uppercase;
}

/* on / off switch */
.uwtcc-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}

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

.uwtcc-switch__track {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #c3cfdb;
  transition: background-color .2s ease;
}

.uwtcc-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(8, 44, 94, .25);
  transition: transform .2s ease;
}

.uwtcc-switch input:checked + .uwtcc-switch__track {
  background: #082c5e;
}

.uwtcc-switch input:checked + .uwtcc-switch__track .uwtcc-switch__knob {
  transform: translateX(20px);
}

.uwtcc-modal__foot {
  display: flex;
  gap: 10px;
  padding: 16px 26px 22px;
  border-top: 1px solid #e5eaf0;
}

.uwtcc-modal__foot .uwtcc-btn {
  flex: 1 1 0;
  padding-right: 12px;
  padding-left: 12px;
}

@keyframes uwtccFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========================================================
   COOKIE BUTTON – change your choice later
========================================================= */
.uwtcc .uwtcc-fab {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 999980;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid #e5eaf0;
  border-radius: 50%;
  background: #ffffff;
  color: #082c5e;
  box-shadow: 0 10px 26px rgba(8, 44, 94, .18);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.uwtcc .uwtcc-fab:hover,
.uwtcc .uwtcc-fab:focus-visible {
  background: #082c5e;
  color: #ffffff;
}

/* =========================================================
   TABLET + PHONE
========================================================= */
@media (max-width: 900px) {
  .uwtcc-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
  }

  .uwtcc-banner__actions {
    flex-wrap: wrap;
  }

  .uwtcc-banner__actions .uwtcc-btn--solid,
  .uwtcc-banner__actions .uwtcc-btn--outline {
    flex: 1 1 0;
  }

  .uwtcc-banner__actions .uwtcc-btn--link {
    order: 3;
    flex: 1 1 100%;
    min-height: 36px;
    padding: 6px;
  }
}

@media (max-width: 560px) {
  .uwtcc-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    border-radius: 18px;
  }

  .uwtcc-banner__icon {
    width: 40px;
    height: 40px;
  }

  .uwtcc-banner__icon svg {
    width: 22px;
    height: 22px;
  }

  .uwtcc .uwtcc-banner__text {
    font-size: 13.5px !important;
  }

  .uwtcc-modal {
    align-items: flex-end;
    padding: 0;
  }

  .uwtcc-modal__box {
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
  }

  .uwtcc-modal__head,
  .uwtcc-modal__body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .uwtcc-modal__foot {
    flex-wrap: wrap;
    padding: 14px 20px 20px;
  }

  .uwtcc-modal__foot .uwtcc-btn {
    flex: 1 1 calc(50% - 5px);
  }

  .uwtcc-modal__foot [data-uwtcc-save] {
    order: 3;
    flex-basis: 100%;
  }

  .uwtcc .uwtcc-fab {
    bottom: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uwtcc *,
  .uwtcc *::before,
  .uwtcc *::after {
    animation: none !important;
    transition: none !important;
  }
}
