/* custom-cart summary styles start */
.wtsum__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 15px;
  color: var(--wt-black);
  gap: 14px;
}
.wtsum__item-name {
  flex: 1;
  padding-right: 8px;
  line-height: 1.4;
  max-width: 310px;
}
.wtsum__item-qty {
  color: var(--wt-black);
  margin-right: 8px;
  white-space: nowrap;
}
.wtsum__item-price {
  font-weight: 500;
  white-space: nowrap;
}

.wtsum__coupon {
  display: flex;
  position: relative;
  margin: 0 0 18px;
}
.wtsum__coupon input {
  width: 100%;
  padding: 25px 32px;
  border: 1px solid var(--wt-color-accent);
  border-radius: var(--wt-radius-pill) !important;
  outline: none;
  font-size: 20px;
  font-family: var(--wt-font);
  color: var(--wt-black);
  background: transparent;
  line-height: .9em;
}
.wtsum__coupon input::placeholder {
  color: rgba(45, 42, 45, 0.55);
}
.wtsum__coupon button {
  cursor: pointer;
  font-family: var(--wt-font);
}
.wtsum__coupon button[type="submit"] {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  cursor: pointer;
  color: rgba(45, 42, 45, 0.55) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wtsum__coupon-get {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin: 0 0 28px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: #8b2130 !important;
  font-size: 18px;
  font-weight: 3  00;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 6px;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--wt-font);
  padding: 0 32px;
}
.wtsum__coupon-get svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  text-decoration: none;
}
.wtsum__coupon-get:hover {
  color: var(--wt-black) !important;
}
.wtsum__coupon button:hover {
  color: var(--wt-black);
}
.wtsum__coupon button svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.wtsum__coupon-msg {
  color: var(--wt-black);
  font-size: 12px;
  margin: 6px 0 0;
}
.wtsum__coupon-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wt-bg-base);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  margin: 0 6px 12px 0;
}
.wtsum__coupon-tag a {
  color: var(--wt-black);
  text-decoration: none;
  opacity: 0.75;
}
.wtsum__coupon-tag a:hover {
  opacity: 1;
}

.wtcart-promo-open {
  overflow: hidden;
}

.wtcart-promo-modal[hidden] {
  display: none !important;
}

.wtcart-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wtcart-promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.46);
  backdrop-filter: blur(8px);
}

.wtcart-promo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: min(100vh - 40px, 860px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 0 !important;
  background: #fbf7f1;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.wtcart-promo-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: var(--wt-radius-round) !important;
  background: #bd8994 !important;
  color: var(--wt-white) !important;
  cursor: pointer;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.wtcart-promo-modal__title {
  margin: 0 0 18px;
  padding-right: 40px;
}

.wtcart-promo-modal__form {
  max-width: 520px;
}

.wtcart-promo-modal__field {
  margin-bottom: 14px;
}

.wtcart-promo-modal__input {
  min-height: 0;
}

.wtcart-promo-modal__actions {
  margin-top: 8px;
}

.wtcart-promo-modal__submit {
  min-width: 253px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid #bd8994 !important;
  border-radius: var(--wt-radius-pill) !important;
  background: #bd8994 !important;
  color: var(--wt-white) !important;
}

.wtcart-promo-modal__submit:hover {
  background: #bd8994 !important;
  border-color: #bd8994 !important;
  color: var(--wt-white) !important;
}

.wtcart-promo-modal__hint {
  margin-top: 6px;
}

.wtcart-promo-modal__status {
  min-height: 18px;
  margin: 8px 0 0;
}

.wtcart-promo-modal__status.is-ok {
  color: #247a43;
}

.wtcart-promo-modal__status.is-err {
  color: #b42318;
}

.wtcart-promo-modal__submit[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.wtsum__line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 18px;
  color: var(--wt-black);
}
.wtsum__line.wtsum__discount {
  border-top: 1px solid var(--wt-color-accent-soft-50);
  margin-top: 10px;
}
.wtsum__total {
  font-size: 18px;
  font-weight: 500;
  padding-top: 18px;
}

.wtsum__checkout {
  margin-top: 28px;
}
.wtsum__checkout a,
.wtsum__checkout button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 18px 26px;
  background: #ac112b !important;
  color: var(--wt-white) !important;
  text-decoration: none;
  border: 1px solid #ac112b !important;
  border-radius: var(--wt-radius-pill) !important;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
  gap: 10px;
}
.wtsum__checkout a:hover,
.wtsum__checkout button:hover {
  background: #ac112b !important;
  color: var(--wt-white) !important;
  border-color: #ac112b !important;
}

