/* ### 결제 수단 선택 모달 CSS ### */
:root {
  --light-white: #e6eaee;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  margin: 0;
}
button {
  border: none;
  background: transparent;
}

/* --- layout --- */
/* coupon 모달 열렸을 때 billing modal css */
#coupon-modal-div.show + .custom-payment-modal-wrap {
  z-index: 1050;
}

#billing-modal .modal-dialog-scrollable .modal-content {
  height: 100%;
}
[class *= '-inner']:not([class *= 'slick']).custom-payment-modal-inner {
  height: 100%;
  padding: 0 1rem;
  background: #fff;
  border-radius: 12px;
  z-index: 1;
}

/* --- modal header --- */
.custom-payment-modal-header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.custom-payment-modal-header h4 {
  height: 100%;
}
.custom-payment-modal-header h4 span {
  font-weight: 700;
  font-size: 18px;
}
.custom-payment-modal-header h4 .custom-type-btnTest {
  margin-left: 7px;
}
.custom-payment-modal-header h4 .custom-type-btnTest:hover {
  opacity: 0.8;
}

/* --- modal body --- */
.custom-payment-modal-body {
  /* height: calc(100% - calc(70px + calc(95px + calc(1rem * 2)))); */
  height: calc(100% - calc(70px + calc(calc(91px + 15px) + calc(55px + calc(1rem * 2)))));
  overflow-y: auto;
}
.custom-payment-modal-body.agreement-body1 {
  /* height: calc(100% - calc(70px + calc(calc(22px + 10px) + calc(91px + 15px) + calc(55px + calc(1rem * 2))))); */
  height: calc(100% - calc(70px + calc(calc(22px + 10px) + calc(41px + 15px) + calc(55px + calc(1rem * 2)))));
}
.custom-payment-modal-body.agreement-body2 {
  /* height: calc(100% - calc(70px + calc(calc(22px + 10px) + calc(43px + 10px) + calc(91px + 15px) + calc(55px + calc(1rem * 2))))); */
  height: calc(100% - calc(70px + calc(calc(22px + 10px) + calc(43px + 10px) + calc(30px + 15px) + calc(55px + calc(1rem * 2)))));
}
.custom-payment-modal-body::-webkit-scrollbar {
  background: transparent;
  width: 4px;
  height: 4px
}
.custom-payment-modal-body::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(var(--ct-secondary-rgb), 0.45);
}
.custom-payment-card-item {
  margin: 0 0 12px;
  position: relative;
}
.custom-payment-card-radio {
  display: none;
}
.custom-payment-card-content {
  display: block;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--ct-border-color);
  border-radius: var(--ct-bdrad);
  position: relative;
  cursor: pointer;
}
.custom-payment-card-top {
  display: block;
}
.custom-payment-card-bottom {
  display: block;
  margin: 25px 0 0;
  display: none;
}

/* 결제수단 추가 버튼 */
.custom-payment-card-content.custom-payment-add .custom-payment-card-name .text-muted {
  font-weight: 400;
  font-size: 13px;
}

/* 카드사 / 메인 여부 / 카드 번호 */
.custom-payment-card-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--ct-secondary);
}
.custom-payment-card-badge {
  margin-left: 4px;
  padding: 4px 7px;
  border-radius: var(--ct-bdrad);
  font-weight: 500;
  font-size: 14px;
}
.custom-payment-card-badge.main-card {
  background: var(--point-light);
  color: var(--point);
}
.custom-payment-card-badge.normal-card {
  background: rgba(var(--ct-secondary-rgb), 0.18);
  color: var(--ct-secondary);
}
.custom-payment-card-num {
  display: block;
  margin: 7px 0 0;
  font-weight: 400;
  font-size: 15px;
  color: var(--ct-gray-500);
}

/* 카드 등록일 / 카드 타입 / 카드 소유 타입 */
.custom-payment-card-bottom span {
  display: inline-block;
  font-weight: 400;
  font-size: 14px;
  color: var(--light-white);
  position: relative;
}
.custom-payment-card-bottom span:not(:last-child) {
  margin-right: 18px;
}
.custom-payment-card-bottom span:not(:last-child):before {
  content: '';
  position: absolute;
  width: 1px;
  height: 12px;
  top: 50%;
  transform: translateY(-50%);
  right: -11px;
  background: var(--light-white);
  opacity: 0.55;
}

