/* shop 공용 */
html #shop {
  font-size: var(--shop-fd);
}

#shop {
  --divider-gap: 100px;
  --thumb-ratio: 100%;
}

#shop .mo-container {
  width: 100%;
}

#shop .box-container {
  width: 90%;
  margin: 0 auto;
}

#shop .page-title{
    margin-bottom: 80px;

}

#shop .btn.shop-btn-s,
#shop .input-wrap .btn.shop-btn-s,
#mypage .btn.shop-btn-s {
  --btn-height: 30px;
  --btn-font-size: 12px;
  font-size: 12px !important;
  min-width: 80px;
  background-color: #fff;
  border: 1px solid var(--color-text);
  color: var(--color-text);
}

#shop .pdt-thumb {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

#shop .pdt-thumb::before {
  content: "";
  display: block;
  padding-bottom: var(--thumb-ratio);
}

#shop .pdt-thumb .image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

#shop .no-data {
  text-align: center;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 400;
  padding: 80px 0;
}

/* 제품 구매 리스트 */
.shopPdtList.grid {
  --grid-num: 4;
  --grid-t-num: 3;
  --grid-m-num: 2;
  column-gap: 30px;
  row-gap: 60px;
}

.pdtItem .pdt-thumb .image {
  transition: transform 0.3s ease-in-out;
}

.pdtItem:hover .pdt-thumb .image {
  transform: scale(1.05);
}

.pdtItem .pdt-info {
  margin-top: 15px;
}

.pdtItem .pdt-info .product-title {
  font-size: var(--shop-fdp);
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pdtItem .pdt-info .product-desc {
  font-size: var(--shop-fdm);
  color: var(--color-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 6px;
}

.pdtItem .pdt-info .price-wrap {
  margin-top: 20px;
}

.pdtItem .pdt-info .price {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.pdtItem .pdt-info .price span {
  font-size: var(--shop-fd);
  font-weight: 600;
  line-height: 1;
  margin-left: 2px;
}

.pdtItem .price-wrap {
  column-gap: 6px;
}

.pdtItem .regular-price {
  font-size: var(--shop-fdm);
}

/* 결제창이 우측에 붙는 레이아웃 */
#shop #paymentContainer {
  display: flex;
  justify-content: space-between;
  position: relative;
}

#shop #paymentContainer::before {
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  background-color: #eee;
  position: absolute;
  left: 69.44%;
}

#shop #paymentContainer>div:first-of-type {
  max-width: 63.88%;
  flex: 1;
}

/* 결제 금액 창 */
#shop #totalPayment {
  width: 100%;
  max-width: 25%;
  position: sticky;
  top: 145px;
  height: 100%;
  margin-bottom: 100px;
}

#shop #totalPayment .title {
  margin-bottom: 30px;
}

#shop #totalPayment .price-detail {
  margin-top: 30px;
}

#shop #totalPayment .price-detail li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#shop #totalPayment .price-detail li:not(:first-of-type) {
  margin-top: 15px;
}

#shop #totalPayment .price-detail li .tit {
  color: var(--color-mute);
  display: inline-block;
  min-width: 100px;
}

#shop #totalPayment .total-price {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

#shop #totalPayment .payment-agree {
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

#shop #totalPayment .payment-agree .input:first-child {
  margin-bottom: 20px;
}

#shop #totalPayment .payment-agree .input.small {
  position: relative;
  margin-top: 16px;
}

#shop #totalPayment .payment-agree .input.small p {
  font-size: var(--shop-fdm);
  color: var(--color-mute);
  font-weight: 500;
}

#shop #totalPayment .payment-agree .input.small a {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}

#shop #totalPayment .payment-agree .input.small input[type="checkbox"]+label {
  width: 16px;
  height: 16px;
}

#shop #totalPayment .btn-area {
  margin-top: 40px;
}

#shop #totalPayment .btn-area .button-attach {
  flex-wrap: nowrap;
}

#shop #totalPayment .order-guide {
  margin-top: 20px;
}

#shop #totalPayment .order-guide p {
  color: var(--color-mute);
  font-size: var(--shop-fdm);
}

#shop #totalPayment .select-product {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

#shop #totalPayment .select-product li {
  position: relative;
  background: #fff;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  display: flex;
}

#shop #totalPayment .select-product li+li {
  margin-top: 10px;
}

