/* CognitiShop - Propriete ITaiB.fr. Tous droits reserves. */

[data-encros-client-action="favorites"] {
  position: relative;
}

[data-encros-client-actions] [data-encros-client-action="favorites"],
[data-cognitishop-client-actions] [data-encros-client-action="favorites"] {
  display: none !important;
}

[data-encros-client-action="favorites"] [data-cognitishop-favorites-count] {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff7a1a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.cs-favorite-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  margin: 10px 0 14px;
  padding: 8px 14px;
  border: 1px solid rgba(12, 124, 116, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #0b3d2e;
  box-shadow: 0 10px 24px rgba(12, 124, 116, 0.12);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.cs-favorite-button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e9f7db;
  color: #1f7a17;
  font-size: 1.08rem;
}

.cs-favorite-button.is-favorite {
  border-color: rgba(255, 122, 26, 0.42);
  background: #fff8ef;
  color: #8a3b00;
}

.cs-favorite-button.is-favorite span {
  background: #ff7a1a;
  color: #ffffff;
}

.cs-favorites-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: min(420px, calc(100vw - 28px));
  padding: 12px 14px;
  border: 1px solid rgba(12, 124, 116, 0.22);
  border-radius: 8px;
  background: #0f291f;
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.cs-favorites-toast a {
  color: #d8ff93;
  font-weight: 900;
  text-decoration: none;
}

.cs-favorites-account-intro {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(12, 124, 116, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #f6ffe6, #ffffff);
}

.cs-favorites-account-intro strong {
  color: #0c3b20;
}

.cs-favorites-account-intro p {
  margin: 0;
  color: #53657a;
}

.cs-favorites-account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cs-favorites-account-tabs button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(12, 124, 116, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #0b3d2e;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.cs-favorites-account-tabs button.is-active {
  border-color: #ff7a1a;
  background: #ff7a1a;
  color: #ffffff;
}

.cs-favorites-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.cs-favorites-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  min-height: 108px;
  padding: 10px;
  border: 1px solid rgba(12, 124, 116, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.cs-favorites-card img,
.cs-favorites-card-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: contain;
  background: #f4faed;
}

.cs-favorites-card-placeholder {
  display: grid;
  place-items: center;
  color: #60708a;
  font-size: 0.72rem;
  font-weight: 900;
}

.cs-favorites-card div {
  display: grid;
  gap: 5px;
}

.cs-favorites-card small {
  color: #1f7a17;
  font-weight: 900;
  text-transform: uppercase;
}

.cs-favorites-card a {
  color: #071b18;
  font-weight: 900;
  text-decoration: none;
}

.cs-favorites-card button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b13b00;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.cs-favorites-account-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(12, 124, 116, 0.25);
  border-radius: 8px;
  color: #53657a;
  text-align: center;
}

@media (max-width: 720px) {
  .cs-favorite-button {
    width: 100%;
    justify-content: center;
  }

  .cs-favorites-toast {
    right: 10px;
    bottom: 10px;
  }
}
