/* Auto-generated minimal additions (do not override your main styles aggressively) */

.calculator__img {
  text-align: center;
}

.calculator__img img {
  display: inline-block;
  max-height: 350px;
  width: auto;
  height: auto;
}

/* Popup (tooltip) system like old calc: */
.calculator-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  padding: 20px;

  /* allow scroll when content is tall */
  overflow: auto;

  /* vertical center */
  align-items: center;
  justify-content: center;
}

.calculator-popup.is-open {
  display: flex;
}

.calculator-popup__inner {
  max-width: 720px;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  position: relative;
  box-shadow: 0 18px 60px rgba(0,0,0,0.2);

  /* helps when popup is taller than viewport */
  margin: auto;
}

.calculator-popup__close {
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 26px;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
}

.calculator-popup__title {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 10px;
}

.calculator-popup__text {
  font-size: 14px;
  line-height: 1.45;
}

.calculator-popup__more {
  margin-top: 12px;
}

/* Addons: hidden by default, shown by JS */
.calculator__addon {
  display: none;
  margin-top: 12px; /* чтобы не липло к радиоблокам */
}

.calculator__addon.is-visible {
  display: block;
}

/*
  Stream overlay inputs positioning (new markup requirement)
  IMPORTANT: number inputs are now wrapped into .calculator__select (from block_addons.php),
  so we neutralize the wrapper inside overlay to avoid affecting layout flow.
*/
.calculator__overlay-inputs {
  position: relative;
  min-height: 0;
}

.calculator__overlay-inputs .calculator__select {
  /* wrapper should not take space in overlay mode */
  position: static;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
}

.calculator__overlay-inputs .calculator__addon-number {
  position: absolute;
  width: 66px;
  height: 34px;
  border: 1px solid #2b5db6;
  border-radius: 6px;
  text-align: center;
  background: #fff;
}

/* Approx positions matching your screenshot (adjust in your theme if needed) */
.calculator__overlay-inputs .calculator__addon[data-show-when] { position: static; }
#wht1 { left: 90px; top: 68px; }
#wht2 { right: 20px; top: 112px; }
#wht3 { left: 160px; top: 150px; }

/* Caption under image */
.calculator__img-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.main-selection__radio input:disabled + .main-selection__radio-fake {
  background: #f7f7f7;
  border: 1px solid #eeeeee;
}

.main-selection__radio input:disabled:checked + .main-selection__radio-fake {
  background: #dddddd;
  color: #000000;
  border: 1px solid #eeeeee;
}
