.ebpdh-cookie-consent[hidden],
.ebpdh-cookie-manage[hidden] { display: none !important; }

/* Version compacte : bas gauche, sans arrière-plan noir */
.ebpdh-cookie-consent {
  position: fixed;
  left: 18px;
  right: auto;
  top: auto;
  bottom: 18px;
  width: min(390px, calc(100vw - 28px));
  z-index: 1050;
  padding: 0;
  background: transparent !important;
  font-family: inherit;
  pointer-events: none;
}

.ebpdh-cookie-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  color: #222;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
  overflow: hidden;
  pointer-events: auto;
}

.ebpdh-cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid #eef0f2;
  font-size: 14px;
  line-height: 1.25;
}

.ebpdh-cookie-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 0 2px;
}

.ebpdh-cookie-body {
  padding: 11px 13px 5px;
  font-size: 13px;
}

.ebpdh-cookie-body p {
  margin: 0 0 8px;
  line-height: 1.38;
}

.ebpdh-cookie-link-wrap a {
  color: var(--cookie-primary, #007bff);
  font-weight: 600;
  font-size: 12.5px;
}

.ebpdh-cookie-preferences {
  margin-top: 9px;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  overflow: hidden;
}

.ebpdh-cookie-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border-bottom: 1px solid #eef0f2;
  cursor: pointer;
}

.ebpdh-cookie-row:last-child { border-bottom: 0; }

.ebpdh-cookie-row strong { font-size: 13px; }

.ebpdh-cookie-row small {
  display: block;
  margin-top: 2px;
  color: #666;
  font-size: 11.5px;
  line-height: 1.3;
}

.ebpdh-cookie-row input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.ebpdh-cookie-row-disabled {
  cursor: not-allowed;
  opacity: .78;
}

.ebpdh-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px 13px 12px;
}

.ebpdh-cookie-btn,
.ebpdh-cookie-manage {
  border: 1px solid #d9dee3;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.ebpdh-cookie-btn:hover,
.ebpdh-cookie-manage:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .10);
}

.ebpdh-cookie-btn-light {
  background: #fff;
  color: #222;
}

.ebpdh-cookie-btn-primary {
  background: var(--cookie-primary, #007bff);
  border-color: var(--cookie-primary, #007bff);
  color: #fff;
}

/* Petit bouton de gestion après acceptation/refus */
.ebpdh-cookie-manage {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 1049;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #222;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
  pointer-events: auto;
}

.ebpdh-cookie-manage-icon {
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 640px) {
  .ebpdh-cookie-consent {
    left: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .ebpdh-cookie-manage {
    left: 10px;
    bottom: 10px;
  }

  .ebpdh-cookie-actions {
    justify-content: stretch;
  }

  .ebpdh-cookie-btn {
    flex: 1 1 calc(50% - 7px);
  }

  .ebpdh-cookie-row {
    align-items: flex-start;
  }
}
