:root {
  --dz-cc-z: 6000;
}

.dz-cc {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: var(--dz-cc-z);
}

.dz-cc a {
  color: var(--wp--preset--color--navy, #202b44);
}

.dz-cc__banner {
  background: var(--wp--preset--color--white, #fff);
  border: 1px solid var(--wp--preset--color--navy, #202b44);
  border-radius: 16px;
  bottom: 18px;
  box-shadow: 4px 4px 20px #0000001f;
  box-sizing: border-box;
  left: 18px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 15px;
  pointer-events: auto;
  position: absolute;
  transform: none;
  width: calc(100vw - 36px);
}

.dz-cc__banner-content {
  max-width: none;
}

.dz-cc__title,
.dz-cc__modal-title {
  color: var(--wp--preset--color--navy, #202b44);
  font-family: var(--wp--preset--font-family--jost, sans-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.dz-cc__text,
.dz-cc__modal-text,
.dz-cc__category p {
  color: var(--wp--preset--color--navy, #202b44);
  font-family: var(--wp--preset--font-family--inter, sans-serif);
  font-size: 14px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.dz-cc__actions,
.dz-cc__modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 12px;
}

.dz-cc__btn {
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--wp--preset--font-family--jost, sans-serif);
  font-size: 15px;
  font-weight: 500;
  gap: 8px;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
}

.dz-cc__btn--primary {
  background: var(--wp--preset--color--navy, #202b44);
  border: 1px solid var(--wp--preset--color--navy, #202b44);
  color: var(--wp--preset--color--white, #fff);
}

.dz-cc__btn--ghost {
  background: transparent;
  border: 1px solid var(--wp--preset--color--navy, #202b44);
  color: var(--wp--preset--color--navy, #202b44);
}

.dz-cc__btn:hover {
  text-decoration: underline;
}

.dz-cc__btn:focus-visible,
.dz-cc__close:focus-visible,
.dz-cc__category input:focus-visible {
  outline: 2px dashed var(--wp--preset--color--navy, #202b44);
  outline-offset: 2px;
}

.dz-cc__modal {
  inset: 0;
  pointer-events: auto;
  position: absolute;
}

.dz-cc__backdrop {
  background: #00000066;
  inset: 0;
  position: absolute;
}

.dz-cc__dialog {
  background: var(--wp--preset--color--white, #fff);
  border-radius: 20px;
  box-shadow: 0 10px 30px #0000002e;
  box-sizing: border-box;
  left: 50%;
  max-height: calc(100vh - 36px);
  max-width: min(780px, calc(100vw - 36px));
  overflow: auto;
  padding: 22px;
  position: absolute;
  top: 18px;
  transform: translateX(-50%);
  width: 100%;
}

.dz-cc__close {
  background: transparent;
  border: 0;
  color: var(--wp--preset--color--navy, #202b44);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 6px;
}

.dz-cc__category {
  background: var(--wp--preset--color--gray-light, #f3f4f8);
  border-radius: 10px;
  margin-top: 10px;
  padding: 10px 12px;
}

.dz-cc__category label {
  align-items: center;
  color: var(--wp--preset--color--navy, #202b44);
  display: flex;
  font-family: var(--wp--preset--font-family--jost, sans-serif);
  font-size: 18px;
  font-weight: 500;
  gap: 9px;
}

.dz-cc__category input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.dz-cc__category--locked {
  border: 1px solid var(--wp--preset--color--navy, #202b44);
}

@media (max-width: 768px) {
  .dz-cc__banner {
    border-radius: 14px;
    bottom: 12px;
    left: 12px;
    max-width: min(360px, calc(100vw - 24px));
    padding: 12px;
    width: calc(100vw - 24px);
  }

  .dz-cc__title,
  .dz-cc__modal-title {
    font-size: 20px;
  }

  .dz-cc__dialog {
    border-radius: 14px;
    max-width: calc(100vw - 20px);
    padding: 18px;
    top: 10px;
  }

  .dz-cc__btn {
    font-size: 14px;
  }

  .dz-cc__actions,
  .dz-cc__modal-actions {
    justify-content: flex-start;
  }
}
