/* Avauspainikkeen perusmuotoilu */
.pesuhinnasto-btn {
  padding: 12px 24px;
  background-color: #004b87;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s;
}
.pesuhinnasto-btn:hover { background-color: #003663; }

/* Modal tausta (Overlay) */
.custom-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 40px 20px; /* Pakottaa aina 40px tyhjää tilaa ylös ja alas */
}
.custom-modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* Modal sisältölaatikko */
.custom-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 650px;
  max-height: 85vh; /* Pienennetty maksimikorkeutta (oli 90vh) */
  padding: 30px 40px; /* Pienennetty laatikon sisäistä tyhjää tilaa */
  border-radius: 12px;
  position: relative;
  overflow-y: auto;
  font-family: 'Oswald', 'Arial Narrow', sans-serif; /* Kuvan mukainen kapea/bold fonttityyli */
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.custom-modal.is-open .custom-modal-content {
  transform: translateY(0);
}

/* Sulkemispainike */
.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #000;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  padding-bottom: 2px;
}

/* Otsikot (Tiivistetty) */
.modal-main-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}
.modal-category {
  color: #004b87;
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 15px 0 8px 0;
}

/* Hinnastorivit (Tiivistetty) */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}
.price-details {
  flex: 1;
}
.price-title {
  font-weight: bold;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 2px;
}
.price-desc {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.25;
  font-family: sans-serif;
}

/* Hinta (Isonnettu ja pakotettu !important -määreellä) */
.price-amount {
  color: #004b87 !important;
  font-size: 2.2rem !important; /* Pakotetaan hinta isoksi */
  font-weight: bold !important;
  white-space: nowrap;
  line-height: 1;
  margin-top: -2px; /* Tasaa hinnan nätimmin otsikon linjaan */
}

/* Viimeinen lisärivi (Tiivistetty) */
.extra-row {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  align-items: center;
}
.extra-row .price-amount {
  font-size: 2.2rem !important; /* Pidetään samankokoisena muiden kanssa */
}

/* Mobiilioptimointi */
@media (max-width: 500px) {
  .custom-modal-content {
    padding: 20px;
  }
  .modal-main-title { font-size: 1.8rem; }
  .price-amount { font-size: 1.8rem !important; }
  .extra-row .price-amount { font-size: 1.8rem !important; }
}