/* ============================================================
   金額 明細
============================================================ */
.payment_rbox {
  clear: both;
  z-index: 1000;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 100%;
  max-width: 1024px;
  width: 100%;
  margin: auto;
  background: #f9f9f9;
  padding: 20px 40px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  overflow-y: auto;
  display: none;
}

.payment_rbox.is-fixed,
.payment_rbox.is-static,
.payment_rbox.js_slide_payment_rbox {
  position: static !important;
  z-index: auto !important;
  box-shadow: none;
}

.payment_rbox.is-fixed {
  position: fixed;
  z-index: 1000;
}

.payment_rbox.is-static {
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
  z-index: 1;
  transition: margin-top 0.25s ease;
}

.payment_rbox.js_slide_payment_rbox {
  background: #fff;
  padding-bottom: 40px !important;
}

.payment_rbox .payment_rbox_tit1 {
  display: none;
}

.payment_rbox .payment_rbox_in {
  padding: 0;
  line-height: 1.4;
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-sizing: border-box;
  border: none;
}
.payment_rbox .pay_1{
  font-size: 16px;
  width: 15%;
}
.payment_rbox .delivery_fee .pay_1{
  width: auto;
}

.payment_rbox_in .price-amount {
  font-size: 26px;
}

.payment_rbox_in .price-unit {
  font-size: 20px;
  margin-left: 2px;
}


.payment_rbox .w_pay_tr,
.payment_rbox .w_pay_tr2 {
  padding: 15px 0;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment_rbox .w_pay_tr {
  border-bottom: 1px solid #202124;
  gap: 3%;
}

.payment_rbox .w_pay_tr.no_border {
  border-bottom: none;
  padding-bottom: 0px;
}

.pay_title {
  font-weight: 700;
  font-size: 20px;
  margin: 10px 0;
}

.payment_rbox .pay_3 {
  font-size: 20px;
  margin-top: 0;
}

.payment_rbox .pay_1_2 {
  font-size: 16px;
  padding: 0px;
  flex: 1;
}

.payment_rbox .pay_2,
.payment_rbox .pay_4 {
  float: right;
  font-weight: 700;
  font-family: inherit;
}

.payment_rbox .pay_2 {
  font-size: 20px;
  text-align: end;
}

.payment_rbox .pay_4 {
  font-size: 22px;
  color: unset;
}

.payment_rbox .pay_2#calc_coupon_discount {
  color: #ba3030;
}

.payment_rbox .pay_2 .unit,
.payment_rbox .pay_4 .unit {
  font-size: 13px;
  padding-left: 2px;
  display: inline-block;
}

.payment_rbox .pay_notes {
  font-size: 85%;
  padding: 0;
}

.payment_rbox .popup_close {
  position: absolute;
  right: 20px;
  height: 40px;
  width: 40px;
  margin-left: -40px;
  text-align: center;
  color: #c2c2c2;
  font-size: 30px;
  line-height: 39px;
  font-family: serif;
  background-size: auto 100%;
}

.payment_rbox .popup_close:before {
  content: "×";
}

/* ============================================================
   ページ下部に表示 金額合計
============================================================ */
.payment_scrollfix_sp {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 3;
  max-width: 1024px;
  margin: auto;
  box-sizing: border-box;
  will-change: top, transform;
  transition: top 0.3s ease, transform 0.3s ease;
  max-height: 100vh; 
  overflow-y: auto;
  border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.payment_scrollfix_sp.is-stopped {
  /* position: absolute; */
  position: initial;
  top: auto;
  bottom: auto;
}

.payment_scrollfix_spacer {
  height: 10px;
}

.payment_scrollfix_sp .text1 {
  font-size: 14px;
  float: left;
  margin-right: 6px;
}

.payment_scrollfix_sp .text2,
.payment_scrollfix_sp .pay1 {
  font-size: 18px;
  float: right;
  font-weight: bold;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.payment_scrollfix_sp .unit {
  font-weight: 700;
  font-size: 16px;
  padding-left: 3px;
  display: inline-block;
}

.payment_scrollfix_sp .text3 {
  font-size: 13px;
  float: left;
  color: #fff;
  padding-left: 18px;
  font-weight: bold;
  position: relative;
}

.payment_scrollfix_sp .text3:before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  width: 6px;
  height: 6px;
  border: 1px solid;
  border-color: #fff #fff transparent transparent;
  transform: rotate(-45deg);
}

.payment_scrollfix_sp .text3.open:before {
  transform: rotate(135deg);
  top: 7px;
}

.breakdown_wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.breakdown_name {
  text-align: left;
  float: left;
}

.breakdown_price {
  text-align: right;
  color: black;
  font-weight: bold;
}

/* ============================================================
   金額ヘッダー部（summary）
============================================================ */
.summary-box {
  background-color: #be2026;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  gap: 20px;
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.count-box {
  background-color: #fff;
  color: #be2026;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  padding: 0px 10px;
}

.count-box .count {
   font-weight: 700;
   font-size: 24px;
}

.label {
  font-size: 18px;
  font-weight: 600;
}

.summary-right {
  text-align: right;
  white-space: nowrap;
}

.amount {
  font-size: 32px;
  font-weight: bold;
}

.amount .unit {
  font-size: 20px;
}

.price-amount {
   font-size: 32px;
  font-weight: bold;
}

.price-unit {
   font-size: 20px;
   margin-left: 4px;
}

.tax {
  font-size: 18px;
}

.details-toggle {
  background-color: #1e1e22;
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-arrow {
  font-size: 10px;
  margin-left: 10px;
}

.btn_center.section_app {
  margin-top: 50px;
}

.btn_center.section_app .btn_w_app1 {
  background: #009EA8;
  transition: .3s;
  margin: 0;
  padding: 13px 0;
}
.btn_center.section_app .btn_w_app1:hover{
  background: #00B1BE;
}

@media screen and (max-width: 799px) {

  .payment_scrollfix_sp {
    bottom: 0;
    max-height: 90vh;
    overflow-y: auto;
    width: calc(100% - 30px);
  }

  .summary-box {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    gap: 10px;
  }

  .summary-left {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .count-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .count-box .label {
    font-size: 16px;
    flex-shrink: 0;
  }

  .count-box .count-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
  }

  .count-box .count {
    font-weight: bold;
  }

  .count-box .unit {
    font-size: 16px;
  }

  .summary-right {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    line-height: 1;
  }

  .label {
    font-size: 16px;
    font-weight: 600;
  }

  .price-wrap {
    gap: 4px;
    font-size: 20px;
    font-weight: bold;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .amount {
    font-size: 20px;
  }

  .tax {
    font-size: 16px;
    top: 0px;
    position: relative;
    vertical-align: baseline;
  }

  .details-toggle {
    font-size: 14px;
    padding: 10px;
  }

  .payment_rbox{
    padding: 15px;
  }
  .payment_rbox .payment_rbox_in {
    padding: 5px 0px;
  }
  .payment_rbox .w_pay_tr.plan_detail, .payment_rbox .w_pay_tr.plan_discount{
    display: block;
  }
  .payment_rbox .w_pay_tr.plan_detail .pay_1_2, .payment_rbox .w_pay_tr.plan_discount .pay_1_2{
    margin: 5px 0;
  }
  .payment_rbox .pay_1{
    width: auto;
    float: none;
  }
  
  .breakdown_name {
    width: auto;
  }

}
