:root {
  --primary: #8200db;
}


body {
  font-family: 'Inter', sans-serif;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' fill-opacity='0.8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Custom Checkbox */
.custom-checkbox {
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: #ffffff;
}

/* Cache la checkbox réelle */
.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 18px;
  width: 18px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 1;
}

/* La case personnalisée */
.custom-checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: none;
  border: 2px solid var(--primary);
  border-radius: 4px;
  box-sizing: border-box;
}

/* Le "tick" qui apparaît quand la checkbox est cochée */
.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.underline {
  text-decoration: underline;
}

/* Quand la checkbox est cochée, change la couleur de fond */
.custom-checkbox input[type="checkbox"]:checked~.checkmark {
  background-color: var(--primary);
}

/* Affiche le "tick" */
.custom-checkbox input[type="checkbox"]:checked~.checkmark:after {
  display: block;
}


@keyframes scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.animate-scroll {
  animation: scroll 24s linear infinite;
}

@media (min-width: 768px) {
  .animate-scroll {
    animation: scroll 40s linear infinite;
  }
}


.panier-scroll {
    scrollbar-width: thin;
    scrollbar-color: #8d8f92 white;
}

.panier-scroll::-webkit-scrollbar {
    width: 5px;
}

.panier-scroll::-webkit-scrollbar-thumb {
    background-color: white;
    /* gray-600 */
    border-radius: 9999px;
}

button {
    cursor: pointer;
}