 .callback-widget {
  position: fixed;
  right: 20px;
  bottom: 196px;
  z-index: 1180;
}

.callback-widget__tooltip {
  position: absolute;
  right: -8px;
  bottom: 108px;
  width: 260px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #f3f3f5;
  color: #2b2b2f;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.callback-widget__tooltip.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

.callback-widget__tooltip-arrow {
  position: absolute;
  right: 18px;
  bottom: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #f3f3f5;
}

.callback-widget__button {
  position: relative;
  width: 72px;
  height: 72px;
  min-width: 72px;
  border: none;
  outline: none;
  background: var(--clr-primary) !important;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(234, 127, 50, 0.22);
  transition: transform 0.22s ease, box-shadow 0.25s ease;
}

.callback-widget__button:hover {
  transform: scale(1.04);
}

.callback-widget__circles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.callback-widget__circle-outer {
  display: none;
}

.callback-widget__circle-inner {
  fill: var(--clr-primary) !important;
}

.callback-widget__text,
.callback-widget__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.callback-widget__text {
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0 10px;
  z-index: 2;
}

.callback-widget__text span {
  display: block;
}

.callback-widget__icon {
  width: 30px;
  height: 30px;
  margin: auto;
  fill: #ffffff;
  z-index: 3;
}

.callback-widget__button.is-icon .callback-widget__icon {
  opacity: 1;
  transform: scale(1);
}

.callback-widget__button.is-icon .callback-widget__text {
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}

.callback-widget__button.is-text .callback-widget__icon {
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}

.callback-widget__button.is-text .callback-widget__text {
  opacity: 1;
  transform: scale(1);
}

.callback-widget__button.is-shaking.is-icon {
  animation: callbackShake 1.8s infinite;
}

.callback-widget__button.is-shaking::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.42);
  animation: callbackPulse 1.8s infinite;
  pointer-events: none;
}

@keyframes callbackShake {
  0%, 100% {
    transform: translateX(0);
  }
  8% {
    transform: translateX(-2px) rotate(-7deg);
  }
  16% {
    transform: translateX(2px) rotate(7deg);
  }
  24% {
    transform: translateX(-2px) rotate(-5deg);
  }
  32% {
    transform: translateX(2px) rotate(5deg);
  }
  40% {
    transform: translateX(0);
  }
}

@keyframes callbackPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.42);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
}

.callback-modal--hidden {
  display: none;
}

.callback-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.callback-modal__dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  margin: 80px auto 0;
  border-radius: 28px;
  background: #ffffff;
  color: #18181b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.callback-modal__content {
  padding: 36px;
}

.callback-modal__close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 47px;
  height: 47px;
  border: none;
  border-radius: 50%;
  background: #fff7ed;
  color: #f97316;
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callback-modal__close::before,
.callback-modal__close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: #f97316;
}

.callback-modal__close::before {
  transform: rotate(45deg);
}

.callback-modal__close::after {
  transform: rotate(-45deg);
}

.callback-modal__top-text {
  margin-bottom: 10px;
  font-size: 15px;
  color: #71717a;
}

.callback-modal__title {
  margin-bottom: 24px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
}

.callback-modal__form {
  display: grid;
  gap: 14px;
}

.callback-modal__input {
  width: 100%;
  height: 58px;
  border: 1px solid #e4e4e7;
  border-radius: 18px;
  background: #fafafa;
  padding: 0 18px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  outline: none;
}

.callback-modal__input:focus {
  border-color: #f97316;
  background: #ffffff;
}

.callback-modal__submit {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 18px;
  background: #f97316;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: 0.25s ease;
}

.callback-modal__submit:hover {
  background: #fb923c;
}

.callback-modal__message {
  min-height: 22px;
  font-size: 14px;
  color: #52525b;
}

.callback-modal__message.is-success {
  color: #15803d;
}

.callback-modal__message.is-error {
  color: #b91c1c;
}

@media (max-width: 768px) {
  .callback-widget {
    right: 16px;
    bottom: 168px;
  }

  .callback-widget__tooltip {
    display: none;
  }

  .callback-widget__text {
    font-size: 9px;
    padding: 0 8px;
  }
}
