#popup-one-click-wrapper {
  background: #fff;
  max-width: 343px;
  width: 90%;
  margin: 0 auto;
  min-height: 100px;
  position: relative;
  border-radius: 5px;
  box-shadow:
    0px 5px 11px 0px rgba(0, 0, 0, 0.1),
    0px 20px 20px 0px rgba(0, 0, 0, 0.09),
    0px 45px 27px 0px rgba(0, 0, 0, 0.05),
    0px 80px 32px 0px rgba(0, 0, 0, 0.01),
    0px 125px 35px 0px rgba(0, 0, 0, 0);
}
#popup-one-click-wrapper .popup-heading {
  padding: 21px 15px 0 15px;
  color: #000;
  font-size: 20px;
  font-style: normal;
  line-height: 25px;
  margin-right: 30px;
  font-family: var(--main-font);
}
#popup-one-click-wrapper .mfp-close {
  width: 60px;
  height: 52px;
  right: 0;
  top: 7px;
  position: absolute;
  z-index: 2;
  cursor: pointer !important;
  outline: none;
  border: 0;
  transition: all 0.3s;
}
#popup-one-click-wrapper .mfp-close:hover {
  background-position: 0 -60px;
}
#popup-checkout-button {
  cursor: pointer;
}

#popup-one-click-wrapper .popup-footer {
  padding: 0px 20px 17px;
  position: relative;
  display: inline-block;
  width: 100%;
  vertical-align: bottom;
}
#popup-one-click-wrapper .popup-footer button {
  float: right;
  display: none;
  height: 32px;
  line-height: 30px;
  color: #000;
  padding: 0 25px;
  cursor: pointer;
  font-size: 12px;
  display: inline-block;
  border: 1px solid #c5cdd8;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  background: #f2f6f9;
  border-radius: 2px;
  outline: none;
  text-align: center;
}
#popup-one-click-wrapper .popup-footer button:hover {
  box-shadow: 0 0px 1px rgba(0, 0, 0, 0.1);
}
#popup-one-click-wrapper .popup-footer a {
  border-radius: 3px;
  background: #3a3227;
  color: #fff;
  font-size: 16px;
  line-height: normal;
  height: 55px;
  width: 100%;
  font-family: var(--main-font);
  display: flex;
  align-items: center;
  justify-content: center;
}
#popup-one-click-wrapper .popup-footer #popup-checkout-none {
  opacity: 0.5;
  background: #f64747;
  border: 1px solid #d64541;
}
#popup-one-click-wrapper .popup-footer #popup-checkout-none:hover {
  background: #f64747;
  cursor: not-allowed;
}
#popup-one-click-wrapper .popup-center {
  background: #fff;
  padding: 20px;
  overflow: auto;
}
.top-modal {
  margin-bottom: 20px;
  justify-content: space-between;
  align-items: center;
}
.payment-quantity {
  display: flex;
  align-items: center;
}
.product-price {
  display: flex;
  flex-direction: column;
}
span#main-price {
  font-size: 24px;
  line-height: 1;
  color: #3a3227;
  text-decoration: line-through;
}
span#special-price {
  font-size: 24px;
  line-height: 1;
  color: #3a3227;
}
#popup-one-click-wrapper .right img {
  border-radius: 20px;
  border: 2px solid #e6e6e6;
  margin-top: 20px;
  margin-bottom: 48px;
}
#popup-one-click-wrapper .right .sub-images {
  /*display: block;*/
  display: none;
  text-align: center;
  margin-top: 10px;
  max-width: 150px;
}
#popup-one-click-wrapper .right .sub-images > span label {
  border-radius: 10px;
  width: 10px;
  height: 10px;
  background: #bbb;
  display: inline-block;
}
#popup-one-click-wrapper .right .sub-images input {
  display: none;
}
#popup-one-click-wrapper .right .sub-images input[type='radio']:checked + label {
  background: #e5e5e5;
}
#popup-one-click-wrapper .right .sub-images > span + span {
  margin-left: 5px;
}
#popup-one-click-wrapper .right .sub-images > span label:hover {
  cursor: pointer;
  background: #e5e5e5;
}
#popup-one-click-wrapper .product-name {
  font-size: 18px;
  margin-bottom: 15px;
}
#popup-one-click-wrapper .product-price {
  margin-right: auto;
  font-size: 14px;
  font-family: var(--main-font);
}
#popup-one-click-wrapper .product-description {
  max-height: 120px;
  overflow-y: auto;
  margin: 15px 0;
}
#popup-one-click-wrapper .payment-info {
  clear: both;
}
#popup-one-click-wrapper .info-heading {
  font-size: 15px;
  display: block;
  color: #000;
  text-align: left;
}
#popup-one-click-wrapper .info-heading-2 {
  font-size: 15px;
  display: block;
  color: #000;
  text-align: left;
  margin: 5px 0 10px 0;
}
#popup-one-click-wrapper .payment-info > div {
  position: relative;
  width: 100%;
  display: inline-block;
}
#popup-one-click-wrapper .payment-info > div + div {
  margin-top: 10px;
}
#popup-one-click-wrapper .payment-info > div label {
  font-size: 12px;
  line-height: 12px;
  color: #666;
  font-weight: bold;
  margin-bottom: 2px;
}
#popup-one-click-wrapper .payment-info > div label span {
  color: #f00;
}
#popup-one-click-wrapper .payment-info > div input,
#popup-one-click-wrapper .payment-info > div textarea {
  border: none;
  border-bottom: 1px solid #e6e6e6;
  padding: 5px 10px;
  background: #fff;
  outline: none;
  color: #919191;
  font-size: 16px;
  width: 100%;
  margin-bottom: 3px;
}
#popup-one-click-wrapper .payment-info > div textarea {
  min-height: 70px;
  resize: vertical;
}
.payment-quantity {
  position: relative;
}
.payment-quantity label {
  color: #1e1e1e;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 0 !important;
  font-family: var(--main-font);
}
.payment-quantity .number {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  margin-bottom: 5px;
}
.btn-minus,
.btn-plus {
  border-radius: 11px;
  border: 1px solid #edf1f7;
}
.payment-quantity .frame-change-count {
  width: 116px;
}
.payment-quantity .btn-plus button {
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
  outline: none;
  line-height: 5px;
  text-align: center;
  border-radius: 11px;
}
.payment-quantity .btn-minus button {
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
  outline: none;
  text-align: center;
  line-height: 0;
  border-radius: 11px;
}
.payment-quantity .btn-minus button span {
  /*width: 30px;
    height: 30px;*/
}
.payment-quantity .btn-plus button span {
  /*width: 30px;
    height: 30px;*/
}
.payment-quantity label {
  margin-right: auto;
}
.payment-quantity .btn-plus {
  float: right;
}
.payment-quantity .btn-minus {
  float: left;
}
.payment-quantity input.plus-minus {
  border: none;
  background: #fff;
  width: 45px;
  height: 32px;
  position: absolute;
  left: 35px;
  top: 0;
  outline: none;
  text-align: center;
  color: #c5cee0;
  font-size: 16px;
  font-style: normal;
  line-height: 22px;
}
.masked {
  position: absolute;
  z-index: 10000;
  width: 100%;
  height: 100%;
  background: #eee;
  opacity: 0.4;
  left: 0;
  top: 0;
}
.masked_loading {
  background: url(ring-alt.svg) no-repeat center center;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 10001;
  top: 0;
  left: 0;
}
.popup-purchase-button {
  text-align: center;
}
.popup-purchase-button button {
  width: 100% !important;
}
#purchase-form .text-danger {
  /*
    position: absolute;
    left: 0;
    bottom: -5px;
    */
  padding: 0;
  font-size: 12px;
}

