/* --- Prijs Simulatie Tool Stijl (v3.5 - Final IceCleaning Layout) --- */

.pst-calculator-wrapper {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px 30px 0 30px;
  max-width: 900px;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  font-family: inherit;
}

.pst-title {
  color: #112d46;
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 25px;
  text-align: center;
}
.pst-title .pst-days-display {
  color: #ff5000;
}

/* Day selector */
.pst-day-selector {
  text-align: center;
  background-color: #f8f9fa;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 5px;
}
.pst-day-selector label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #112d46;
}
.pst-days-select {
  width: 120px;
  height: 48px;
  border: 2px solid #112d46;
  border-radius: 5px;
  background-color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #112d46;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.4;
  padding: 6px 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23112d46%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 0.65em auto;
}
.pst-days-select:focus {
  outline: none;
  border-color: #112d46;
  box-shadow: 0 0 8px rgba(31, 56, 113, 0.4);
}
.pst-days-select:hover {
  box-shadow: 0 0 6px rgba(31, 56, 113, 0.3);
}

/* Table layout */
.pst-table-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #f8f9fa;
  font-weight: bold;
  color: #112d46;
  border-bottom: 1px solid #f0f0f0;
}
.pst-table-row,
.pst-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  border-bottom: 1px solid #f0f0f0;
}
.pst-table-col {
  flex: 1;
  text-align: left;
}
.pst-table-col:last-child {
  text-align: right;
}

/* Price layout with vertical divider between prices */
.pst-price-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-basis: 280px;
  flex-grow: 0;
  position: relative;
}
.pst-item-subtotal {
  font-weight: bold;
  color: #112d46;
  font-size: 0.9em;
  text-align: right;
  order: 1;
}
.pst-daily-price {
  font-weight: normal;
  font-size: 0.9em;
  color: #6c757d;
  text-align: right;
  order: 2;
  padding-left: 16px;
  position: relative;
}
.pst-daily-price::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background-color: #e0e0e0;
}

/* Header alignment */
.pst-header-price-grid {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}
.pst-head-subtotal {
  color: #112d46;
  font-weight: 700;
  text-align: right;
  order: 1;
}
.pst-head-daily {
  color: #6c757d;
  font-weight: 600;
  text-align: right;
  order: 2;
  padding-left: 16px;
  position: relative;
}
.pst-head-daily::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background-color: #e0e0e0;
}

/* Footer */
.pst-table-footer {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  background-color: #112d46;
  margin-top: 10px;
  border-bottom: none;
  border-radius: 0 0 8px 8px;
  margin-left: -30px;
  margin-right: -30px;
  padding: 15px 40px;
}
.pst-total-price {
  font-size: 20px;
  color: #ffffff;
}

/* --- Final Mobile Grid Layout: perfectly tight & readable --- */
@media (max-width:600px){
  .pst-title {
    font-size:22px;
    line-height:1.25;
    text-align:center;
  }

  .pst-title-subline {
    display:block;
    text-align:center;
    font-size:18px;
    font-weight:600;
    color:#112d46;
    margin-top:4px;
  }

  .pst-table-header {display:none;}

  .pst-table-row {
    display:grid !important;
    grid-template-columns: 1fr;
    row-gap:4px;              /* small, fixed gap between text and prices */
    padding:8px 12px !important;
    margin:0 !important;
    border-bottom:1px solid #f0f0f0;
  }

  .pst-item-omschrijving {
    font-weight:700;
    font-size:15px;
    color:#112d46;
    margin:0;
    line-height:1.2;
  }

  .pst-price-col {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
    margin:0;
    padding:0;
  }

  .pst-item-subtotal {
    font-size:15px;
    font-weight:700;
    color:#112d46;
  }

  .pst-daily-price {
    font-size:14px;
    color:#6c757d;
    font-weight:400;
    padding-left:10px;
    position:relative;
  }

  .pst-daily-price::before {
    content:"";
    position:absolute;
    left:0;
    top:2px;
    bottom:2px;
    width:1px;
    background:#e0e0e0;
  }

  .pst-day-selector {
    padding:18px;
    margin-bottom:25px;
  }
}
