.kb-cc-banner,
.kb-cc-fab,
.kb-cc-modal {
  --kb-cc-primary: #066168;
  --kb-cc-turquoise: #1bafd3;
  --kb-cc-link: #0f8295;
  --kb-cc-accent: #ffaa0d;
  --kb-cc-ink: #17343a;
  --kb-cc-text: #4a5d61;
  --kb-cc-border: #dbeeee;
  --kb-cc-bg: #ffffff;
  --kb-cc-header: linear-gradient(120deg, #066168 0%, #17a2c1 100%);
  --kb-cc-button: linear-gradient(120deg, #066168 0%, #0f8295 100%);
  font-family: "Figtree", Arial, sans-serif;
  color: var(--kb-cc-text);
  line-height: 1.5;
  box-sizing: border-box;
}

.kb-cc-banner *,
.kb-cc-modal * {
  box-sizing: border-box;
}

.kb-cc-banner {
  position: fixed;
  z-index: 99990;
  left: 24px;
  bottom: 24px;
  width: 370px;
  max-width: calc(100vw - 32px);
  padding: 18px 20px 14px;
  overflow: hidden;
  background: var(--kb-cc-bg);
  border: 1px solid var(--kb-cc-border);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(6, 97, 104, 0.25);
  animation: kb-cc-up 0.35s ease-out;
}

@keyframes kb-cc-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kb-cc-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.kb-cc-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -18px -20px 14px;
  padding: 12px 14px 12px 20px;
  background: var(--kb-cc-header);
}

.kb-cc-banner-header .kb-cc-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.kb-cc-banner-header .kb-cc-close {
  font-size: 24px;
}

.kb-cc-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--kb-cc-accent);
}

.kb-cc-icon svg {
  width: 22px;
  height: 22px;
}

.kb-cc-banner .kb-cc-text {
  margin-bottom: 14px;
  font-size: 14px;
}

.kb-cc-banner .kb-cc-actions {
  gap: 8px;
}

.kb-cc-banner .kb-cc-actions .kb-cc-btn {
  padding: 10px 14px;
  font-size: 14px;
  white-space: normal;
}

.kb-cc-banner .kb-cc-btn-primary,
.kb-cc-banner .kb-cc-btn-outline {
  flex: 1 1 calc(50% - 4px);
}

.kb-cc-banner .kb-cc-actions .kb-cc-btn-ghost {
  flex: 1 1 100%;
  padding: 4px 8px;
}

.kb-cc-fab {
  position: fixed;
  z-index: 99980;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kb-cc-turquoise) 0%, var(--kb-cc-primary) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(6, 97, 104, 0.3);
  cursor: pointer;
  animation: kb-cc-pop 0.3s ease-out;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}

.kb-cc-fab[hidden] {
  display: none;
}

.kb-cc-fab:hover {
  background: var(--kb-cc-accent);
  color: var(--kb-cc-ink);
  transform: rotate(-15deg) scale(1.05);
}

.kb-cc-fab svg {
  width: 26px;
  height: 26px;
}

.kb-cc-title {
  margin: 0 0 6px;
  font-family: "Afacad", "Figtree", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--kb-cc-ink);
}

.kb-cc-text {
  margin: 0;
  font-size: 15px;
}

.kb-cc-link {
  color: var(--kb-cc-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kb-cc-link:hover {
  color: var(--kb-cc-primary);
}

.kb-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.kb-cc-btn {
  appearance: none;
  border: 1px solid var(--kb-cc-link);
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.kb-cc-btn:focus-visible,
.kb-cc-close:focus-visible,
.kb-cc-fab:focus-visible,
.kb-cc-switch input:focus-visible + .kb-cc-slider {
  outline: 3px solid var(--kb-cc-accent);
  outline-offset: 2px;
}

.kb-cc-btn-primary {
  background: var(--kb-cc-button);
  border-color: transparent;
  color: #fff;
}

.kb-cc-btn-primary:hover {
  background: var(--kb-cc-accent);
  border-color: var(--kb-cc-accent);
  color: var(--kb-cc-ink);
}

.kb-cc-btn-outline {
  background: #fff;
  color: var(--kb-cc-link);
}

.kb-cc-btn-outline:hover {
  background: var(--kb-cc-button);
  border-color: transparent;
  color: #fff;
}

.kb-cc-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--kb-cc-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 8px;
  padding-right: 8px;
}

.kb-cc-btn-ghost:hover {
  color: var(--kb-cc-primary);
}

html.kb-cc-open,
html.kb-cc-open body {
  overflow: hidden;
}

.kb-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 97, 104, 0.55);
}

.kb-cc-dialog {
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  background: var(--kb-cc-bg);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(6, 97, 104, 0.35);
}

.kb-cc-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -28px -28px 18px;
  padding: 20px 24px 20px 28px;
  background: var(--kb-cc-header);
}

.kb-cc-dialog-header .kb-cc-title {
  margin: 0;
  color: #fff;
}

.kb-cc-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.kb-cc-dialog > .kb-cc-text {
  margin-bottom: 18px;
}

.kb-cc-category {
  padding: 16px 0;
  border-top: 1px solid var(--kb-cc-border);
}

.kb-cc-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kb-cc-category-title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--kb-cc-ink);
  cursor: pointer;
}

.kb-cc-always {
  font-size: 13px;
  font-weight: 600;
  color: var(--kb-cc-link);
}

.kb-cc-category-text {
  margin: 6px 0 0;
  font-size: 14px;
}

.kb-cc-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
}

.kb-cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.kb-cc-switch input:disabled {
  cursor: not-allowed;
}

.kb-cc-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c5d6d8;
  transition: background 0.2s;
}

.kb-cc-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.kb-cc-switch input:checked + .kb-cc-slider {
  background: var(--kb-cc-button);
}

.kb-cc-switch input:disabled + .kb-cc-slider {
  opacity: 0.6;
}

.kb-cc-switch input:checked + .kb-cc-slider::before {
  transform: translateX(20px);
}

.kb-cc-dialog .kb-cc-actions {
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--kb-cc-border);
}

@media (max-width: 575px) {
  .kb-cc-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 16px 16px 12px;
  }

  .kb-cc-banner-header {
    margin: -16px -16px 12px;
    padding: 10px 10px 10px 16px;
  }

  .kb-cc-banner .kb-cc-text {
    max-height: 30vh;
    overflow-y: auto;
  }

  .kb-cc-fab {
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }

  .kb-cc-actions .kb-cc-btn-primary,
  .kb-cc-actions .kb-cc-btn-outline {
    flex: 1 1 calc(50% - 5px);
  }

  .kb-cc-dialog {
    padding: 20px;
  }

  .kb-cc-dialog-header {
    margin: -20px -20px 16px;
    padding: 16px 16px 16px 20px;
  }

  .kb-cc-dialog .kb-cc-actions .kb-cc-btn {
    flex: 1 1 100%;
  }
}
