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

#finance-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 700px;
  max-height: 90%;
  padding: 20px;
  background: white;
  border: 1px solid #ccc;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

/* Custom scrollbar styles */
#finance-popup::-webkit-scrollbar {
  width: 8px;
}

#finance-popup::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#finance-popup::-webkit-scrollbar-thumb {
  background-color: #184d7f;
  border-radius: 10px;
  border: 3px solid #184d7f;
}

#finance-popup h2, #finance-popup h3 {
  color: #184d7f;
  font-size: 1.5em;
}

#product-info {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

#product-info img {
  width: 100px;
  margin-right: 20px;
}

#product-info p {
  margin: 0;
}

#finance-popup label,
#finance-popup select,
#finance-popup input,
#finance-popup button {
  display: block;
  width: 100%;
  margin: 10px 0;
  font-size: 0.9em;
}

#finance-popup button {
  background: #184d7f;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 0.9em;
}

#finance-popup button:hover {
  background: #133c66;
}

#finance-benefits ul {
  padding-left: 20px;
}

#finance-benefits ul li {
  list-style: disc;
  margin: 5px 0;
}

#finance-benefits hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 10px 0;
}

#finance-form input[type="text"],
#finance-form input[type="email"],
#finance-form input[type="tel"],
#finance-form select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#finance-options p {
  display: flex;
  align-items: center;
  margin: 5px 0;
  font-size: 0.9em;
  color: #184d7f;
  font-weight: 600;
}

#finance-calculator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 3px solid #184d7f;
  padding: 15px 20px;
}

#finance-calculator h3 {
  color: #184d7f;
  font-family: 'Poppins';
  font-size: 16px;
  margin: 0;
}

span#monthly-rate, span#monthly-rate-text {
  font-size: 26px;
  font-weight: bold;
  line-height: 1.5em;
}

/* Add border to Flexible Financing Options section */
#finance-options {
  border: 2px solid #184d7f; /* Adds a blue border */
  padding: 15px; /* Adds padding inside the border */
  border-radius: 5px; /* Rounds the corners */
  margin-bottom: 20px; /* Adds some space below the section */
}

/* Add border to the Request Finance button */
button#request-finance {
  background: #184d7f;
  color: white;
  border: 2px solid #184d7f; /* Adds a blue border */
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1em;
}

button#request-finance:hover {
  background: #133c66;
  border: 2px solid #133c66; /* Changes border on hover */
}

#product-info p:nth-child(2) {
  margin-top: 20px;
  font-weight: 500;
  color: #184d7f;
}

/* Spinner styling for button */
.button-loader {
  border: 2px solid #f3f3f3; /* Light grey */
  border-top: 2px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 12px;
  height: 12px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 1320px) {
  #finance-calculator {
    flex-direction: column;
    align-items: baseline;
  }

  button#request-finance {
    margin-top: 20px;
    width: 100%;
  }
}
