.wpconsent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.3);
  transform: translateY(120%);
  transition: transform 0.3s ease;
  z-index: 9999;
}

.wpconsent-banner.is-visible {
  transform: translateY(0);
}

.wpconsent-banner__content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.wpconsent-banner__reopen {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

.wpconsent-banner__reopen-icon {
  font-size: 20px;
  line-height: 1;
}

.wpconsent-banner.is-minimized {
  width: auto;
  left: 16px;
  right: auto;
  bottom: 16px;
  border-radius: 999px;
  padding: 0;
}

.wpconsent-banner.is-minimized .wpconsent-banner__content {
  display: none;
}

.wpconsent-banner.is-minimized .wpconsent-banner__reopen {
  display: flex;
}

.wpconsent-banner__headline {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
}

.wpconsent-banner__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 640px;
}

.wpconsent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wpconsent-button {
  border: 1px solid #cbd5f5;
  background: transparent;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.wpconsent-button--primary {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
  font-weight: 600;
}

.wpconsent-button--ghost {
  background: transparent;
  border-color: transparent;
  color: #bae6fd;
}

.wpconsent-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.wpconsent-modal.is-active {
  display: flex;
}

.wpconsent-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.wpconsent-modal__content {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  padding: 32px;
  border-radius: 12px;
  width: min(720px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1;
}

.wpconsent-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #0f172a;
}

.wpconsent-modal__headline {
  margin-top: 0;
}

.wpconsent-categories {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

.wpconsent-category {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.wpconsent-category__info h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.wpconsent-category__info p {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

.wpconsent-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.wpconsent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wpconsent-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5f5;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.wpconsent-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.wpconsent-switch input:checked + .wpconsent-slider {
  background: #38bdf8;
}

.wpconsent-switch input:checked + .wpconsent-slider::before {
  transform: translateX(20px);
}

.wpconsent-toggle--locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
}

.wpconsent-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .wpconsent-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .wpconsent-banner__actions {
    width: 100%;
  }

  .wpconsent-button {
    width: 100%;
  }
}
