.cfvsw-swatches-option,
.variations {
  font-family: var(--e-global-typography-accent-font-family), Sans-serif;
  font-size: var(--e-global-typography-accent-font-size);
  font-weight: var(--e-global-typography-accent-font-weight);
  text-transform: var(--e-global-typography-accent-text-transform);
  line-height: var(--e-global-typography-accent-line-height);
}

/* -------------------- */

.value {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
a.reset_variations {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
a.reset_variations:hover {
  opacity: 0.8;
}

a.reset_variations::after {
  content: 'les filtres';
  margin-left: 0.25rem;
}

/* -------------------- */

.cfvsw-swatches-container[swatches-attr='attribute_pa_taille'] {
  flex-direction: row-reverse;
}
.cfvsw-swatches-container[swatches-attr='attribute_pa_taille'] .cfvsw-swatches-option::after {
  content: 'vide';
  margin-left: 0.3rem;
}
.cfvsw-swatches-container[swatches-attr='attribute_pa_taille'] .cfvsw-swatches-option[data-title='Petit']::after {
  content: '(1-2 pers.)';
}
.cfvsw-swatches-container[swatches-attr='attribute_pa_taille'] .cfvsw-swatches-option[data-title='Moyen']::after {
  content: '(4-6 pers.)';
}
.cfvsw-swatches-container[swatches-attr='attribute_pa_taille'] .cfvsw-swatches-option[data-title='Grand']::after {
  content: '(6-8 pers.)';
}

.cfvsw-swatches-option {
  padding: 0.5rem 1.5rem;
  border-radius: 5px !important;
  background-color: white;
  border: solid 2px #a1bb8d;
}
.cfvsw-swatches-option:hover,
.cfvsw-swatches-option.cfvsw-selected-swatch {
  background-color: #66794f;
  border-color: #66794f !important;
  color: white;
}

/* -------------------- */

.cfvsw-swatches-option.cfvsw-image-option .cfvsw-swatch-inner {
  padding: 0;
  width: 16px;
  height: 16px;
  border-radius: 0px;
  background-size: contain;
}

.cfvsw-swatches-option.cfvsw-image-option::after {
  content: attr(data-title);
  margin-left: 0.3rem;
}
.cfvsw-swatches-option.cfvsw-image-option[data-title='Carré']::after {
  margin-left: 0.5rem;
}

/* -------------------- */

a.added_to_cart {
  display: flex !important;
  margin-left: 20px;
  padding-top: 0px !important;
  justify-content: center !important;
  align-items: center !important;
}

/* -------------------- */

button.single_add_to_cart_button.button.alt {
  position: relative;
  border: none;
  z-index: 1 !important;
  background: white !important;
  color: #000 !important;
  border: white 2px solid;
  border-radius: 20px;
  padding: 15px 30px;
}

button.single_add_to_cart_button.button.alt::before {
  content: '';
  position: absolute;
  width: 33%;
  height: 100%;
  border: 2px solid #0055a4;
  border-right: none;
  left: 0;
  bottom: 0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  transition: width 0.3s ease-in-out;
}

button.single_add_to_cart_button.button.alt::after {
  content: '';
  position: absolute;
  width: 33%;
  height: 100%;
  border: 2px solid red;
  border-left: none;
  right: 0;
  bottom: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: width 0.3s ease-in-out;
}

button.single_add_to_cart_button.button.alt:hover::before,
button.single_add_to_cart_button.button.alt:hover::after {
  width: 50%;
  border-color: #000;
}

.single_add_to_cart_button.loading::after {
  animation: inherit !important;
  inset: unset !important;
  top: 0 !important;
  right: 0 !important;
}

.single_add_to_cart_button.loading {
  animation: respirationChargement 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

button.single_add_to_cart_button.loading::before {
  border: 2px solid #0055a4;
  border-right: none;
}
button.single_add_to_cart_button.loading::after {
  border: 2px solid red;
  border-left: none;
}

@keyframes respirationChargement {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}
