#nadice-cookie-consent {
  color: var(--ink, var(--color-dark, #050925));
  font: inherit;
}

#nadice-cookie-consent *,
#nadice-cookie-consent *::before,
#nadice-cookie-consent *::after {
  box-sizing: border-box;
}

#nadice-cookie-consent button {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #d7dae0;
  border-radius: 24px;
  background: #fff;
  color: #111a2b;
  cursor: pointer;
  white-space: nowrap;
}

#nadice-cookie-consent button:hover {
  background: #f1f4f9;
}

#nadice-cookie-consent .consent-primary {
  background: var(--color-dark, #080e1c);
  color: #fff;
  border-color: transparent;
}

#nadice-cookie-consent :focus-visible,
.legal-links :focus-visible {
  outline: 3px solid var(--blue, var(--color-primary, #006ced));
  outline-offset: 3px;
}

#nadice-cookie-consent p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: normal;
}

.consent-banner {
  position: fixed;
  z-index: 10000;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 40px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid #dce0e7;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 8px 30px #080e1c20;
}

.consent-banner[hidden] {
  display: none;
}

.consent-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f3f4f6;
  flex-shrink: 0;
}

.consent-banner p {
  flex: 1;
}

.consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.consent-dialog {
  color: #111a2b;
  background: #fff;
  margin: auto;
  padding: 28px;
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid #dce0e7;
  border-radius: 24px;
  box-shadow: 0 24px 80px #080e1c30;
}

.consent-dialog::backdrop {
  background: #080e1c88;
}

.consent-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

#nadice-cookie-consent h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
  letter-spacing: -.03em;
}

#nadice-cookie-consent button[data-consent-close] {
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.consent-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

.consent-category strong {
  font-weight: 600;
  font-size: 16px;
}

.consent-category span {
  font-size: 12px;
  white-space: nowrap;
}

.consent-category input {
  appearance: none;
  width: 44px;
  height: 26px;
  min-width: 44px;
  border: 1px solid #737b8a;
  border-radius: 20px;
  background: #e5e7eb;
  cursor: pointer;
  position: relative;
}

.consent-category input::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0004;
}

.consent-category input:checked {
  background: #006ced;
  border-color: #006ced;
}

.consent-category input:checked::before {
  transform: translateX(18px);
}

#nadice-cookie-consent .consent-note {
  margin-top: 18px;
  font-size: 12px;
  color: #525d6f;
}

.consent-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}

#consent-error {
  color: #aa2020;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-block: 24px;
  font-size: 14px;
}

.legal-links a,
.legal-links button {
  color: inherit;
  font: inherit;
  padding: 6px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .consent-banner {
    flex-wrap: wrap;
    border-radius: 24px;
    gap: 12px;
  }

  .consent-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .consent-banner {
    width: calc(100% - 24px);
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 16px;
  }

  .consent-icon {
    display: none;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .consent-actions [data-cookie-settings] {
    grid-column: 1 / -1;
  }

  #nadice-cookie-consent button {
    padding: 10px 12px;
    font-size: 13px;
  }

  .consent-dialog {
    padding: 20px;
  }

  .consent-dialog-actions button {
    flex: 1;
  }
}

.consent-dialog {
  overscroll-behavior: contain;
}

#nadice-cookie-consent .consent-icon {
  background: transparent;
}

.consent-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.consent-heading-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.consent-heading-copy img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

#nadice-cookie-consent .consent-banner {
  width: min(1120px, calc(100% - 32px));
  gap: 12px;
  padding: 10px 14px;
}

#nadice-cookie-consent .consent-banner p {
  font-size: 13px;
  line-height: 1.5;
}

#nadice-cookie-consent .consent-banner .consent-icon {
  width: 36px;
  height: 36px;
}

#nadice-cookie-consent .consent-banner button {
  padding: 8px 14px;
  font-size: 13px;
}

#nadice-cookie-consent .consent-banner [data-consent-accept] {
  font-weight: 600;
}

@media (max-width: 520px) {
  #nadice-cookie-consent .consent-banner {
    width: calc(100% - 24px);
    padding: 12px;
    gap: 10px;
  }

  #nadice-cookie-consent .consent-banner button {
    padding-inline: 10px;
  }

  .consent-actions {
    gap: 6px;
  }
}