/* Bid modal — Fragment-style place-bid / direct-purchase popup */

.place-bid-popup-container .popup section {
  padding-bottom: 0;
}

.place-bid-popup-container .tm-bid-popup-title {
  font-size: 30px;
  line-height: 1.4em;
  font-weight: bold;
  text-align: center;
  margin: 0;
}

.place-bid-popup-container .popup-text {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-color);
  text-align: center;
  margin: 2px 0 4px;
}

.tm-bid-form-group {
  margin: 22px 0 0 !important;
}

.tm-bid-form-group > label {
  display: block;
  font-size: 15px;
  line-height: 18px;
  font-weight: bold;
  color: #fff;
  margin: 0 0 8px !important;
}

.tm-bid-form-group .form-control-wrap {
  align-items: center;
  padding-left: 16px;
}

.tm-bid-form-group .form-control-wrap::before {
  content: "";
  display: block;
  width: 15px;
  height: 19px;
  background-image: var(--image-url-ton-icon);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.tm-bid-form-group .form-control {
  flex: 1;
  padding-left: 0;
  font-size: 17px;
  font-weight: 500;
  background: transparent;
}

.tm-bid-approx {
  font-size: 14px;
  line-height: 18px;
  color: var(--text-color);
  margin: 8px 2px 0;
}

.tm-bid-error {
  font-size: 13px;
  line-height: 18px;
  color: var(--unavail-color, #e25c5c);
  margin: 12px 2px 0;
  text-align: center;
}

.tm-bid-cta {
  margin: 22px 0 0;
}

.tm-bid-cta .btn-primary.btn-block {
  display: block;
  width: 100%;
  font-size: 15px;
  line-height: 20px;
  font-weight: bold;
  padding: 14px 20px;
}

.tm-bid-cta .btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Processing / "Confirm in {Wallet}" view ----------------------------------*/

.processing-popup-container .popup-body {
  width: 348px;
  max-width: 100%;
  border-radius: 16px;
  padding: 40px 50px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.processing-popup-container .popup-side-icons-new {
  margin: 14px;
}

.tm-popup-processing .tm-logo-progress {
  padding: 0 0 16px;
}

.tm-popup-processing-head {
  font-size: 17px;
  line-height: 24px;
  font-weight: bold;
  color: #fff;
}

.tm-popup-processing-text {
  font-size: 14px;
  line-height: 20px;
  margin-top: 8px;
  color: var(--text-color);
}

/* Connection Declined popup — shown when the connected wallet's TON
   balance is below the required commission + gas. Layered on top of the
   bid modal so the user can dismiss it and come back to the form. */
.tm-declined-popup-container {
  z-index: 1000;
}
.tm-declined-popup {
  max-width: 360px;
  width: calc(100% - 32px);
}
.tm-declined-body {
  padding: 28px 22px 24px;
  text-align: center;
  position: relative;
}
.tm-declined-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-declined-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.tm-declined-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.tm-declined-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 12px;
  color: #fff;
}
.tm-declined-text {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-color, #8794a1);
  margin: 0;
}
.tm-declined-text b {
  color: #fff;
}
