
/* RemTeh universal callback dialog v13 — shared header form on every page. */
.eb-inst.eb-2.eb-visible,
.eb-2.eb-visible {
  pointer-events: auto !important;
}

.eb-inst.eb-2 .eb-dialog,
.eb-2 .eb-dialog {
  position: relative;
}

.eb-inst.eb-2 .eb-dialog > .eb-close.placement-inside,
.eb-2 .eb-dialog > .eb-close.placement-inside {
  --eb-close-button-inside: flex !important;
  display: flex !important;
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 10001 !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid rgba(15, 23, 42, .14) !important;
  border-radius: 50% !important;
  color: #0f172a !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18) !important;
  cursor: pointer !important;
}

.eb-inst.eb-2 .eb-dialog > .eb-close.placement-inside img,
.eb-2 .eb-dialog > .eb-close.placement-inside img {
  display: none !important;
}

.eb-inst.eb-2 .eb-dialog > .eb-close.placement-inside span,
.eb-2 .eb-dialog > .eb-close.placement-inside span {
  display: block !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: translateY(-1px);
}

.eb-inst.eb-2 .eb-dialog > .eb-close.placement-inside:hover,
.eb-2 .eb-dialog > .eb-close.placement-inside:hover {
  color: #fff !important;
  border-color: #0f63ce !important;
  background: #0f63ce !important;
}

.eb-inst.eb-2 .eb-dialog > .eb-close.placement-inside:focus-visible,
.eb-2 .eb-dialog > .eb-close.placement-inside:focus-visible {
  outline: 3px solid #0f63ce !important;
  outline-offset: 2px !important;
}

.eb-inst.eb-2 > .eb-close.placement-outside,
.eb-2 > .eb-close.placement-outside {
  display: none !important;
}

.rt-callback-form-head {
  padding: 18px 22px 4px;
  color: #111827;
}

.rt-callback-form-head h2 {
  margin: 0;
  padding-right: 38px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.rt-callback-form-head p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.rt-callback-modal-open .rt-fc-toggle,
.rt-callback-modal-open .rt-fc-panel {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 575px) {
  .eb-inst.eb-2 .eb-dialog,
  .eb-2 .eb-dialog {
    width: min(calc(100% - 20px), 500px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow: auto !important;
  }

  .eb-inst.eb-2 .eb-dialog > .eb-close.placement-inside,
  .eb-2 .eb-dialog > .eb-close.placement-inside {
    top: 8px !important;
    right: 8px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .rt-callback-form-head {
    padding: 18px 18px 2px;
  }
}

/* v13.2 compact layout: the form follows the hours block without a visible title. */
.eb-inst.eb-2 .rt-callback-form-head,
.eb-2 .rt-callback-form-head {
  display: none !important;
}

.eb-inst.eb-2 .cf-content-wrap,
.eb-2 .cf-content-wrap {
  padding-top: 12px !important;
  padding-bottom: 8px !important;
}

.eb-inst.eb-2 .cf-content-text p,
.eb-2 .cf-content-text p {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  line-height: 1.25 !important;
}

.eb-inst.eb-2 .cf-content-text p:last-child,
.eb-2 .cf-content-text p:last-child {
  margin-bottom: 0 !important;
}

.eb-inst.eb-2 .cf-form-wrap,
.eb-2 .cf-form-wrap {
  padding-top: 10px !important;
  padding-bottom: 12px !important;
}

/* v13.3: keep the modal exactly centered and keep the close control clear of the logo. */
.eb-inst.eb-2.eb-visible,
.eb-2.eb-visible {
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  box-sizing: border-box !important;
  padding: 12px !important;
  align-items: center !important;
  justify-content: center !important;
}

.eb-inst.eb-2.eb-visible .eb-dialog,
.eb-2.eb-visible .eb-dialog {
  margin: auto !important;
}

.eb-inst.eb-2 .eb-dialog > .eb-close.placement-inside,
.eb-2 .eb-dialog > .eb-close.placement-inside,
.eb-inst.eb-2 .eb-dialog > .eb-close.placement-inside:hover,
.eb-2 .eb-dialog > .eb-close.placement-inside:hover {
  top: 6px !important;
  right: 6px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
}

.eb-inst.eb-2 .eb-dialog > .eb-close.placement-inside span,
.eb-2 .eb-dialog > .eb-close.placement-inside span {
  font-size: 23px !important;
}

@media (min-width: 576px) {
  .eb-inst.eb-2 .cf-content-img img,
  .eb-2 .cf-content-img img {
    max-width: calc(100% - 44px) !important;
    height: auto !important;
  }
}

@media (max-width: 575px) {
  .eb-inst.eb-2 .eb-dialog,
  .eb-2 .eb-dialog {
    max-height: calc(100dvh - 24px) !important;
  }
}
