.kc-banner,
.kc-overlay,
.kc-dialog,
.kc-dialog *,
.kc-banner * {
  box-sizing: border-box;
}

.kc-banner,
.kc-overlay {
  --kc-primary: #2c3e89;
  --kc-primary-dark: #243373;
  --kc-primary-soft: #edf1ff;
}

.kc-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9998;
  padding: 16px;
  color: #1c1c1c;
  background: #ffffff;
  border-top: 1px solid #d8d8d8;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
  font-family: Arial, Helvetica, sans-serif;
}

.kc-banner__content {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
}

.kc-banner__text {
  max-width: 680px;
}

.kc-banner__title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.kc-banner__description {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.kc-banner__actions,
.kc-dialog__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.kc-button {
  min-height: 42px;
  padding: 10px 16px;
  color: #1c1c1c;
  background: #ffffff;
  border: 1px solid #9c9c9c;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
}

.kc-button:hover,
.kc-button:focus {
  border-color: #1c1c1c;
  outline: 2px solid transparent;
}

.kc-button:focus-visible,
.kc-dialog__close:focus-visible,
.kc-toggle input:focus-visible + .kc-toggle__visual {
  outline: 3px solid #1f6feb;
  outline-offset: 2px;
}

.kc-button--primary {
  color: #ffffff;
  background: var(--kc-primary);
  border-color: var(--kc-primary);
}

.kc-button--primary:hover,
.kc-button--primary:focus {
  background: var(--kc-primary-dark);
  border-color: var(--kc-primary-dark);
}

.kc-button--secondary {
  background: #f5f5f5;
}

.kc-button--plain {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
}

.kc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.48);
  font-family: Arial, Helvetica, sans-serif;
}

.kc-dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  color: #1c1c1c;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.kc-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #1c1c1c;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 0;
  cursor: pointer;
}

.kc-dialog__close::before,
.kc-dialog__close::after {
  position: absolute;
  top: 17px;
  left: 9px;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
}

.kc-dialog__close::before {
  transform: rotate(45deg);
}

.kc-dialog__close::after {
  transform: rotate(-45deg);
}

.kc-dialog__title {
  margin: 0 44px 8px 0;
  font-size: 24px;
  line-height: 1.25;
}

.kc-dialog__intro {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
}

.kc-option {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #e4e4e4;
}

.kc-option__body {
  display: block;
  min-width: 0;
}

.kc-option__title {
  display: block;
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.kc-option__text {
  display: block;
  margin: 0;
  color: #454545;
  font-size: 14px;
  line-height: 1.45;
}

.kc-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--kc-primary);
  background: var(--kc-primary-soft);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.kc-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 30px;
}

.kc-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.kc-toggle__visual {
  position: absolute;
  inset: 0;
  background: #767676;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease;
}

.kc-toggle__visual::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.16s ease;
}

.kc-toggle input:checked + .kc-toggle__visual {
  background: var(--kc-primary);
}

.kc-toggle input:checked + .kc-toggle__visual::after {
  transform: translateX(24px);
}

.kc-dialog__actions {
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid #e4e4e4;
}

@media (max-width: 720px) {
  .kc-banner__content {
    display: block;
  }

  .kc-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .kc-button {
    width: 100%;
  }

  .kc-dialog {
    padding: 24px 18px;
  }

  .kc-option {
    align-items: flex-start;
  }

  .kc-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
