#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  display: none;
}

.bubble-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 22px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
}

.bubble {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  max-width: 720px;
  width: 90%;
  padding: 28px 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  z-index: 1000;
  font-family: "Segoe UI", sans-serif;
  display: none; 
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  overflow-x: hidden;
  box-sizing: border-box;
}

.bubble-left {
  background-color: #f8f8f8;
  color: #888;
  border-radius: 4px;
  flex: 2;
  min-width: 0;
  max-width: 480px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-height: 80vh;
  overflow-y: auto;
  margin-top: 10px;
}

.bubble-right {
  flex: 1;
  padding-left: 16px;
}

.bubble-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: 14px;
}

.sheet-row {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 6px 0;
}

.sheet-header {
  font-weight: bold;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.sheet-cell {
  padding: 0 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Column width control */
.sheet-cell.name {
  flex: 6;
  white-space: normal;
  word-break: break-word;
}

.sheet-cell.quantity {
  flex: 2;
  text-align: center;
}

.sheet-cell.price {
  flex: 3;
  text-align: right;
}


.bubble_prices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: #444;
  margin-top: 16px;
  margin-bottom: 16px;
}

.price_top,
.price_bottom {
  flex: 1;
}

.price {
  font-size: 16px;
  font-weight: bold;
}

.slider-value {
  font-weight: bold;
  margin-left: 8px;
  color: #007bff;
}

.monthlyPayment {
  margin-top: 14px;
  font-size: 16px;
  color: #111;
}

/* Button trigger for bubble */
.bubble-trigger {
  margin-top: 16px;
}



/* ticks styles*/
.slider-container {
  position: relative;
  width: 100%;
  margin: 14px auto;
  bottom: 10px;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

input[type="range"] {
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 2;
}

.tick-bar {
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 28px;
  z-index: 1;
  pointer-events: none;
}

.tick {
  position: absolute;
  top: 0;
  width: 2px;
  height: 20px;
  background-color: #333;
}

.tick-label {
  position: absolute;
  top: 20px;
  font-size: 1em;
  transform: translateX(-50%);
  white-space: nowrap;
}









#numberSlider {
  -webkit-appearance: none; /* Remove default styling in Chrome/Safari */
  width: 100%;
  height: 8px;
  background: #ccc;
  border-radius: 4px;
  outline: none;
  margin: 7px 0;
  cursor: pointer;
}

/* Thumb for Webkit (Chrome, Safari, Edge) */
#numberSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease;
  border: none;
}

/* Thumb for Firefox */
#numberSlider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #007bff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease;
}

/* Track for Firefox */
#numberSlider::-moz-range-track {
  background: #ccc;
  height: 8px;
  border-radius: 4px;
}

#numberSlider::-moz-range-progress {
  background: #007bff;
  height: 8px;
  border-radius: 4px;
}

/* IE / Edge Legacy */
#numberSlider::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #007bff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* Track for IE / Edge Legacy */
#numberSlider::-ms-track {
  background: transparent;
  border-color: transparent;
  color: transparent;
  height: 8px;
}

#numberSlider::-ms-fill-lower {
  background: #ccc;
  border-radius: 4px;
}

#numberSlider::-ms-fill-upper {
  background: #ccc;
  border-radius: 4px;
}