#shop #totalPayment .select-product .pdt-thumb {
  max-width: 60px;
  margin-right: 10px;
}

#shop #totalPayment .select-product .product-title {
  font-weight: 700;
}

#shop #totalPayment .select-product .subs-option {
  font-size: var(--shop-fdm);
  color: var(--color-mute);
}

#shop #totalPayment .select-product .del-btn {
  display: block;
  font-size: 0;
  width: 15px;
  height: 15px;
  border: none;
  background-color: transparent;
  background-image: url(/plugins/shop/assets/images/icon_del.svg);
  background-repeat: no-repeat;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* 가격 표시 */
#shop .total-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#shop .total-price p {
  font-weight: 700;
}

#shop .price-wrap {
  display: flex;
  align-items: baseline;
  column-gap: 15px;
  flex-wrap: wrap;
}

#shop .sale-rate {
  color: #e51d2e;
  font-weight: 800;
}

#shop .regular-price {
  color: var(--color-mute);
  font-size: var(--shop-fdp);
  font-weight: 700;
  text-decoration: line-through;
}

/* 주문수량 버튼 */
#shop .order-qty {
  width: 90px;
  height: 30px;
  display: flex;
  background-color: #fff;
  border: 1px solid #eee;
}

#shop .order-qty input,
#shop .order-qty .qty-btn {
  width: calc(100% / 3);
  background: transparent;
  border: none;
}

#shop .order-qty .qty-btn.minus {
  background-image: url(/plugins/shop/assets/images/icon_minus.svg);
}

#shop .order-qty .qty-btn.plus {
  background-image: url(/plugins/shop/assets/images/icon_plus.svg);
}

#shop .order-qty input {
  padding: 0;
  text-align: center;
  height: inherit;
  font-size: 14px;
  font-weight: 700;
}

#shop .order-qty input[type="number"]::-webkit-outer-spin-button,
#shop .order-qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

#shop .order-qty input[type="number"] {
  -moz-appearance: textfield;
}

#shop .order-qty .qty-btn {
  cursor: pointer;
  font-size: 0;
  background-size: 7px 7px;
  background-position: center;
  background-repeat: no-repeat;
}

/* 주문정보에 관한 전체리스트 */
#orderInfo .order-sec {
  width: 100%;
}

#orderInfo .order-sec~.order-sec {
  margin-top: 80px;
}

#orderInfo .order-sec .sec-title {
  width: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-text);
}

#orderInfo .order-sec .sec-title h4 {
  font-size: 24px;
}

#orderInfo .order-sec .sec-title~.form-horiz,
#orderInfo .order-sec .sec-title~#orderProductList {
  border-top: none;
}

#orderInfo .order-sec .sec-title~#orderProductList {
  margin-top: 0;
}

#orderInfo .form-horiz .form-group {
  padding: 20px;
}

#orderInfo input[type="radio"]~label p,
#orderInfo input[type="checkbox"]~label p {
  font-size: 15px;
}

#orderInfo .input .default-shipping {
  margin-top: 15px;
}

#orderInfo .input .mypoint {
  color: var(--color-mute);
  margin-top: 8px;
  font-size: 15px;
}

#orderInfo .input .mypoint span {
  color: var(--color-primary);
  font-weight: 800;
}

#orderInfo .first-delive .flatpickr-input[readonly] {
  max-width: 260px;
}

#orderInfo .guide-box {
  background-color: #fafafa;
  padding: 30px;
  margin-top: 20px;
  border-radius: 5px;
}

#orderInfo .guide-box h5 {
  font-size: var(--shop-fd);
  font-weight: 700;
  margin-bottom: 15px;
  display: inline-flex;
}

#orderInfo .guide-box h5::before {
  content: "\e88e";
  font-size: inherit;
  font-family: "Material Symbols Rounded";
  line-height: inherit;
  display: inline-block;
  margin-right: 3px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}

#orderInfo .guide-box ul li {
  font-size: var(--shop-fdm);
  color: var(--color-mute);
  margin-bottom: 5px;
  position: relative;
  padding-left: 15px;
}

#orderInfo .guide-box ul li::before {
  content: "-";
  position: absolute;
  left: 0;
}

#orderInfo .first-delive .select-date {
  color: var(--color-mute);
  margin-top: 8px;
  font-size: 15px;
}

