.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
}

.cookie-banner--visible {
  display: flex;
}

.cookie-banner__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.cookie-banner__container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 600px;
  background: white;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10000;
}

.cookie-banner__content {
  padding: 24px;
}

.cookie-banner__header {
  margin-bottom: 16px;
}

.cookie-banner__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.cookie-banner__text {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.cookie-banner__text p {
  margin: 0;
}

.cookie-banner__link {
  color: var(--orange, #2563eb);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.cookie-banner__link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Settings Details (Accordion) */
.cookie-banner__settings-details {
  margin-bottom: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.cookie-banner__setting {
  margin-bottom: 16px;
}

.cookie-banner__setting:last-child {
  margin-bottom: 0;
}

.cookie-banner__setting-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cookie-banner__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--orange, #2563eb);
  flex-shrink: 0;
}

.cookie-banner__checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-banner__label {
  cursor: pointer;
  font-size: 14px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner__label strong {
  font-weight: 600;
}

.cookie-banner__badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--orange, #2563eb);
  color: white;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-banner__description {
  margin: 0;
  padding-left: 30px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* Buttons */
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.cookie-banner__button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-banner__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-banner__button--primary {
  background: var(--orange, #2563eb);
  color: white;
  flex: 1;
  min-width: 140px;
}

.cookie-banner__button--primary:hover:not(:disabled) {
  background: var(--orange-light, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cookie-banner__button--secondary {
  background: white;
  color: var(--orange, #2563eb);
  border: 2px solid var(--orange, #2563eb);
  flex: 1;
  min-width: 140px;
}

.cookie-banner__button--secondary:hover:not(:disabled) {
  background: var(--orange, #2563eb);
  color: white;
}

.cookie-banner__button--toggle {
  background: white;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  flex-shrink: 0;
}

.cookie-banner__button--toggle:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.cookie-banner__toggle-icon {
  display: inline-block;
  transition: transform 0.3s;
  font-size: 12px;
}

.cookie-banner__button--toggle[aria-expanded="true"] .cookie-banner__toggle-icon {
  transform: rotate(180deg);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .cookie-banner__container {
    border-radius: 0;
    max-width: 100%;
  }

  .cookie-banner__content {
    padding: 16px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    gap: 10px;
  }

  .cookie-banner__button {
    width: 100%;
    min-width: unset;
  }

  .cookie-banner__button--toggle {
    width: 100%;
  }

  .cookie-banner__text {
    font-size: 13px;
  }

  .cookie-banner__title {
    font-size: 16px;
  }
}
