#bs-cookie-banner {
  position: fixed;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 99999;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
}

.bs-cookie-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  color: #111111;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  box-sizing: border-box;
  pointer-events: auto;
}

.bs-cookie-panel-settings {
  display: block;
  width: min(100%, 620px);
  min-height: 0;
  padding: 22px 26px 24px;
}

.bs-cookie-header {
  margin: 0 34px 16px 0;
}

.bs-cookie-label {
  margin: 0 0 4px;
  color: #527df6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.bs-cookie-panel h2 {
  margin: 0;
  color: #111111;
  font-size: 20px;
  line-height: 1.2;
}

.bs-cookie-text {
  margin: 0;
  max-width: 820px;
  color: #202020;
  font-size: 13px;
  line-height: 1.35;
}

.bs-cookie-text a,
.bs-cookie-links a {
  color: #223a8f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bs-cookie-settings {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.bs-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.bs-cookie-category strong {
  display: block;
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.25;
}

.bs-cookie-category p {
  margin: 0;
  color: #333333;
  font-size: 13px;
  line-height: 1.35;
}

.bs-cookie-badge {
  white-space: nowrap;
  color: #527df6;
  background: rgba(82, 125, 246, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}

.bs-cookie-toggle-row {
  cursor: pointer;
}

.bs-cookie-toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: #527df6;
}

.bs-cookie-links {
  margin: 12px 0 0;
  color: #333333;
  font-size: 12px;
  line-height: 1.35;
}

.bs-cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.bs-cookie-panel-settings .bs-cookie-actions {
  margin-top: 22px;
}

.bs-cookie-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bs-cookie-button:hover {
  transform: translateY(-1px);
}

.bs-cookie-button-link {
  min-height: auto;
  padding: 0;
  color: #223a8f;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bs-cookie-button-secondary {
  color: #111111;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
}

.bs-cookie-button-dark {
  color: #ffffff;
  background: #111111;
}

.bs-cookie-button-primary {
  color: #ffffff;
  background: #527df6;
}

.bs-cookie-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #222222;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.bs-cookie-panel-settings .bs-cookie-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.bs-cookie-close:hover {
  background: #f2f2f2;
}

@media (max-width: 760px) {
  .bs-cookie-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .bs-cookie-panel > .bs-cookie-close {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .bs-cookie-panel:not(.bs-cookie-panel-settings) {
    padding-right: 50px;
  }

  .bs-cookie-actions {
    justify-content: flex-start;
  }

  .bs-cookie-panel-settings {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 18px 16px;
  }

  .bs-cookie-category {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bs-cookie-button {
    min-height: 40px;
  }
}
