#cookie-consent-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
}

#cookie-consent-pop-in {
  position: fixed;
  max-width: 475px;
  background: white;
  border-radius: 18px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  padding: 24px;
  bottom: 60px;
  left: 60px;
  animation: slideUp 0.3s ease-out;
}

#cookie-consent-pop-in .cc-title {
  font-size: 22px;
  color: #000;
  margin-bottom: 14px;
}

#cookie-consent-pop-in .cc-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
}

#cookie-consent-pop-in .cc-desc a {
  text-decoration: underline;
}

#cookie-consent-form {
  display: flex;
  flex-direction: column;
}

#cookie-consent-banner .custom-checkbox {
  display: flex;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 14px;
  position: relative;
  padding-left: 30px;
  user-select: none;
  flex-direction: column;
  text-align: left;
  align-items: normal;
}

/* Cache la checkbox native */
#cookie-consent-banner .custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Style du carré */
#cookie-consent-banner .custom-checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 2px;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border: none !important;
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* Hover */
#cookie-consent-banner .custom-checkbox:hover .checkmark {
  background-color: #ddd;
}

/* Coché */
#cookie-consent-banner .custom-checkbox input:checked ~ .checkmark {
  background-color: #ff9800;
  border-color: #ff9800;
}

/* Disabled */
#cookie-consent-banner .custom-checkbox input:disabled ~ .checkmark {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Le "check" */
#cookie-consent-banner .custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

#cookie-consent-banner .custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

/* Style du "check" (✓) */
.custom-checkbox .checkmark::after {
  left: 6px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cc-buttons-group {
  display: flex;
  flex-direction: column;
}

.cc-buttons {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-direction: row;
}

.cc-buttons > button {
  flex: 1;
  height: 38px;
  border: none;
  border-radius: 18px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
}

.cc-buttons > button:hover {
  cursor: pointer;
  opacity: 0.8;
}

#cookie-consent-accept-all {
  background-color: #ff9800;
}

#cookie-consent-close {
  text-align: center;
  margin: auto;
  width: fit-content;
  border: navajowhite;
  background-color: unset;
  text-decoration: underline;
  margin-top: 12px;
  font-size: 14px;
}

#cookie-consent-close:hover {
  cursor: pointer;
  opacity: 0.7;
}

.cookie-manage-btn {
  border: none;
  background: none;
  font-size: 0.875rem;
  color: #7a7a7a;
  padding: 0;
}

.cookie-manage-btn:hover {
  cursor: pointer;
  color: #ff9800;
}

@media (max-width: 768px) {
  #cookie-consent-pop-in {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px 18px 0 0;
    max-width: none;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    max-height: 75vh;
    overflow-y: scroll;
    padding-bottom: 0;
  }

  .cc-buttons-group {
    position: sticky;
    bottom: 0;
    padding-bottom: 20px;
    left: 0;
    right: 0;
    background: white;
  }

  .cc-buttons > button {
    height: unset;
    padding: 4px 15px;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
