.aube-cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 99999;
}

.aube-cookie-consent-toggle {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 99998;
  border: 0;
  border-radius: 999px;
  width: 58px;
  height: 58px;
  padding: 0;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.32);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.aube-cookie-consent-toggle img {
  width: 28px;
  height: 28px;
}

.aube-cookie-consent-toggle:hover,
.aube-cookie-consent-toggle:focus-visible {
  transform: translateY(-2px);
  background: #f8fafc;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
}

.aube-cookie-consent__panel {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(203, 213, 225, 0.9);
}

.aube-cookie-consent__content {
  padding: 1.1rem 1.15rem;
}

.aube-cookie-consent__content h2 {
  margin: 0 0 0.5rem;
  color: #10233b;
  font-size: 1.12rem;
}

.aube-cookie-consent__content p {
  margin: 0 0 0.85rem;
  color: #475569;
  font-size: 0.96rem;
}

.aube-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.aube-cookie-consent__preferences {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
}

.aube-cookie-consent__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.82rem 0.9rem;
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.aube-cookie-consent__option-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.aube-cookie-consent__option-copy strong {
  font-size: 0.95rem;
}

.aube-cookie-consent__option-copy small {
  color: #64748b;
  font-size: 0.84rem;
}

.aube-cookie-consent__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.aube-cookie-consent__switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.aube-cookie-consent__slider {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 180ms ease;
}

.aube-cookie-consent__slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
  transition: transform 180ms ease;
}

.aube-cookie-consent__switch input:checked + .aube-cookie-consent__slider {
  background: linear-gradient(135deg, #6ea6d9, #1e5a96);
}

.aube-cookie-consent__switch input:checked + .aube-cookie-consent__slider::after {
  transform: translateX(26px);
}

.aube-cookie-consent__actions .button {
  border: 1px solid #d4dce6;
  border-radius: 999px;
  padding: 0.78rem 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #ffffff;
  color: #10233b;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  font-size: 0.92rem;
}

.aube-cookie-consent__actions .button-primary {
  background: linear-gradient(135deg, #c88f2d, #d9b36a);
  border-color: rgba(200, 143, 45, 0.45);
  color: #fff;
}

.aube-cookie-consent__actions .button-secondary {
  background: #eef5fb;
  border-color: #bed4ea;
}

.aube-cookie-consent__actions .button-reject {
  background: #f8fafc;
  border-color: #d4dce6;
}

.aube-cookie-consent__actions .button:hover,
.aube-cookie-consent__actions .button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.aube-cookie-consent__actions .button-primary:hover,
.aube-cookie-consent__actions .button-primary:focus-visible {
  background: linear-gradient(135deg, #b97f1f, #cf9e49);
}

.aube-cookie-consent__actions .button-secondary:hover,
.aube-cookie-consent__actions .button-secondary:focus-visible {
  background: #e2eef9;
  border-color: #94b8dd;
}

.aube-cookie-consent__actions .button-reject:hover,
.aube-cookie-consent__actions .button-reject:focus-visible {
  background: #eef2f7;
  border-color: #c4cfdb;
}

.aube-cookie-consent-admin .widefat td,
.aube-cookie-consent-admin .widefat th {
  vertical-align: top;
}

@media (max-width: 640px) {
  .aube-cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .aube-cookie-consent-toggle {
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .aube-cookie-consent__actions .button {
    width: 100%;
    justify-content: center;
  }

  .aube-cookie-consent__option {
    align-items: flex-start;
  }
}