/* 버튼 */
[class *= "custom-payment-card-action-"] {
  position: absolute;
  right: 10px;
  font-size: 22px;
}
.custom-payment-card-action-del {
  top: 10px;
  color: var(--ct-gray-500);
}
.custom-payment-card-action-add {
  top: 50%;
  transform: translateY(-50%);
  color: var(--point);
}

/* checked */
.custom-payment-card-radio:checked + .custom-payment-card-content {
  background: var(--point);
  border-color: var(--point);
}
.custom-payment-card-radio:checked + .custom-payment-card-content :is(.custom-payment-card-name, .custom-payment-card-badge, .custom-payment-card-num) {
  color: #fff;
}
.custom-payment-card-radio:checked + .custom-payment-card-content .custom-payment-card-badge {
  background: rgba(255,255,255,0.25);
}
.custom-payment-card-radio:checked + .custom-payment-card-content .custom-payment-card-action-del {
  color: rgba(255,255,255,0.45);
}
.custom-payment-card-radio:checked + .custom-payment-card-content .custom-payment-card-bottom {
  display: block;
}

/* 약관 - 라이트, 1년 약정 전용 */
.custom-payment-agree {
  margin: 12px 0 0;
  border: 1px solid var(--ct-border-color);
  border-radius: var(--ct-bdrad);
}
.custom-payment-agree-accordion {
  width: 100%;
  height: 66px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.custom-payment-agree-accordion strong {
  font-size: 16px;
  color: var(--ct-secondary);
}
.custom-payment-agree-accordion i {
  font-size: 22px;
  color: var(--ct-text-muted);
}
.custom-payment-agree-accordion.active i {
  transform: rotateX(180deg);
}
.custom-payment-agree-policy {
  width: calc(100% - calc(20px * 2));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--ct-border-color);
  color: var(--ct-secondary);
  display: none;
}
.custom-payment-agree-policy strong {
  margin: 0 0 4px;
}
.custom-payment-agree-policy ul {
  list-style: circle;
  padding-left: 20px;
}
.custom-payment-agree-policy ul li:not(:last-child) {
  margin: 0 0 2px;
}

/* --- modal footer --- */
.custom-payment-modal-footer {
  padding: 1rem 0;
}
.custom-payment-btn,
.custom-payment-btn:hover,
.custom-payment-btn:focus {
  display: block;
  width: 100%;
  height: 55px;
  line-height: 55px;
  background: var(--point);
  border-radius: var(--ct-bdrad);
  text-align: center;
  font-size: 16px;
  color: #fff;
}
.custom-payment-btn.disabled,
.custom-payment-btn.disabled:hover,
.custom-payment-btn.disabled:focus {
  background: var(--ct-secondary-lighten);
  color: var(--ct-secondary);
  pointer-events: none;
}

/* 할부 - contract 페이지에서만 보이게 설정해뒀습니다 */
.custom-payment-installment {
  margin: 0 0 10px;
  padding: 10px 0 0;
  border-top: 1px solid var(--ct-border-color);
  align-items: center;
  justify-content: space-between;
  display: none;
}
.custom-payment-installment > strong {
  font-weight: 400;
  color: var(--ct-text-muted);
}

/* 약관 동의 */
.custom-payment-agree-checkbox {
  margin: 0 0 10px;
}
.custom-payment-agree-checkbox .form-checkbox-input {
  cursor: pointer;
}

/* 결제 금액 */
.custom-payment-totalCnt {
  margin: 0 0 15px;
  padding: 10px 0 0;
  border-top: 1px solid var(--ct-border-color);
}
.custom-payment-totalCnt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.custom-payment-totalCnt-item:not(:last-child) {
  margin: 0 0 4px;
}
.custom-payment-totalCnt-text {
  color: var(--ct-text-muted);
}
.custom-payment-totalCnt-type {
  margin-right: 2px;
}
.custom-payment-totalCnt-num {
  font-weight: 600;
  letter-spacing: -1px;
}

.custom-payment-totalCnt-total .custom-payment-totalCnt-num {
  font-weight: 800;
  font-size: 20px;
  color: var(--point);
}

/* ### COUPON modal ### */
#coupon-modal-div {
  z-index: 2000;
}
#coupon-modal-div .modal-body > strong {
  margin: 0 0 5px;
}
#couponTxt {
  width: calc(100% - calc(89px + 5px));
}

/* ### Responsive ### */
@media(max-width: 1200px) {
  .custom-payment-modal-inner {
    height: 95vh;
  }
}