/* Reset styles */

.whp-cookies-modal,
.whp-cookies-modal * {
  box-sizing: border-box;
}

.whp-cookies-modal button,
.whp-cookies-manage button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
  padding: 0;
  box-shadow: none;
}

.whp-cookies-btn:hover,
.whp-cookies-btn:focus-visible,
.whp-cookies-btn:active {
  background: #f5f5f5;
  color: #111;
  border-color: currentColor;
  text-decoration: none;
}

button.whp-cookies-manage__btn:hover,
button.whp-cookies-manage__btn:focus-visible,
button.whp-cookies-manage__btn:active {
  background: #f5f5f5;
  color: #111;
  border-color: currentColor;
  text-decoration: none;
}

button.whp-cookies-modal__close:hover,
button.whp-cookies-modal__close:focus-visible,
button.whp-cookies-modal__close:active {
  background: none;
  color: #111;
  border-color: currentColor;
  text-decoration: none;
}

.whp-cookies-btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.whp-cookies-btn--primary:hover,
.whp-cookies-btn--primary:focus-visible,
.whp-cookies-btn--primary:active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.whp-cookies-btn--ghost {
  background: transparent;
  color: #111;
}

.whp-cookies-btn--ghost:hover,
.whp-cookies-btn--ghost:focus-visible,
.whp-cookies-btn--ghost:active {
  background: rgba(0,0,0,0.05);
  color: #111;
}


/* Bouton "Gérer mes cookies" */
.whp-cookies-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999999;
}

button.whp-cookies-manage__btn {
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid currentColor;
  background: #fff;
  cursor: pointer;
}

/* Overlay */
.whp-cookies-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999998;
  display: none;
}

/* Modal */
.whp-cookies-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 32px));
  z-index: 999999;
  display: none;
}

.whp-cookies-modal__inner {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  max-height: 90vh;
}

.whp-cookies-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.whp-cookies-modal__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whp-cookies-modal__logo img {
  max-height: 36px;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.whp-cookies-modal__company {
  font-weight: 600;
}

.whp-cookies-modal__close {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.whp-cookies-modal__title {
  margin: 12px 0 8px;
  font-size: 18px;
}

.whp-cookies-modal__content {
  font-size: 14px;
  line-height: 1.5;
}

.whp-cookies-view {
  margin-top: -6px;
}

.whp-cookies-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

button.whp-cookies-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  color: #000;
  font-size: 14px;
}

button.whp-cookies-btn--primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

button.whp-cookies-btn--ghost {
  background: transparent;
}

button#whp-cookies-refuse {
  border: none;
  font-size: 14px;
  text-decoration: underline;
  padding: 0;
}

button#whp-cookies-refuse:hover {
  background: none;
}

.whp-cookies-modal__hint {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}


.whp-cookies-config-intro {
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.whp-cookies-config-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
}

.whp-cookies-toggle {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
}

.whp-cookies-toggle__label {
  font-size: 14px;
}

.whp-cookies-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.whp-cookies-toggle__ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  position: relative;
}

.whp-cookies-toggle__ui::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #000;
  opacity: 0.25;
}

.whp-cookies-toggle.is-on .whp-cookies-toggle__ui {
  background: #000;
  border-color: #000;
}

.whp-cookies-toggle.is-on .whp-cookies-toggle__ui::after {
  left: 21px;
  background: #fff;
  opacity: 1;
}

.whp-cookies-toggle.is-locked {
  opacity: 0.75;
}


.whp-cookies-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999999;
}

.whp-cookies-manage__btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whp-cookies-manage__btn:hover,
.whp-cookies-manage__btn:focus-visible {
  background: #f7f7f7;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  outline: none;
}

.whp-cookies-manage__btn:active {
  transform: translateY(0);
}

.whp-cookies-manage__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.whp-cookies-manage__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.whp-cookies-toggle {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 12px;
}

.whp-cookies-toggle__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.whp-cookies-toggle__label {
  font-size: 14px;
  font-weight: 600;
}

.whp-cookies-toggle__switch {
  display: inline-flex;
  align-items: center;
}

.whp-cookies-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.whp-cookies-toggle__ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.2);
  position: relative;
  display: inline-block;
}

.whp-cookies-toggle__ui::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #000;
  opacity: 0.25;
}

.whp-cookies-toggle.is-on .whp-cookies-toggle__ui {
  background: #000;
  border-color: #000;
}

.whp-cookies-toggle.is-on .whp-cookies-toggle__ui::after {
  left: 21px;
  background: #fff;
  opacity: 1;
}

.whp-cookies-toggle.is-locked {
  opacity: 0.8;
}

.whp-cookies-toggle__partners {
  margin: 0;
  padding-left: 18px;
}

.whp-cookies-toggle__partners li {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.4;
}

.whp-cookies-toggle__empty {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}