.ka-consent,
.ka-consent * {
  box-sizing: border-box;
}

.ka-consent {
  position: fixed;
  z-index: 10000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: min(680px, calc(100% - 32px));
  margin-inline: auto;
  padding: 20px;
  color: #2d2830;
  background: #fff;
  border: 1px solid #dfcfd3;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgb(45 40 48 / 18%);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
}

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

.ka-consent h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.45;
}

.ka-consent p {
  margin: 8px 0;
  font-size: .95rem;
}

.ka-consent__status {
  color: #635c64;
  font-weight: 700;
}

.ka-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.ka-consent__button {
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid #6c3d5b;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ka-consent__button--grant {
  color: #fff;
  background: #6c3d5b;
}

.ka-consent__button--deny {
  color: #6c3d5b;
  background: #fff;
}

.ka-consent__button:focus-visible,
.ka-settings-link:focus-visible {
  outline: 3px solid #0b6b5b;
  outline-offset: 2px;
}

.ka-settings-control {
  margin-top: 12px;
}

.ka-settings-link {
  padding: 0;
  color: #245c7a;
  background: none;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 520px) {
  .ka-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 16px;
    overflow: auto;
  }

  .ka-consent__actions {
    grid-template-columns: 1fr;
  }
}
