/* DIRECT HPA Cookie Consent
   Palette cohérente avec Camper Park / DIRECT HPA.
*/

#dhpa-cookie-consent,
#dhpa-cookie-consent * {
  box-sizing: border-box;
}

#dhpa-cookie-consent[hidden] {
  display: none !important;
}

#dhpa-cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  max-width: 980px;
  margin: 0 auto;
  background: #345e42;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
  font-family: inherit;
}

#dhpa-cookie-consent .dhpa-cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
}

#dhpa-cookie-consent .dhpa-cookie-consent__content {
  min-width: 0;
  flex: 1 1 auto;
}

#dhpa-cookie-consent .dhpa-cookie-consent__title {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

#dhpa-cookie-consent .dhpa-cookie-consent__text {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

#dhpa-cookie-consent .dhpa-cookie-consent__policy {
  display: inline-block;
  margin-top: 7px;
  color: #ffffff !important;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

#dhpa-cookie-consent .dhpa-cookie-consent__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

#dhpa-cookie-consent .dhpa-cookie-consent__btn {
  min-width: 110px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}

#dhpa-cookie-consent .dhpa-cookie-consent__btn:hover {
  opacity: .9;
}

#dhpa-cookie-consent .dhpa-cookie-consent__btn:active {
  transform: translateY(1px);
}

#dhpa-cookie-consent .dhpa-cookie-consent__btn--secondary {
  border: 2px solid #ffffff;
  background: #ffffff;
  color: #16281c;
}

#dhpa-cookie-consent .dhpa-cookie-consent__btn--primary {
  border: 2px solid #ff911b;
  background: #ff911b;
  color: #16281c;
}

#dhpa-cookie-consent .dhpa-cookie-consent__btn:focus-visible,
#dhpa-cookie-consent .dhpa-cookie-consent__policy:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  #dhpa-cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 8px;
  }

  #dhpa-cookie-consent .dhpa-cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  #dhpa-cookie-consent .dhpa-cookie-consent__title {
    font-size: 17px;
  }

  #dhpa-cookie-consent .dhpa-cookie-consent__text {
    font-size: 14px;
  }

  #dhpa-cookie-consent .dhpa-cookie-consent__actions {
    width: 100%;
    justify-content: stretch;
  }

  #dhpa-cookie-consent .dhpa-cookie-consent__btn {
    flex: 1 1 50%;
    min-width: 0;
  }
}
