.callback-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  padding: 0;
  border-radius: 50%;
  background: #3267b8;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 10px 24px rgba(50, 103, 184, 0.35);
}

.callback-fab:hover {
  color: #fff;
  text-decoration: none;
  background: #2b5aa1;
}

.callback-fab:focus-visible {
  outline: 2px solid #8fb0e5;
  outline-offset: 4px;
}

.callback-fab__icon {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.callback-fab__label {
  position: absolute;
  right: 84px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #3267b8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.callback-fab:hover .callback-fab__label,
.callback-fab:focus-visible .callback-fab__label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.callback-fab::before,
.callback-fab::after,
.callback-widget__circle-submit::before,
.callback-widget__circle-submit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(50, 103, 184, 0.45);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.callback-fab::before,
.callback-fab::after {
  inset: -10px;
}

.callback-fab::before,
.callback-widget__circle-submit::before {
  animation: callbackPulse 1.8s linear infinite;
}

.callback-fab::after,
.callback-widget__circle-submit::after {
  animation: callbackPulse 1.8s linear infinite 0.9s;
}

.callback-widget-modal {
  position: fixed;
  right: 32px;
  bottom: 108px;
  z-index: 1060;
  width: min(420px, calc(100vw - 48px));
  max-width: 420px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.callback-widget-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.callback-widget-modal__panel {
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

.callback-widget__header {
  display: block;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.callback-widget__header-content {
  width: 100%;
}

.callback-widget__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.callback-widget__title {
  margin: 0;
  color: #212529;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.callback-widget__note {
  font-size: 16px;
  line-height: 1.4;
  color: #6c757d;
}

.callback-widget__close {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8e2ff;
  cursor: pointer;
  box-shadow: none;
}

.callback-widget__close::before,
.callback-widget__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: #1f2937;
}

.callback-widget__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.callback-widget__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.callback-widget__close:hover {
  background: #c7d6ff;
}

.callback-widget__close:focus-visible {
  outline: 2px solid rgba(50, 103, 184, 0.35);
  outline-offset: 2px;
}

.callback-widget__body {
  padding: 24px;
}

.callback-widget__status-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 4px;
}

.callback-widget__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  color: #3267b8;
  user-select: none;
}

.callback-widget__status-text {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.callback-widget__status.is-finished .callback-widget__status-text {
  color: #3267b8;
}

.callback-widget__text-submit {
  min-height: 52px;
  font-size: 20px;
  font-weight: 700;
  color: #fff !important;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.callback-widget__text-submit:hover,
.callback-widget__text-submit:focus,
.callback-widget__text-submit:active,
.callback-widget__text-submit span {
  color: #fff !important;
}

.callback-widget__text-submit:disabled {
  opacity: 1;
  cursor: default;
  color: #fff !important;
}

.callback-widget__text-submit:disabled span {
  color: #fff !important;
}

@keyframes callbackPulse {
  0% {
    transform: scale(0.85);
    opacity: 0;
  }

  35% {
    opacity: 0.55;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .callback-fab {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }

  .callback-fab__icon {
    width: 24px;
    height: 24px;
  }

  .callback-fab__label {
    display: none;
  }

  .callback-widget-modal {
    right: 16px;
    bottom: 88px;
    width: calc(100vw - 32px);
    max-width: none;
  }

  .callback-widget__header {
    padding: 20px 20px 14px;
  }

  .callback-widget__title {
    font-size: 22px;
  }

  .callback-widget__note {
    font-size: 15px;
    max-width: none;
  }

  .callback-widget__body {
    padding: 20px;
  }

  .callback-widget__circle-submit {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    font-size: 22px;
  }

  .callback-widget__circle-submit-icon svg {
    width: 24px;
    height: 24px;
  }

  .callback-widget__text-submit {
    min-height: 48px;
    font-size: 18px;
  }
}
