/**
 * EMS Product Boosters — фронтенд стилове.
 *
 * Каруселите НЯМАТ собствени стилове — ползват .ems-chosen-by-us /
 * .swiper.wwl / .swiper-button-*.ems-prev|ems-next, които вече съществуват.
 * Тук са само новите елементи: комплектът, съветът и медалите.
 *
 * Палитра: #caaf7a (акцент), #212121, #ff3100, шрифт Jost.
 */

/**
 * Стрелките на карусела са position:absolute спрямо .ems-chosen-by-us.
 * Досега position:relative се подаваше от inline стила на шорткода [what_we_offer].
 */
.ems-chosen-by-us {
  position: relative;
}

/* -------------------------------------------------------------------------
 *  Вземи в комплект
 * ------------------------------------------------------------------------- */

.ems-bst--bundle .ems-bnd {
  border: 1px solid #e6e0d6;
  background: #fff;
  font-family: 'Jost', sans-serif;
}

.ems-bnd__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ems-bnd__row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid #f0ece5;
}

.ems-bnd__row:last-child {
  border-bottom: 0;
}

.ems-bnd__pick {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.ems-bnd__pick input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.ems-bnd__box {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid #caaf7a;
  background: #fff;
  transition: background-color .18s ease, border-color .18s ease;
}

.ems-bnd__box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .18s ease;
}

.ems-bnd__pick input:checked + .ems-bnd__box {
  background: #caaf7a;
}

.ems-bnd__pick input:checked + .ems-bnd__box::after {
  transform: rotate(45deg) scale(1);
}

.ems-bnd__pick.is-off {
  cursor: default;
}

.ems-bnd__pick.is-off .ems-bnd__box {
  border-color: #ddd;
  background: #f6f6f6;
}

.ems-bnd__thumb {
  flex: 0 0 84px;
  display: block;
  width: 84px;
  height: 84px;
  overflow: hidden;
}

.ems-bnd__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.ems-bnd__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ems-bnd__tag {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #caaf7a;
}

.ems-bnd__title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .3px;
  color: #212121;
  text-decoration: none;
}

.ems-bnd__title:hover {
  color: #caaf7a;
}

.ems-bnd__opts {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #caaf7a;
  text-decoration: none;
}

.ems-bnd__price {
  flex: 0 0 auto;
  text-align: right;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: #212121;
  white-space: nowrap;
}

.ems-bnd__price .ems-eur-price {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #8d8d8d;
}

.ems-bnd__price del {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #b3b3b3;
}

.ems-bnd__price ins {
  text-decoration: none;
}

.ems-bnd__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 22px;
  border-top: 1px solid #e6e0d6;
  background: #fbfaf8;
}

.ems-bnd__total {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ems-bnd__total-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8d8d8d;
}

.ems-bnd__total-value {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: #212121;
}

.ems-bnd__total-value .ems-eur-price {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #8d8d8d;
}

.ems-bst--bundle .ems-bnd__btn {
  padding: 14px 34px;
  background: #caaf7a;
  border: 1px solid #caaf7a;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.ems-bst--bundle .ems-bnd__btn:hover {
  background: transparent;
  color: #caaf7a;
}

.ems-bst--bundle .ems-bnd__btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
}

.ems-bst--bundle .ems-bnd__btn[disabled]:hover {
  background: #caaf7a;
  color: #fff;
}

.ems-bnd__btn-count {
  margin-left: 6px;
}

.ems-bnd__msg {
  margin: 0;
  padding: 0 22px 18px;
  background: #fbfaf8;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  letter-spacing: .3px;
}

.ems-bnd__msg:empty {
  display: none;
}

.ems-bnd__msg.is-error {
  color: #ff3100;
}

.ems-bnd__msg.is-ok {
  color: #357828;
}

.ems-bnd__msg a {
  color: #caaf7a;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
 *  Съвет (Tips)
 * ------------------------------------------------------------------------- */

.ems-bst--tip .ems-tip {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 32px 36px;
  border: 1px solid #e6e0d6;
  background: #fff;
  font-family: 'Jost', sans-serif;
}

.ems-tip__media {
  flex: 0 0 clamp(180px, 28%, 340px);
}

.ems-tip__media img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.ems-tip__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ems-tip__title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #212121;
}

.ems-tip__text {
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .2px;
  color: #4a4a4a;
}

.ems-tip__text p:last-child {
  margin-bottom: 0;
}

.ems-tip__cta {
  margin-top: 22px;
  color: #caaf7a;
  border-color: #caaf7a;
}

.ems-tip__cta:hover {
  background: #caaf7a;
  color: #fff;
}

/* -------------------------------------------------------------------------
 *  Преместеният USP ред
 * ------------------------------------------------------------------------- */

.ems-cp-container.ems-bst--usp {
  margin-top: 2rem;
}

.ems-bst--usp .ems-cp-icons-row {
  width: 100%;
  margin-top: 0;
}

/* -------------------------------------------------------------------------
 *  Адаптивно
 * ------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .ems-bst--bundle .ems-bnd,
  .ems-bst--tip .ems-tip {
    margin: 0 10px;
  }

  .ems-bnd__row {
    gap: 12px;
    padding: 14px;
  }

  .ems-bnd__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }

  .ems-bnd__title {
    font-size: 14px;
  }

  .ems-bnd__price {
    font-size: 15px;
  }

  .ems-bnd__price .ems-eur-price {
    font-size: 11px;
  }

  .ems-bnd__foot {
    gap: 16px;
    padding: 18px 14px;
  }

  .ems-bst--bundle .ems-bnd__btn {
    flex: 1 1 100%;
    padding: 14px 20px;
    text-align: center;
  }

  .ems-bnd__total-value {
    font-size: 20px;
  }

  .ems-bnd__msg {
    padding: 0 14px 16px;
  }

  .ems-bst--tip .ems-tip {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 18px;
  }

  .ems-tip__media {
    flex: 0 0 auto;
    width: 100%;
  }

  .ems-tip__title {
    font-size: 18px;
  }
}

/* WooCommerce закача свой "Преглед" линк след бутона — ние имаме свое съобщение. */
.ems-bnd .added_to_cart {
  display: none;
}

/* Питането "вече са в количката". */
.ems-bnd__confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 22px;
  background: #fbfaf8;
  border-top: 1px dashed #caaf7a;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  letter-spacing: .3px;
}

.ems-bnd__confirm p {
  flex: 1 1 280px;
  margin: 0;
}

.ems-bnd__confirm .ems-bv2026-btn {
  background: transparent;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
}

.ems-bnd__confirm .ems-bnd__confirm-yes {
  color: #caaf7a;
  border-color: #caaf7a;
}

.ems-bnd__confirm .ems-bnd__confirm-yes:hover {
  background: #caaf7a;
  color: #fff;
}

.ems-bnd__confirm .ems-bnd__confirm-cancel {
  color: #8d8d8d;
  border-color: #8d8d8d;
}

.ems-bnd__confirm .ems-bnd__confirm-cancel:hover {
  background: #8d8d8d;
  color: #fff;
}

/* Ред, чийто продукт вече е в количката — изключен по подразбиране. */
.ems-bnd__incart {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #357828;
}

.ems-bnd__row.is-incart .ems-bnd__thumb {
  opacity: .55;
}

.ems-bnd__row.is-incart .ems-bnd__title {
  color: #8d8d8d;
}
