.cg-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
}

.cg-cookie-banner[hidden] {
  display: none !important;
}

.cg-cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(5, 21, 74, 0.9), rgba(12, 34, 103, 0.84));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgba(1, 7, 25, 0.5);
}

.cg-cookie-banner__header {
  margin-bottom: 14px;
}

.cg-cookie-banner__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cg-cookie-banner__logo {
  width: 150px;
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
  flex: 0 0 auto;
}

.cg-cookie-banner__title-wrap h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  color: #ffffff;
}

.cg-cookie-banner__title-wrap p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.cg-cookie-banner__content {
  margin-bottom: 14px;
}

.cg-cookie-banner__content p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
}

.cg-cookie-banner__content a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cg-cookie-banner__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.cg-cookie-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.cg-cookie-choice__text {
  min-width: 0;
}

.cg-cookie-choice__label {
  display: block;
  font-weight: 700;
  color: #ffffff;
}

.cg-cookie-choice__description {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
}

.cg-cookie-toggle {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.cg-cookie-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cg-cookie-toggle__ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cg-cookie-toggle__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.cg-cookie-toggle input:checked + .cg-cookie-toggle__ui {
  background: #ff603f;
  border-color: #ff603f;
}

.cg-cookie-toggle input:checked + .cg-cookie-toggle__ui::after {
  transform: translateX(22px);
}

.cg-cookie-toggle input:disabled + .cg-cookie-toggle__ui {
  opacity: 0.9;
}

.cg-cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cg-cookie-banner__actions .button {
  border-radius: 10px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 600;
}

.cg-cookie-banner__actions .button-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cg-cookie-banner__actions .button-primary {
  background: #ff603f;
  border-color: #ff603f;
}

@media (max-width: 900px) {
  .cg-cookie-banner__choices {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .cg-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cg-cookie-banner__inner {
    padding: 16px;
    border-radius: 14px;
  }

  .cg-cookie-banner__logo {
    width: 128px;
    max-height: 68px;
  }

  .cg-cookie-banner__title-wrap h3 {
    font-size: 21px;
  }

  .cg-cookie-banner__actions {
    flex-direction: column;
  }

  .cg-cookie-banner__actions .button {
    width: 100%;
  }

  .cg-cookie-banner--mobile-compact .cg-cookie-banner__inner {
    padding: 12px;
  }

  .cg-cookie-banner--mobile-compact .cg-cookie-banner__brand {
    gap: 10px;
  }

  .cg-cookie-banner--mobile-compact .cg-cookie-banner__logo {
    width: 88px;
    max-height: 44px;
  }

  .cg-cookie-banner--mobile-compact .cg-cookie-banner__title-wrap h3 {
    font-size: 18px;
  }

  .cg-cookie-banner--mobile-compact .cg-cookie-banner__title-wrap p {
    font-size: 12px;
  }

  .cg-cookie-banner--mobile-compact .cg-cookie-choice__description {
    display: none;
  }

  .cg-cookie-banner--mobile-compact .cg-cookie-choice {
    padding: 8px 10px;
  }

  .cg-cookie-banner--mobile-compact .cg-cookie-banner__actions .button {
    min-height: 38px;
    padding: 0 12px;
  }
}
