#uptocall-mini {
  position: fixed;
  bottom: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 999;
  border: 10px solid rgba(0, 248, 0, 0.15);
  border-radius: 100%;
}
#uptocall-mini .uptocall-mini-phone {
  -moz-border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  border-radius: 50% !important;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  background-color: rgba(55, 200, 55, 0.8);
  width: 70px;
  height: 70px;
}
#uptocall-mini .uptocall-mini-phone:hover {
  background-color: rgba(55, 200, 55, 1);
}
#uptocall-mini .uptocall-mini-phone:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url('callback.png');
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-animation: uptocallphone 1.5s linear infinite;
  -moz-animation: uptocallphone 1.5s linear infinite;
  animation: uptocallphone 1.5s linear infinite;
}
@-webkit-keyframes uptocallphone {
  0%,
  100%,
  50% {
    -ms-transform: rotate(0);
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  25% {
    -ms-transform: rotate(30deg);
    -webkit-transform: rotate(30deg);
    transform: rotate(30deg);
  }
  75% {
    -ms-transform: rotate(-30deg);
    -webkit-transform: rotate(-30deg);
    transform: rotate(-30deg);
  }
}
@-moz-keyframes uptocallphone {
  0%,
  100%,
  50% {
    -ms-transform: rotate(0);
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  25% {
    -ms-transform: rotate(30deg);
    -webkit-transform: rotate(30deg);
    transform: rotate(30deg);
  }
  75% {
    -ms-transform: rotate(-30deg);
    -webkit-transform: rotate(-30deg);
    transform: rotate(-30deg);
  }
}
@keyframes uptocallphone {
  0%,
  100%,
  50% {
    -ms-transform: rotate(0);
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  25% {
    -ms-transform: rotate(30deg);
    -webkit-transform: rotate(30deg);
    transform: rotate(30deg);
  }
  75% {
    -ms-transform: rotate(-30deg);
    -webkit-transform: rotate(-30deg);
    transform: rotate(-30deg);
  }
}
.popup_call_phone_btn {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 9997;
  width: 90px;
  height: 90px;
  background: url('call.png') no-repeat;
  border: 0 !important;
}
/* =========================================================
   POPUP «Зворотній зв'язок» — за макетом
========================================================= */
#popup-call-phone-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Inter Tight', sans-serif;
  color: #242f33;
  text-align: left;
}

#popup-call-phone-wrapper .popup-body {
  position: relative;
  z-index: 1;
}

#popup-call-phone-wrapper .popup-heading {
  margin: 0 0 24px;
  padding-right: 30px;
  font-family: inherit;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  color: #242f33;
}

#popup-call-phone-wrapper .popup-col {
  display: block;
}

#popup-call-phone-wrapper .popup-center {
  width: 100%;
}

/* Хрестик закриття (як в інших модалках) */
#popup-call-phone-wrapper .mfp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  padding: 0;
  opacity: 1;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

#popup-call-phone-wrapper .mfp-close::before,
#popup-call-phone-wrapper .mfp-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 1.5px;
  margin: -0.75px 0 0 -8.5px;
  border-radius: 2px;
  background: #7d7c7c;
  transform: rotate(45deg);
  transition: background-color 0.2s ease;
}

#popup-call-phone-wrapper .mfp-close::after {
  transform: rotate(-45deg);
}

#popup-call-phone-wrapper .mfp-close:hover::before,
#popup-call-phone-wrapper .mfp-close:hover::after {
  background: #242f33;
}

/* Месенджери (показуються, лише якщо задані в налаштуваннях магазину) */
#popup-call-phone-wrapper .oct-mobile-popup-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

#popup-call-phone-wrapper .oct-mobile-popup-icons a {
  font-size: 14px;
  color: #33815c;
}

/* Поля */
#popup-call-phone-wrapper .payment-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: none;
}

#popup-call-phone-wrapper .popup-field label {
  display: block;
  margin: 0 0 5px 10px;
  font-family: inherit;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #242f33;
}

#popup-call-phone-wrapper .popup-field label .required {
  color: #ef7038;
}

#popup-call-phone-wrapper .popup-field input,
#popup-call-phone-wrapper .popup-field textarea {
  display: block;
  width: 100%;
  height: 43px;
  padding: 6px 10px;
  border: 2px solid #f3f3f3;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
  outline: none;
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #242f33;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease;
}

#popup-call-phone-wrapper .popup-field textarea {
  height: 100px;
  min-height: 0;
  padding-top: 10px;
  resize: vertical;
}

#popup-call-phone-wrapper .popup-field input::placeholder,
#popup-call-phone-wrapper .popup-field textarea::placeholder {
  color: #7d7c7c;
  opacity: 1;
}

#popup-call-phone-wrapper .popup-field input:hover,
#popup-call-phone-wrapper .popup-field textarea:hover {
  border-color: #ddebe4;
}

#popup-call-phone-wrapper .popup-field input:focus,
#popup-call-phone-wrapper .popup-field textarea:focus {
  border-color: #33815c;
}

#popup-call-phone-wrapper .popup-field .error_style {
  border-color: #e05243;
}

#popup-call-phone-wrapper .text-danger {
  margin-top: 5px;
  font-size: 12px;
  line-height: 16px;
  color: #e05243;
  animation: popup-call-fade 0.3s ease;
}

/* Плашка помилки (main.css, .auth-modal__error) — перекриваємо загальний .text-danger вище */
#popup-call-phone-wrapper .text-danger.auth-modal__error {
  margin-top: 2px;
  font-size: 14px;
  line-height: 20px;
}

/* Згода: решта стилів спільна з модалкою реєстрації (main.css, .auth-modal__agree); за макетом — 15px над кнопкою */
#popup-call-phone-wrapper .popup-agree {
  margin: -6px 0 15px;
}

/* Кнопка «Відправити» */
#popup-call-phone-wrapper .popup-footer {
  margin-top: 21px;
}

#popup-call-phone-wrapper #popup-send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 43px;
  padding: 12px 10px 13px;
  border: 0;
  border-radius: 3px;
  background: #33815c;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

#popup-call-phone-wrapper #popup-send-button:hover {
  background: #2a6b4c;
}

#popup-call-phone-wrapper #popup-send-button.is-loading {
  opacity: 0.7;
  cursor: wait;
}

/* Успішна відправка */
#popup-call-phone-wrapper .popup-col.is-sent + .popup-footer {
  display: none;
}

#popup-call-phone-wrapper .popup-success {
  font-size: 14px;
  line-height: 20px;
  color: #7d7c7c;
  animation: popup-call-fade 0.35s ease;
}

#popup-call-phone-wrapper .popup-success__title {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: #33815c;
}

#popup-call-phone-wrapper .popup-success p {
  margin: 0;
}

@keyframes popup-call-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.masked,
.masked_loading {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.masked {
  z-index: 10000;
  background: #eee;
  opacity: 0.4;
}

.masked_loading {
  background: url('ring-alt.svg') center center no-repeat;
  z-index: 10001;
}

.popup-logo {
  margin-bottom: 20px;
  max-width: 168px;
}

@media (max-width: 480px) {
  #popup-call-phone-wrapper {
    padding: 24px 20px 20px;
  }

  #popup-call-phone-wrapper .popup-heading {
    font-size: 18px;
  }
}
