/* ==========================================================================
   Bill payment service detail
   ========================================================================== */

.page-service-detail .loan-product-intro__description
  + .loan-product-intro__description {
  margin-top: 10px;
}

/*
 * ทำให้เนื้อหาฝั่งขวามีความสูงเท่ากับรูปฝั่งซ้าย
 */
.page-service-detail .loan-product-intro__content {
  display: flex;
  align-self: stretch;
  flex-direction: column;
}

.page-service-detail
  .loan-product-intro__actions--single {
  grid-template-columns: minmax(0, 398px);
  margin-top: auto;
}

.page-service-detail .loan-product-details {
  min-height: auto;
}

/*
 * ให้ CTA สูงตามเนื้อหาจริง ไม่รับ min-height แบบ viewport
 * จาก loan-product.css
 */
.page-service-detail--bill-payment
  .calculator-branch-cta {
  min-height: 0;
  padding-block: clamp(52px, 4.5vw, 72px);
}

.page-service-detail--bill-payment
  .calculator-branch-cta__card {
  min-height: 290px;
}

.page-service-detail .bill-payment-terms {
  margin-top: 22px;
}

.page-service-detail .bill-payment-terms__title {
  margin: 0;
  color: var(--loan-product-text);
  font-family: var(--font-text-medium);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.67;
}

.page-service-detail
  .bill-payment-terms__introduction {
  margin: 18px 0 0;
  color: var(--loan-product-text);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}

.page-service-detail .bill-payment-terms__list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--loan-product-text);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}

.page-service-detail
  .bill-payment-terms__list
  li
  + li {
  margin-top: 8px;
}

/*
 * บริการนี้ยังไม่มีการ์ดคำบอกเล่า
 * จึงลดความสูงของ section ให้ใกล้เคียงหน้าต้นฉบับ
 */
.page-service-detail
  .customer-stories--service-empty {
  height: auto;
  min-height: 220px;
}

/*
 * เว้นระยะระหว่างแถวหัวข้อกับปุ่มคำบอกเล่าทั้งหมด
 */
.page-service-detail
  .customer-stories--service-empty
  .customer-stories__empty--service {
  min-height: 37px;
  margin: 0;
}

@media (max-width: 1024px) {
  .page-service-detail .loan-product-intro__content {
    display: block;
    align-self: auto;
  }

  .page-service-detail
    .loan-product-intro__actions--single {
    margin-top: 48px;
  }

  .page-service-detail--bill-payment
    .calculator-branch-cta {
    padding-block: 52px 60px;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 700px) {
  .page-service-detail
    .loan-product-intro__actions--single {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 42px;
  }

  .page-service-detail
    .bill-payment-terms__title,
  .page-service-detail
    .bill-payment-terms__introduction,
  .page-service-detail
    .bill-payment-terms__list {
    font-size: 13.5px;
  }

  .page-service-detail
    .customer-stories--service-empty {
    min-height: 210px;
  }

  .page-service-detail
    .customer-stories--service-empty
    .customer-stories__empty--service {
    min-height: 32px;
  }

  .page-service-detail--bill-payment
    .calculator-branch-cta {
    padding-block: 40px 48px;
  }

  .page-service-detail--bill-payment
    .calculator-branch-cta__card {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .page-service-detail--bill-payment
    .loan-product-intro__actions--single {
    margin-top: 32px;
  }

  .page-service-detail
    .customer-stories--service-empty {
    min-height: 190px;
  }

  .page-service-detail--bill-payment
    .calculator-branch-cta {
    padding-block: 36px 44px;
  }

  .page-service-detail--bill-payment
    .calculator-branch-cta__card {
    min-height: 250px;
    padding: 36px 20px;
  }

  .page-service-detail--bill-payment
    .calculator-branch-cta__card h2 {
    font-size: 27px;
  }

  .page-service-detail--bill-payment
    .calculator-branch-cta__card p {
    margin-top: 18px;
    font-size: 14px;
  }

  .page-service-detail--bill-payment
    .calculator-branch-cta__button {
    min-height: 46px;
    margin-top: 22px;
    font-size: 16px;
  }
}
