.button-nologin,
.cks-favorita-btn,
.cks-consumir-btn {
  cursor: pointer;
  background-color: var(--AliceBlue);
  color: var(--black);
  outline: 1px solid var(--AliceBlue);
  display: flex;
  justify-content: center;
  border-radius: 100px;
  width: 43px;
  height: 43px;
  align-items: center;
}

.button-nologin svg,
.cks-favorita-btn svg,
.cks-consumir-btn svg {
  width: 22px;
  height: 22px;
}

.cks-favorita-btn.active,
.cks-consumir-btn.consumido {
  color: var(--radical);
  fillr: var(--radical);
}

/* Popup centrado */
.cks-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.cks-popup-inner {
  background: white;
  padding: 28px 18px;
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  position: relative;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  overflow: hidden;
  overflow-y: auto;
}

@media (max-width: 480px) {
  .cks-popup-inner {
    border-radius: 0px;
    height: 100%;
    padding-bottom: 40px;
  }
}

.cks-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

.cks-close svg {
  width: 36px;
  height: 36px;
  fill: var(--black);
}

/* Chips */

.cks-chips-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 9px 6px;
}

.cks-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 10px;
}

.cks-chip {
  display: flex;
  width: fit-content;
  padding: 9px 16px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  border-radius: 50px;
  border: 1px solid #7c7c7c;
  color: #7c7c7c;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: initial;
}

.cks-chip input[type="checkbox"] {
  display: none;
}

/* Selección general (por compatibilidad previa) */
.cks-chip.selected {
  color: var(--black);
  border: 2.5px solid var(--black);
  font-weight: 600;
}

/* Chips positivos */
.cks-chip.cks-chip-positivo.selected {
  color: var(--black);
  border: 2.5px solid var(--black);
  font-weight: 600;
}

/* Chips negativos */
.cks-chip.cks-chip-negativo.selected {
  color: var(--radical);
  border: 2.5px solid var(--radical);
  font-weight: 600;
}

/* Chips sin selección visual específica aún (gris) */
.cks-chip.cks-chip-positivo,
.cks-chip.cks-chip-negativo {
  color: #7c7c7c;
}

#cks-destacado-count,
#cks-chip-count {
  font-size: 14px;
  font-weight: bolder;
  display: flex;
  align-items: center;
  margin-right: 9px;
}

#cks-form-consumidas textarea {
  width: 100%;
  display: inline-block;
  padding: 9px;
  border-radius: 6px;
  font-size: 14px;
  resize: none;
  min-height: 3em;
  max-height: 5.5em;
  margin: 18px 0 32px;
}

.cks-popup-actions {
  display: flex;
}

#cks_guardar_btn {
  background: var(--purple);
  color: var(--white);
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 100px;
  margin: 16px auto 0;
  cursor: pointer;
  font-weight: 500;
}

#cks-alerta-popup {
  margin-top: 16px;
  text-align: center;
}

/*==============================================================
=            DESTACADOS
==============================================================*/

.cks-destacados-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 6px;
  margin-bottom: 24px;
}

/*==============================================================
=            LOADER
==============================================================*/

.cks-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 25px 0;
  color: #666;
  font-size: 15px;
  font-weight: 600;
  height: 100%;
}

.cks-loading-icon {
  width: 42px;
  height: 42px;
  color: var(--radical);
  animation: cks-mouth .9s ease-in-out infinite;
}

@keyframes cks-mouth {

  0% {
    transform: scale(.90);
    opacity: .35;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(.90);
    opacity: .35;
  }

}

/*==============================================================
=            ANIMACION FAV
==============================================================*/
.cks-favorita-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cks-favorita-btn.pop {
  animation: cksHeartPop .28s ease;
}

@keyframes cksHeartPop {

  0% {

    transform: scale(1);

  }

  45% {

    transform: scale(1.28);

  }

  100% {

    transform: scale(1);

  }

}

/*
|--------------------------------------------------------------------------
| Cabecera Popup
|--------------------------------------------------------------------------
*/

.cks-popup-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cks-popup-header__cover {
  width: 75px;
  height: 75px;
  flex: none;
  outline: 2px solid var(--light);
  border-radius: 50%;
  overflow: hidden;
}

.cks-popup-header__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.cks-content-title {
  margin: 9px 0px 22px 0px;
  display: flex;
  justify-content: space-between;
}

#cks-popup-title {
  font-size: 20px;
  display: block;
  line-height: 22px;
  font-weight: 700;
  font-family: var(--font-outfit);
  color: var(--white);
  background: var(--black);
  padding: 8px 20px;
  border-radius: 6px;
  position: relative;
}

#cks-popup-title::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--black);
  left: -7px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 3px;
}

#cks-popup-subtitle {
  font-size: 18px;
  display: block;
  font-weight: 500;
  font-family: var(--font-outfit);
  color: var(--black);
  position: relative;
}