#orderInfo .first-delive .select-date span {
  color: var(--color-primary);
  font-weight: 800;
}

#orderInfo #mycardWrap .card {
  border: 2px solid #f4f7fd;
  cursor: pointer;
  transition: all 0.3s;
}

#orderInfo #mycardWrap .card.selected {
  border: 2px solid var(--color-primary);
}

#orderInfo #mycardWrap .credit-card .default-card {
  font-size: 12px;

}

#orderInfo #mycardWrap .credit-card .card-number {
  font-size: 12px;
}

/* orderInfo end */

/* 주문상품 리스트 */
#orderProductList {
  border-top: 1px solid var(--color-text);
}

#orderProductList>li {
  display: flex;
  align-items: center;
  padding: 30px 20px;
  border-bottom: 1px solid #eee;
}

#orderProductList .pdt-check {
  margin-right: 30px;
}

#orderProductList .pdt-info-wrap {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  padding-right: 5.5%;
}

#orderProductList .pdt-thumb {
  width: 34%;
  max-width: 150px;
  min-width: 100px;
}

#orderProductList .pdt-info {
  padding-left: 30px;
  flex: 1 1 0;
}

#orderProductList .pdt-info .product-title {
  font-size: var(--shop-fdp);
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#orderProductList .pdt-info .option-name {
  font-size: var(--shop-fdm);
  color: var(--color-mute);
  margin-top: 5px;
}

#orderProductList .pdt-info .state {
  font-size: 13px;
  margin-top: 5px;
  font-weight: 600;
}

#orderProductList .qtynprcie-wrap {
  display: flex;
  align-items: center;
}

#orderProductList .qtyncycle+.price {
  margin-left: 80px;
}

#orderProductList .delive-cycle {
  --input-height: 30px;
  margin-top: 8px;
}

#orderProductList .delive-cycle .dropdown .dropdown-select-button {
  width: 90px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 0;
  padding: 0 15px;
}

#orderProductList .delive-cycle .dropdown .dropdown-select-button span {
  white-space: nowrap;
}

#orderProductList .delive-cycle .dropdown .dropdown-content li {
  height: 40px;
  padding: 0 15px;
}

#orderProductList .price p span {
  font-size: 20px;
  font-weight: 800;
}

#orderProductList .qtynprcie-wrap~.state {
  display: none;
  margin-left: 80px;
  font-weight: 600;
}

#orderProductList .delete {
  margin-left: 6.5%;
}

#orderProductList .delete .del-btn {
  display: block;
  font-size: 0;
  width: 20px;
  height: 20px;
  border: none;
  background-color: transparent;
  background-image: url(/plugins/shop/assets/images/icon_del.svg);
  background-repeat: no-repeat;
}

.default-shipping-label {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  width: 65px;
  height: 22px;
  line-height: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.default-shipping-check {
  margin-top: 15px;
}

.direct-input {
  display: none;
}

.direct-input.show {
  display: block;
}

/* Desktop ( 1024px ~)*/
@media all and (min-width: 1024px) {
  #shop .mo-container {
    width: 90%;
  }

  #shop .box-container {
    width: 100%;
  }

  #orderProductList .pdt-info .state {
    display: none;
  }

  #orderProductList .qtynprcie-wrap~.state {
    display: block;
  }
}

/* Laptop ( 1024px ~ 1440px)*/
@media all and (min-width: 1024px) and (max-width: 1440px) {
  #shop .mo-container {
    width: 100%;
  }

  #shop .box-container {
    width: 90%;
  }

  #shop .mo-container .page-title {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  /* 제품 구매 리스트 */
  .shopPdtList.grid {
    --grid-num: 3;
  }

  #orderProductList .pdt-info .state {
    display: block;
  }

  #orderProductList .qtynprcie-wrap~.state {
    display: none;
  }
}