.wtsum .wt-loyalty,
.wtcart__summary .wt-loyalty {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 22px 24px;
  border: 1px solid var(--wt-color-accent-soft-20);
  border-radius: 22px !important;
  background: #faf7f2;
  color: var(--wt-color-text);
  box-shadow: none !important;
}

.wtsum .wt-loyalty__head,
.wtcart__summary .wt-loyalty__head {
  display: grid;
  gap: 4px;
}
.wt-loyalty__head button {
  width: 100%;
  min-height: 66px;
  border: 1px solid var(--wt-color-accent) !important;
  border-top-color: rgb(187, 133, 140);
  border-right-color: rgb(187, 133, 140);
  border-bottom-color: rgb(187, 133, 140);
  border-left-color: rgb(187, 133, 140);
  border-radius: var(--wt-radius-pill) !important;
  background: var(--wt-color-accent) !important;
  color: var(--wt-white) !important;
  padding: 18px 28px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: none !important;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
.wt-loyalty__head button:hover {
  background: transparent !important;
  border-color: var(--wt-color-accent) !important;
  color: var(--wt-color-accent) !important;
}
.wtsum .wt-loyalty__head strong,
.wtcart__summary .wt-loyalty__head strong {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--wt-color-text);
}

.wtsum .wt-loyalty .wt-s,
.wtcart__summary .wt-loyalty .wt-s {
  font-size: 14px;
  line-height: 1.25;
  color: rgba(45, 42, 45, 0.88);
}

.wtsum .wt-loyalty__form,
.wtcart__summary .wt-loyalty__form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.wtsum .wt-loyalty__form .wt-lf__input,
.wtcart__summary .wt-loyalty__form .wt-lf__input {
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid rgba(187, 133, 140, 0.65);
  border-radius: var(--wt-radius-pill) !important;
  background: var(--wt-bg-base);
  color: var(--wt-color-text);
}

.wtsum .wt-loyalty__form .wt-btn-text,
.wt-loyalty .wt-loyalty__form button[type="submit"],
.wtcart__summary .wt-loyalty__form .wt-btn-text,
.wt-loyalty .wt-loyalty__remove,
.wtsum .wt-loyalty__remove,
.wtcart__summary .wt-loyalty__remove {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--wt-color-accent) !important;
  border-radius: var(--wt-radius-pill) !important;
  background: var(--wt-color-accent) !important;
  color: var(--wt-white) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wt-font);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.05em;
  box-shadow: none !important;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.wt-loyalty .wt-loyalty__form button[type="submit"]:hover,
.wt-loyalty .wt-loyalty__remove:hover,
.wtsum .wt-loyalty__form .wt-btn-text:hover,
.wtcart__summary .wt-loyalty__form .wt-btn-text:hover,
.wtsum .wt-loyalty__remove:hover,
.wtcart__summary .wt-loyalty__remove:hover {
  background: transparent !important;
  color: var(--wt-color-accent) !important;
  border-color: var(--wt-color-accent) !important;
}

.wtsum .wt-loyalty__msg,
.wtcart__summary .wt-loyalty__msg {
  min-height: 18px;
  color: rgba(45, 42, 45, 0.8);
}

.wtsum .wt-loyalty__msg.is-err,
.wtcart__summary .wt-loyalty__msg.is-err {
  color: #b42318;
}

.wtsum .wt-loyalty--guest,
.wtcart__summary .wt-loyalty--guest {
  background: #faf7f2;
  display: block !important;
}

.wtcart__empty {
  padding: 40px 0;
  font-size: 16px;
  color: var(--wt-black);
}

@media (max-width: 767px) {
  .wtsum__item {
    gap: 10px;
    flex-wrap: wrap;
  }

  .wtsum__coupon {
    flex-direction: column;
    gap: 10px;
  }

  .wtsum__coupon input {
    min-height: 64px;
    font-size: 18px;
    padding: 16px 58px 16px 20px;
  }

  .wtsum__coupon-get {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .wtcart-promo-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .wtcart-promo-modal__dialog {
    width: 100%;
    max-height: min(100vh - 16px, 90vh);
    padding: 30px 18px 20px;
    border-radius:  0 !important;
  }

  .wtcart-promo-modal__submit {
    width: 100%;
    min-width: 0;
  }
  .wt-loyalty.wt-loyalty--guest.wt-s{
    line-height: 1.6;
  }
}

/* custom-cart summary styles end */
