.dc-cookie[hidden],
.dc-cookie [hidden] {
  display: none !important;
}

.dc-cookie__banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1090;
  display: grid;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  color: #172033;
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(23, 32, 51, 0.2);
}

.dc-cookie__banner-content {
  min-width: 0;
}

.dc-cookie__title {
  margin: 0 0 8px;
  color: #1d477f;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.dc-cookie__description,
.dc-cookie__modal p,
.dc-cookie__category span span {
  margin: 0;
  color: #475467;
  font-size: 0.875rem;
  line-height: 1.55;
}

.dc-cookie a {
  color: #1d477f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dc-cookie a:hover,
.dc-cookie a:focus-visible {
  color: #cf3f86;
}

.dc-cookie__actions,
.dc-cookie__modal-actions {
  display: grid;
  gap: 8px;
}

.dc-cookie__button {
  min-height: 44px;
  padding: 9px 15px;
  border: 2px solid #1d477f;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.dc-cookie__button--choice {
  color: #fff;
  background: #1d477f;
}

.dc-cookie__button--choice:hover,
.dc-cookie__button--choice:focus-visible {
  color: #fff;
  background: #cf3f86;
  border-color: #cf3f86;
}

.dc-cookie__button--settings,
.dc-cookie__button--save {
  color: #1d477f;
  background: #fff;
}

.dc-cookie__button--settings:hover,
.dc-cookie__button--settings:focus-visible,
.dc-cookie__button--save:hover,
.dc-cookie__button--save:focus-visible {
  color: #cf3f86;
  border-color: #cf3f86;
}

.dc-cookie__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  align-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(23, 32, 51, 0.6);
}

.dc-cookie__modal {
  width: min(100%, 680px);
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 20px;
  overflow-y: auto;
  color: #172033;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(23, 32, 51, 0.3);
}

.dc-cookie__modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.12);
}

.dc-cookie__close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #1d477f;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.dc-cookie__close:hover,
.dc-cookie__close:focus-visible {
  color: #cf3f86;
}

.dc-cookie__categories {
  display: grid;
  gap: 0;
}

.dc-cookie__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid rgba(23, 32, 51, 0.12);
  cursor: pointer;
}

.dc-cookie__category:first-child {
  cursor: default;
}

.dc-cookie__category h3,
.dc-cookie__category strong {
  display: block;
  margin: 0 0 4px;
  color: #172033;
  font-size: 0.9375rem;
  font-weight: 700;
}

.dc-cookie__required {
  flex: 0 0 auto;
  color: #1d477f;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.dc-cookie__toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  accent-color: #cf3f86;
  cursor: pointer;
}

.dc-cookie__toggle:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dc-cookie-policy table {
  width: 100%;
  margin: 18px 0 26px;
  border-collapse: collapse;
}

.dc-cookie-policy th,
.dc-cookie-policy td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(23, 32, 51, 0.14);
}

.dc-cookie-policy th {
  color: #fff;
  background: #1d477f;
}

.dc-cookie__policy-link {
  padding: 16px 0;
}

.dc-cookie__preferences {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  color: #fff;
  background: #1d477f;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(23, 32, 51, 0.2);
  font-size: 0.8125rem;
  font-weight: 700;
}

.dc-cookie__preferences .material-icons {
  font-size: 1.125rem;
}

.dc-cookie__preferences:hover,
.dc-cookie__preferences:focus-visible {
  color: #fff;
  background: #cf3f86;
}

.dc-cookie-modal-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .dc-cookie__banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 22px 24px;
  }

  .dc-cookie__actions {
    grid-template-columns: repeat(3, minmax(145px, auto));
  }

  .dc-cookie__modal {
    padding: 26px;
  }

  .dc-cookie__modal-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .dc-cookie__banner {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 16px;
  }

  .dc-cookie__modal-header,
  .dc-cookie__category {
    gap: 12px;
  }

  .dc-cookie__preferences span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .dc-cookie__preferences {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }

  .dc-cookie-policy {
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
  }

  .dc-cookie-policy table {
    min-width: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-cookie__button,
  .dc-cookie__preferences {
    transition: none;
  }
}
