#realestateOrder_wrapper.overlay::before {
  content: " ";
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
/*  background: #000; */
  background: rgba(0,0,0,0.7);
}

#realestateOrder_window {
  display: none;
  z-index: 200;
  position: fixed;
  left: 50%;
  top: 50%;
  /* width: 360px; */
  /* width: 420px; */   /* this is the target size */
  width: 480px;
  height: 100%;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  padding: 10px 20px;
  background: #fff;
  border: 3px solid #333;
  /* border: 5px solid #999; */
  /* border-radius: 10px; */
  /* box-shadow: 0 0 10px rgba(0,0,0,0.5); */
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
}

#realestateOrder_wrapper.overlay #realestateOrder_window {
  display: block;
}

#realestateOrder_window {
    font: 500 11px "Raleway", "FontAwesome", sans-serif;
    letter-spacing: 0.5px;
    /* color: #333; */
    color: #000;
}

#realestateOrder_window .title {
    font: 500 11px/11px "Raleway", sans-serif;
    letter-spacing: 1.5px;
    padding: 7px 0 0 0;
    width: fit-content;
    margin: 0 auto;
}
#realestateOrder_window .caps {
    font-size: 14px;
    font-weight: 500;
}
#realestateOrder_window .caps-sm {
    font-size: 11px;
    font-weight: 600;
}
#realestateOrder_window .title-sm {
    font: 500 9px/1.6 "Raleway", sans-serif;
    letter-spacing: 0.5px;
    text-align: right;
}

#realestateOrder_window fieldset {
    margin-top: 12px;
    border: 2px solid #ccc;
}

#realestateOrder_window p {
    border: 0;
    letter-spacing: 0.5px;
}

#realestateOrder_window input,
#realestateOrder_window select,
#realestateOrder_window textarea {
    margin-top: 12px;
}

#realestateOrder_window select.plc-hldr { color: #aaa; }
#realestateOrder_window select optgroup,
#realestateOrder_window select option { color: #333; }
#realestateOrder_window select option[disabled]:first-child { display: none; }

#realestateOrder_window #helper > span:hover {
    background-color: #eee;
}

#realestateOrder_window #helper {
    position: relative;
    border-bottom: 1px solid #ccc;
    /* must set a width */
    width: 120px;
    color: #aaa;
}

#realestateOrder_window .inpOutline {
    outline: 2px solid #ccc;
    border-radius: 2px;
}

#realestateOrder_window #helper > span {
    position: absolute;
    bottom: 0;
    padding: 0 5px;
    /* same width as #helper */
    width: 120px;
}

#realestateOrder_window select[name="extras"] {
    display: none;
    position: absolute;
    top: 15px;
    left: 0;
    border: 1px solid #333;
    padding-left: 3px;
    background-color: #f0f0f0;
}
#realestateOrder_window select[name="extras"]:hover {
    background-color: #fff;
}
#realestateOrder_window select[name="extras"] option:hover {
    background-color: #0066ff;
    color: white;
}

    /* hide vert. scroll on multiple selects, still need size attr */
#realestateOrder_window select {
    scrollbar-width: none; /*For Firefox*/;
    -ms-overflow-style: none;  /*For Internet Explorer 10+*/;
}
#realestateOrder_window select::-webkit-scrollbar { /*For WebKit Browsers*/
    width: 0;
}

#realestateOrder_window label {
/*  margin-right: 3em; */
  white-space: nowrap;
  vertical-align: middle;
}

#realestateOrder_window input[type="radio"] {
  margin-right: 7px;
  margin-top: -1px;
  vertical-align: middle;
  accent-color: #46707f;
}

#realestateOrder_window input[type="checkbox"] {
  margin: 5px 10px 0 0;
  accent-color: #46707f;
}

#realestateOrder_window .tot {
    display: inline-block;
    width: 4em;
}

#realestateOrder_window #totals {
    margin: 7px 0;
    padding-right: 2px;
    line-height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: right;
}
#realestateOrder_window #totals:hover {
  background-color: #eee;
}
#realestateOrder_window #totals i {
  margin-right: 5em;
  color: #aaa;
}
#realestateOrder_window #subtotal {
  margin-left: 2em;
}

#realestateOrder_window .pay-block {
  margin-left: 20px;
}

#realestateOrder_window .i-cc {
  height: 1.5em;
  margin-left: 3px;
}

#realestateOrder_window .cc-icons {
  display: flex;
  justify-content: flex-end;
}

/* Hide arrow spinners on number fields w3schools */
/* Chrome, Safari, Edge, Opera */
#realestateOrder_window input::-webkit-outer-spin-button,
#realestateOrder_window input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
#realestateOrder_window input[type=number] {
  -moz-appearance: textfield;
}

#realestateOrder_window .terms {
  dispaly: flex;
  justify-content: center;
  margin: 7px auto 0 auto;
  text-align: center;
}
#realestateOrder_window .terms a {
  text-decoration: underline;
}
#realestateOrder_window .terms a:hover {
  color: blue;
}

#realestateOrder_window .buttons {
/*  margin: 25px auto 15px auto; */ /* w/o terms */
  margin: 18px auto 15px auto;
  display: flex;
  justify-content: space-between;
 }

#realestateOrder_window .buttons button[type=reset],
#realestateOrder_window .buttons #close,
#realestateOrder_window .buttons #credit_clear,
#realestateOrder_window .buttons #credit_close {
  width: 24%;
}
#realestateOrder_window .buttons #credit_ok,
#realestateOrder_window .buttons button[type=submit] {
  width: 48%;
}

/* this should work */
/* #realestateOrder_window .buttons:nth-child(1),
#realestateOrder_window .buttons:nth-child(2) {
  width: 24%;
}
#realestateOrder_window .buttons:nth-child(3) {
  width: 48%;
} */



/* ------------------------------------------------------------------------ */
.show {
    display: block;
}
/* ------------------------------------------------------------------------ */

.tooltip {
  position: relative;
  display: inline-block;
  /* border-bottom: 1px dotted black; */
}

.tooltip .tooltiptext {
  visibility: hidden;
  /* width: 120px; */
  width: 70%;
  /* background-color: #555; */
  background-color: white;
  /* color: #fff; */
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  /* margin-left: -60px; */
  margin-left: -35%;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #aaa transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip .tooltiptext span,
.tooltip .tooltiptext div {
    margin: 0; 
    padding: 0;
    line-height: 12px;

}


#qty_dialog {
  display: none;
  z-index: 200;
  position: fixed;
  left: 50%;
  top: 50%;
  width: 200px;
  overflow: auto;
  padding: 0 10px 10px 10px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
}
#qty_dialog p {
  margin: 0 auto;
  width: fit-content;
}

#credit_dialog {
  display: none;
  z-index: 200;
  position: fixed;
  top: 50%;
/*  width: 434px; */
  width: 400px;
  overflow: auto;
  padding: 0 10px 10px 10px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
}
#credit_dialog i {
  font-size: 85%;
  color: #777;
  margin-left: 5px;
}

#re_purch_msg_dialog {
  display: none;
  z-index: 200;
  position: fixed;
  left: 40.5%;
  top: 25%;
  width: 350px;
  overflow: auto;
  padding: 0 10px 10px 10px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
}
#re_purch_msg_dialog p {
 margin: 0 auto; 
 width: fit-content;
  text-align: center;
}