/* Tablet ( 768px ~ 1023px)*/
@media all and (min-width: 768px) and (max-width: 1440px) {
  #shop .divider.container {
    margin-bottom: 120px;
  }

  #shop .price-wrap {
    column-gap: 10px;
  }

  #shop .price-wrap h3 {
    font-size: 20px;
  }

  #shop .mo-btn-area {
    display: flex;
    align-items: center;
    position: fixed;
    column-gap: 5px;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px;
    border-top: 1px solid #eee;
  }

  #shop .mo-btn-area .btn {
    width: auto;
    flex: 1;
  }

  #shop .regular-price {
    font-size: 15px;
  }

  /* 결제창이 우측에 붙는 레이아웃 */
  #shop #paymentContainer {
    flex-direction: column;
  }

  #shop #paymentContainer::before {
    display: none;
  }

  #shop #paymentContainer>div:first-of-type {
    max-width: 100%;
  }

  /* 결제 금액 창 */
  #shop #totalPayment {
    max-width: 100%;
    position: static;
    margin-bottom: 0;
  }

  #shop #totalPayment .title {
    margin: 30px 0 20px;
    font-size: 22px;
  }

  #shop #totalPayment .price-detail {
    margin-top: 20px;
  }

  #shop #totalPayment .price-detail li:not(:first-of-type) {
    margin-top: 12px;
  }

  #shop #totalPayment .total-price {
    margin-top: 20px;
  }

  #shop #totalPayment .payment-agree {
    padding-top: 20px;
  }

  #shop #totalPayment .btn-area {
    margin-top: 0;
  }

  #shop #totalPayment .order-guide {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }

  #shop #totalPayment .select-product {
    display: none;
  }

  /* 주문정보에 관한 전체리스트 */
  #orderInfo .order-sec {
    border-bottom: 8px solid #f5f5f5;
    padding-bottom: 50px;
  }

  #orderInfo .order-sec~.order-sec {
    margin-top: 50px;
  }

  #orderInfo .order-sec .sec-title {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 20px;
  }

  #orderInfo .order-sec .sec-title h4 {
    font-size: 22px;
  }

  #orderInfo .form-horiz .form-group {
    padding: 12px 0;
  }

  #orderInfo .form-horiz .form-group:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  #orderInfo input[type="radio"]~label p,
  #orderInfo input[type="checkbox"]~label p {
    font-size: 14px;
  }

  #orderInfo .input .default-shipping {
    margin-top: 10px;
  }

  #orderInfo .input .mypoint {
    font-size: 14px;
  }

  #orderInfo .guide-box {
    padding: 25px;
  }

  #orderInfo .guide-box h5 {
    margin-bottom: 12px;
  }

  #orderInfo .guide-box ul li {
    margin-bottom: 3px;
    padding-left: 12px;
  }

  #orderInfo .first-delive .select-date {
    font-size: 14px;
  }

  #orderInfo #orderProductList>li:first-child {
    padding-top: 0;
  }

  #orderInfo #orderProductList>li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  /* orderInfo end */

  /* 주문상품 리스트 */

  #orderProductList>li {
    padding: 25px 0;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 15px;
  }

  #orderProductList .pdt-check {
    margin-right: 0;
  }

  #orderProductList .pdt-info-wrap {
    padding: 0;
  }

  #orderProductList .pdt-thumb {
    min-width: 150px;
    max-width: 150px;
  }

  #orderProductList .pdt-info .state {
    font-size: 15px;
  }

  #orderProductList .qtynprcie-wrap {
    width: 100%;
    justify-content: space-between;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 5px;
  }

  #orderProductList .qtyncycle {
    display: flex;
    column-gap: 8px;
  }

  #orderProductList .qtyncycle+.price {
    margin-left: 0;
  }

  #orderProductList .delive-cycle {
    margin: 0;
  }

  #orderProductList .delete {
    margin-left: 0;
    position: absolute;
    right: 0;
  }
}