/* Radio */
#popup-one-click-wrapper .radio label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#popup-one-click-wrapper .radio input[type='radio'] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  outline: none;
  transition:
    border-color 0.3s,
    background-color 0.3s;
  margin-bottom: 3px;
  position: relative;
}

#popup-one-click-wrapper .radio input[type='radio']:checked {
  border-color: #a4cb66;
}

#popup-one-click-wrapper .radio input[type='radio']:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: #a4cb66;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#popup-one-click-wrapper .radio input[type='radio']:disabled {
  border-color: #a4cb66;
  background-color: #eee;
  cursor: not-allowed;
}

#popup-one-click-wrapper .radio label span {
  margin-left: 6px;
  font-size: 14px;
  color: inherit;
}

@media (min-width: 320px) and (max-width: 532px) {
  #popup-one-click-wrapper .popup-heading {
    font-size: 14px;
  }
  #popup-one-click-wrapper .popup-footer button {
    width: 100%;
  }
  #popup-one-click-wrapper .popup-footer a {
    width: 100%;
    margin-top: 5px;
  }
  #popup-one-click-wrapper .right {
    width: 100%;
    text-align: center;
  }
  #popup-one-click-wrapper .left {
    width: 100%;
  }
}

/* Popup One Click Animation = START */

/*
 * Плавна анімація popup_on_click.
 * Клас mfp-one-click-fade додається через параметр mainClass у функції get_popup_one_click().
 */

/* Початковий стан затемненого фону */
.mfp-one-click-fade.mfp-bg {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Фон після відкриття popup */
.mfp-one-click-fade.mfp-bg.mfp-ready {
  opacity: 0.8;
}

/* Фон під час закриття popup */
.mfp-one-click-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

/* Початковий стан контенту popup */
.mfp-one-click-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Контент після відкриття popup */
.mfp-one-click-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Контент під час закриття popup */
.mfp-one-click-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
}

/* Popup One Click Animation = END */
