.eadm-consent-panel,
.eadm-consent-footer-link {
  font-family: Arial, Helvetica, sans-serif;
}

.eadm-consent-panel[hidden] {
  display: none !important;
}

.eadm-consent-panel {
  position: fixed;
  z-index: 10000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 780px;
  margin: 0 auto;
  padding: 1.25rem;
  color: #17213a;
  background: #fff;
  border: 1px solid rgba(23, 33, 58, 0.18);
  border-top: 5px solid #3c7f46;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.eadm-consent-panel h2 {
  margin: 0 0 0.55rem;
  color: #17213a;
  font-size: 1.18rem;
  line-height: 1.3;
}

.eadm-consent-panel > p {
  margin: 0;
  color: #364153;
  font-size: 0.96rem;
  line-height: 1.55;
}

.eadm-consent-categories {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.eadm-consent-category {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(23, 33, 58, 0.16);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.eadm-consent-toggle {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  accent-color: #3c7f46;
}

.eadm-consent-category strong,
.eadm-consent-category small {
  display: block;
}

.eadm-consent-category strong {
  color: #17213a;
  font-size: 0.94rem;
}

.eadm-consent-category small {
  margin-top: 0.18rem;
  color: #4b5563;
  font-size: 0.83rem;
  line-height: 1.4;
}

.eadm-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.eadm-consent-actions button {
  min-height: 42px;
  padding: 0.62rem 1rem;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.eadm-consent-actions button:focus-visible,
.eadm-consent-toggle:focus-visible,
.eadm-consent-footer-link:focus-visible {
  outline: 3px solid #f2c94c;
  outline-offset: 2px;
}

.eadm-consent-accept {
  color: #fff;
  background: #3c7f46;
  border: 2px solid #3c7f46;
}

.eadm-consent-accept:hover {
  background: #2f6938;
  border-color: #2f6938;
}

.eadm-consent-reject,
.eadm-consent-close {
  color: #17213a;
  background: #fff;
  border: 2px solid #17213a;
}

.eadm-consent-reject:hover,
.eadm-consent-close:hover {
  background: #eef2f6;
}

.eadm-consent-save {
  color: #fff;
  background: #464ea1;
  border: 2px solid #464ea1;
}

.eadm-consent-save:hover {
  background: #363d83;
  border-color: #363d83;
}

/* Le lien reste accessible dans le pied de page, mais il n'est plus flottant. */
.eadm-consent-footer-link {
  display: inline;
  margin: 0 0 0 0.75rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

.eadm-consent-footer-link:hover {
  text-decoration-thickness: 2px;
}

html[dir="rtl"] .eadm-consent-panel,
.rtl-site .eadm-consent-panel {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .eadm-consent-footer-link,
.rtl-site .eadm-consent-footer-link {
  margin: 0 0.75rem 0 0;
}

@media (max-width: 600px) {
  .eadm-consent-panel {
    right: 0.55rem;
    bottom: 0.55rem;
    left: 0.55rem;
    max-height: calc(100vh - 1.1rem);
    overflow-y: auto;
    padding: 1rem;
  }

  .eadm-consent-actions {
    display: grid;
  }

  .eadm-consent-actions button {
    width: 100%;
  }

  .eadm-consent-footer-link {
    display: block;
    margin: 0.45rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eadm-consent-panel {
    scroll-behavior: auto;
  }
}
