.kb-cookie-hidden {
  display: none !important;
}

.kb-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  border: 1px solid #3f5b7c;
  border-radius: 16px;
  background: linear-gradient(180deg, #122033 0%, #0f1b2a 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: #e7f2ff;
  padding: 14px;
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
}

.kb-cookie-title {
  margin: 0 0 8px;
  font-size: 1.03rem;
  line-height: 1.2;
  color: #ffffff;
}

.kb-cookie-body {
  margin: 0;
  color: #d2e4f9;
  font-size: 0.92rem;
  line-height: 1.45;
}

.kb-cookie-body a {
  color: #99d7ff;
  text-decoration: underline;
}

.kb-cookie-actions {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kb-cookie-btn {
  appearance: none;
  border: 1px solid #4f749f;
  border-radius: 10px;
  background: rgba(25, 46, 72, 0.82);
  color: #e7f2ff;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.kb-cookie-btn:hover {
  border-color: #75aee5;
}

.kb-cookie-btn:focus-visible {
  outline: 3px solid rgba(125, 190, 255, 0.4);
  outline-offset: 1px;
}

.kb-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(5, 11, 18, 0.72);
  display: grid;
  place-items: center;
  padding: 16px;
}

.kb-cookie-panel {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #3f5b7c;
  border-radius: 18px;
  background: linear-gradient(180deg, #122033 0%, #0f1b2a 100%);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5);
  color: #e7f2ff;
  padding: 16px;
}

.kb-cookie-panel h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #ffffff;
}

.kb-cookie-panel-intro {
  margin: 10px 0 14px;
  color: #d2e4f9;
  font-size: 0.92rem;
  line-height: 1.45;
}

.kb-cookie-category {
  border: 1px solid #365372;
  border-radius: 12px;
  background: rgba(17, 31, 49, 0.68);
  padding: 12px;
}

.kb-cookie-category + .kb-cookie-category {
  margin-top: 10px;
}

.kb-cookie-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.kb-cookie-category-title {
  margin: 0;
  font-size: 0.96rem;
  color: #ffffff;
}

.kb-cookie-category-desc {
  margin: 8px 0 0;
  color: #d2e4f9;
  font-size: 0.9rem;
  line-height: 1.42;
}

.kb-cookie-switch {
  width: 46px;
  height: 26px;
}

.kb-cookie-switch[disabled] {
  opacity: 0.8;
  cursor: not-allowed;
}

.kb-cookie-panel-actions {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kb-cookie-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1400;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid #4f749f;
  border-radius: 12px;
  background: rgba(12, 27, 42, 0.98);
  color: #e8f4ff;
  padding: 10px 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.88rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .kb-cookie-actions,
  .kb-cookie-panel-actions {
    grid-template-columns: 1fr;
  }
}