/* Moble ( ~ 767px)*/
@media all and (max-width: 767px) {
  #shop {
    --divider-gap: 50px;
  }

  #shop .divider.container {
    margin-bottom: 120px;
  }

  #shop .no-data {
    font-size: 13px;
  }

  #shop .price-wrap {
    column-gap: 8px;
  }

  #shop .mo-btn-area {
    display: flex;
    align-items: center;
    position: fixed;
    column-gap: 5px;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px;
    border-top: 1px solid #eee;
  }

  #shop .mo-btn-area .btn {
    width: auto;
    flex: 1;
  }

  /* 제품 구매 리스트 */
  .shopPdtList.grid {
    column-gap: 15px;
    row-gap: 30px;
  }

  .pdtItem .regular-price {
    width: 100%;
  }

  .pdtItem .pdt-info .product-desc {
    margin-top: 0;
  }

  .pdtItem .pdt-info .price-wrap {
    margin-top: 10px;
  }

  .pdtItem .pdt-info .price {
    font-size: 17px;
  }

  .pdtItem .sale-rate {
    font-size: 12px;
  }

  /* 결제창이 우측에 붙는 레이아웃 */
  #shop #paymentContainer {
    flex-direction: column;
  }

  #shop #paymentContainer::before {
    display: none;
  }

  #shop #paymentContainer>div:first-of-type {
    max-width: 100%;
  }

  /* 결제 금액 창 */
  #shop #totalPayment {
    max-width: 100%;
    position: static;
    margin-bottom: 0;
  }

  #shop #totalPayment .title {
    margin: 30px 0 20px;
    font-size: 17px;
  }

  #shop #totalPayment .price-detail {
    margin-top: 20px;
  }

  #shop #totalPayment .price-detail li:not(:first-of-type) {
    margin-top: 10px;
  }

  #shop #totalPayment .price-detail li .tit {
    min-width: 70px;
  }

  #shop #totalPayment .total-price {
    margin-top: 20px;
  }

  #shop #totalPayment .payment-agree {
    padding-top: 20px;
  }

  #shop #totalPayment .payment-agree .input:first-child {
    margin-bottom: 15px;
  }

  #shop #totalPayment .payment-agree .input.small {
    margin-top: 10px;
  }

  #shop #totalPayment .payment-agree .input.small a {
    font-size: 11px;
  }

  #shop #totalPayment .btn-area {
    margin-top: 0;
  }

  #shop #totalPayment .order-guide {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }

  #shop #totalPayment .select-product {
    display: none;
  }

  /* 주문수량 버튼 */
  #shop .order-qty {
    width: 75px;
  }

  /* 주문정보에 관한 전체리스트 */
  #orderInfo .order-sec {
    border-bottom: 8px solid #f5f5f5;
    padding-bottom: 30px;
  }

  #orderInfo .order-sec~.order-sec {
    margin-top: 30px;
  }

  #orderInfo .order-sec .sec-title {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 20px;
  }

  #orderInfo .order-sec .sec-title h4 {
    font-size: 17px;
  }

  #orderInfo .form-horiz .form-group {
    padding: 0;
  }

  #orderInfo input[type="radio"]~label p,
  #orderInfo input[type="checkbox"]~label p {
    font-size: 13px;
  }

  #orderInfo .input .default-shipping {
    margin-top: 10px;
  }

  #orderInfo .input .mypoint {
    font-size: 13px;
  }

  #orderInfo .first-delive .flatpickr-input[readonly] {
    max-width: 100%;
  }

  #orderInfo .guide-box {
    padding: 20px;
    margin-top: 15px;
  }

  #orderInfo .guide-box h5 {
    margin-bottom: 10px;
  }

  #orderInfo .guide-box ul li {
    margin-bottom: 3px;
    padding-left: 12px;
  }

  #orderInfo .first-delive .select-date {
    font-size: 13px;
  }

  #orderInfo #orderProductList>li:first-child {
    padding-top: 0;
  }

  #orderInfo #orderProductList>li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  /* orderInfo end */

  /* 주문상품 리스트 */

  #orderProductList>li {
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 10px;
  }

  #orderProductList .pdt-check {
    margin-right: 0;
  }

  #orderProductList .pdt-info-wrap {
    padding: 0;
  }

  #orderProductList .pdt-thumb {
    max-width: 100px;
  }

  #orderProductList .pdt-info {
    padding-left: 15px;
  }

  #orderProductList .qtynprcie-wrap {
    width: 100%;
    justify-content: space-between;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 5px;
  }

  #orderProductList .qtyncycle {
    display: flex;
    column-gap: 6px;
  }

  #orderProductList .qtyncycle+.price {
    margin-left: 0;
  }

  #orderProductList .delive-cycle {
    margin: 0;
  }

  #orderProductList .delive-cycle .dropdown .dropdown-select-button {
    width: 75px;
  }

  #orderProductList .price p span {
    font-size: 17px;
  }

  #orderProductList .delete {
    margin-left: 0;
    position: absolute;
    right: 0;
  }

  #orderProductList .delete .del-btn {
    width: 18px;
    height: 18px;
  }

  .default-shipping-label {
    font-size: 10px;
    width: 55px;
    height: 20px;
  }
}