.estimation-summary {
  background: #f4f8fa;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-family: inherit;
}
.estimation-summary h3 {
    margin-bottom: 10px;
    font-size: 18px;
}
.text_color {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1F7A9B !important;
}
.selected-items {
  margin-top: 10px;
}
.selected-items p {
    font-size: 14px;
    margin: 0px;
}
.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
  margin-top: 8px;
}

.item-entry {
    border-radius: 4px;
    font-size: 14px;
    color: #000;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.summary-item p {
  margin: 4px 0;
  font-size: 15px;
}

.summary-item span {
  display: inline-block;
  margin-top: 4px;
}

.summary-item small {
    display: block;
    color: #000;
    font-size: 13px;
    font-weight: 400;
}

@media (max-width: 600px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .items-grid {
    grid-template-columns: 1fr;
  }
}


/* === MODAL STYLES === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.modal-content label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 500;
    color: black;
}

.modal-content input {
    width: 100%;
    padding: 8px 10px !important;
    font-size: 15px;
    border: 1px solid #ccc !important;
    border-radius: 4px;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-buttons button {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

#cancel-custom {
    background: transparent;
    color: #1f7a9b;
    border: 1px solid #1f7a9b;
    font-weight: 600;
}

#add-custom-item {
    background: #1f7a9b;
    color: #fff;
    font-weight: 600;
}

#custom-item-button {
  width: 100%;
  margin-top: 10px;
}

/* === QUOTE POPUP === */

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9999;
}

.popup-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* === LAYOUT WRAPPER === */

#himoo-estimator.estimator-two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* === LEFT + RIGHT PANES === */

.estimator-left {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
  border-radius: 8px;
}

.estimator-right {
  flex: 1 1 35%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
}

/* === SEARCH TOOLS === */

.estimator-tools {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
}
.estimator-tools input[type="text"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  margin-bottom: 12px;
}

input#item-search {
    border-radius: 7px;
    height: 40px;
    padding-left: 25px;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #E5E7EB;
    margin-top: 10px;
}
.tool-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-buttons button {
  padding: 6px 12px;
}

/* === CATEGORY TABS === */

.estimator-categories {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.category-tab {
    padding: 8px 12px;
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
    height: 40px;
    border: 1px solid #1f7a9b;
    color: #1f7a9b;
}

.category-tab.active {
    background-color: #1f7a9b;
    color: #fff;
    border-color: #1f7a9b;
}

/* === ITEM GRID === */

#item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.item-volume {
  font-size: 14px;
  color: #666;
}

.item-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 12px;
  gap: 12px;
  background: #fff;
}

.estimator-items {
    border: 1px solid #E5E7EB;
    padding: 20px;
    border-radius: 7px;
}

/* === QUANTITY CONTROLS === */

.qty-controls {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.qty-controls button {
  width: 35px;
  height: 30px;
  font-size: 16px;
  background: transparent;
  border: 1px solid #0073aa;
  color: #0073aa;
  border-radius: 4px;
  cursor: pointer;
}

.qty-controls .qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-top: 5px;

}

/* === SUMMARY PANEL === */

.estimator-right h3 {
    margin-top: 0;
    color: black;
}

.estimator-right p {
  margin: 6px 0;
  font-size: 15px;
  color: #333;
}

/* === TIPS SECTION === */

#estimator-tips {
  margin-top: 18px;
}

#estimator-tips p {
    font-weight: 500;
    margin-bottom: 6px;
    color: #ef1111;
}

#estimator-tips ul {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
}

#estimator-tips li {
  font-size: 14px;
  margin-bottom: 4px;
}

/* === BUTTONS & ACTIONS === */

.estimator-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
button#assistant-button, button#google-search, button#custom-item-button {
    background: transparent;
    border: 1px solid #1F7A9B;
    border-radius: 7px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #1F7A9B;
    cursor: pointer;
}
.estimator-actions button, a.btn-estimator.phone{
    padding: 10px;
    font-size: 15px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    border: 1px solid #1f7a9b;
    color: #1f7a9b;
}
.estimator-actions a {
    padding: 10px;
    font-size: 15px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    background: #1f7a9b;
    color: white;
}
.estimator-actions .phone {
  background: #28a745;
}

#assistant-button,
#google-search {
  flex: 1;
  white-space: nowrap;
}



div#himoo-estimator h3 {
    font-size: 20px;
    font-weight: 600;
}



.item-label {
    color: black;
    font-size: 16px;
}	

p.price_middle {
    text-align: center;
    padding: 0px;
}
p.price_middle {
    text-align: center;
    padding: 0px;
    color: #1f7a9b;
    font-size: 36px;
    font-weight: 700;
	 margin-top: 35px;
}
p.price_mid {
    text-align: center;
    font-weight: 400;
    margin-top: 10px;
}
p.vehicle_rec {
    background: #f4f8fa;
    padding: 20px !important;
    border: 1px solid #ddd;
    border-radius: 7px;
}
span#vehicle-type {
    font-size: 16px;
    font-weight: 600;
}
span#vehicle-type small {
    font-size: 14px !important;
    font-weight: 400;
}
.estimator-right {
  position: sticky;
  top: 40px; /* Adjust spacing from top as needed */
  height: fit-content;
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  z-index: 10;
}
.close-modal:hover {
  color: #000;
}
.modal-content {
  position: relative;
}
.popup-content {
  max-height: 90vh;
  overflow: hidden;
  position: relative;
}

.form-scroll-wrapper {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px; /* prevent scrollbar overlap */
}

div#quotePopup .popup-content {
    width: 900px;
    max-width: 1000%;
}


/* === RESPONSIVE BEHAVIOR === */
@media (max-width: 600px) {
  #item-grid {
    grid-template-columns: 1fr;
  }

  #himoo-estimator.estimator-two-column {
    flex-direction: column;
  }

  .estimator-left,
  .estimator-right {
    flex: 1 1 100%;
  }
}