@charset "UTF-8";
/*  장바구니 페이지 스타일 파일입니다. */
.cart .hidden {
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
}
.cart em {
  font-style: unset;
}
.cart button {
  cursor: pointer;
}
.cart .price {
  display: inline-flex;
  justify-content: center;
  align-items: baseline;
  flex-direction: row;
  line-height: 18px;
  font-size: 14px;
}
.cart .price em {
  font-weight: 700;
  font-family: "Montserrat";
}
.cart .origin-price s {
  font-family: "Montserrat";
}
.cart .price-tag {
  margin-block: 20px;
  padding: 20px;
  background-color: var(--gray100);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray500);
}
.cart .price-tag__details {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
}
.cart .price-tag__details dt,
.cart .price-tag__details dd {
  line-height: 18px;
  padding-block-end: 12px;
}
.cart .price-tag__details dd {
  text-align: end;
}
.cart .price-tag .ico-formula {
  display: inline-block;
  margin-inline-end: 12px;
}
.cart .price-tag .ico-formula--plus {
  background-size: 364px 335px;
  background-position: -214px -204px;
  width: 20.5px;
  height: 20px;
}
.cart .price-tag .ico-formula--minus {
  background-size: 364px 335px;
  background-position: -182px -256px;
  width: 20.5px;
  height: 20.5px;
}
.cart .price-tag .ico-formula--equal {
  background-size: 364px 335px;
  background-position: -340px -104px;
  width: 20.5px;
  height: 20px;
}
.cart .price-tag .price {
  text-align: end;
  align-items: center;
  font-size: 12px;
}
.cart .price-tag .price em {
  font-size: 16px;
  color: var(--color-base-black);
}
.cart .price-tag .total-price {
  color: var(--color-base-black);
}
.cart .price-tag .benefit {
  display: block;
  text-align: end;
  font-family: "Montserrat";
}
.cart .price-tag .benefit em {
  font-family: "Montserrat";
}
.cart__group-checkbox {
  width: 100%;
  padding-block: 12px;
  border-bottom: 2px solid var(--gray200);
  font-weight: 500;
}
.cart__shipping-fee {
  display: inline-block;
  padding: 10px;
  margin-block-start: 20px;
  background-color: var(--gray100);
  width: 100%;
  text-align: center;
}
.cart__order-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  width: 100%;
  height: auto;
  position: fixed;
  left: 0;
  bottom: 0;
  background-color: var(--color-base-white);
  padding: 14px 20px;
  border-top: 1px solid var(--gray300);
  z-index: 20;
  gap: 12px;
}
/* 하단 고정 주문바가 결제금액 요약을 가리지 않도록 본문 하단 여백 확보(바 높이 + 최소 버퍼).
   safe-area-inset은 쓰지 않는다: 뷰포트 메타에 viewport-fit=cover가 없어 일반 브라우저에선 항상 0이고,
   네이티브 앱 WebView(자체 하단 탭바가 하단 인셋을 이미 차지)에선 inset을 더하면 여백이 이중 계산돼 과다 여백이 생김. */
.body-cart .cart.l-content {
  padding-bottom: 92px;
}
.cart__order-wrap button {
  flex: 1;
  max-width: 230px;
}
.cart__order {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: row;
  flex-direction: column;
}
.cart__order .price {
  font-size: 12px;
}
.cart__order .price em {
  font-size: 16px;
}
.cart__option-loading-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-base-black);
  opacity: 0.3;
  user-select: none;
}
.cart__option-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cart-product {
  padding-block: 20px;
  border-bottom: 1px solid var(--gray200);
}
.cart-product__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 12px;
}
.cart-product__top-content {
  display: inline-block;
  width: 100%;
  min-width: 0;
}
.cart-product__info-wrap {
  display: inline-flex;
  justify-content: none;
  align-items: center;
  flex-direction: row;
  width: 100%;
  min-width: 0;
  gap: 8px;
  margin-block-end: 12px;
}
.cart-product__info {
  display: inline-flex;
  justify-content: center;
  align-items: none;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.cart-product__info .price {
  padding-block-start: 6px;
  display: inline-block;
}
.cart-product__media {
  flex: none;
  width: 90px;
  height: 90px;
}
.cart-product__media img {
  display: inline-block;
  border: 1px solid var(--gray200);
  height: 100%;
}
.cart-product__media span {
  display: inline-block;
}
.cart-product .brand-name {
  font-size: 12px;
  font-weight: 400;
  color: var(--gary600);
}
.cart-product .product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-base-black);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.cart-product .origin-price {
  padding-inline-start: 4px;
  font-size: 12px;
  color: var(--gray500);
}
.cart-product .origin-price s {
  font-family: "Montserrat";
}
.cart-product__count-wrap {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  width: 100%;
}
.cart-product__count-wrap button {
  padding-block: 9px;
}

.cart-option {
  display: flex;
  justify-content: center;
  align-items: unset;
  flex-direction: column;
  gap: 8px;
}
.cart-option .btn {
  width: 80px;
  margin-inline-start: auto;
}
.cart-option__label {
  display: inline-block;
  padding-block: 10px 4px;
  font-size: 14px;
  font-weight: 500;
}

/* 무료배송 진행바 (추가) — 헤더/목록에 붙는 전폭 연결형 띠 */
.gb-freeship {
  margin: 0;
  padding: 12px 16px 13px;
  background: #f4f8ff;
  border-bottom: 1px solid #e7eefc;
}
.gb-freeship__msg {
  margin: 0 0 8px;
  font-size: 13px;
  color: #555;
  line-height: 1.35;
}
.gb-freeship__msg::before {
  content: "";
  display: inline-block;
  vertical-align: -2px;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23207eff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h15v13H1z'/%3E%3Cpath d='M16 8h4l3 3v5h-7z'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.gb-freeship__msg strong {
  color: #207eff;
  font-weight: 700;
}
.gb-freeship__track {
  height: 6px;
  background: #e3e9f5;
  border-radius: 999px;
  overflow: hidden;
}
.gb-freeship__fill {
  display: block;
  height: 100%;
  width: 0;
  background: #207eff;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.gb-freeship.is-done {
  background: #eef4ff;
}
.gb-freeship.is-done .gb-freeship__fill {
  background: #207eff;
}
.gb-freeship.is-done .gb-freeship__msg strong {
  color: #207eff;
}

/* 배송그룹이 2개 이상일 때: 그룹 헤더 아래 축소 바 (상단 바와 같은 디자인, 높이 약 70%) */
.gb-freeship--mini {
  margin: 8px 0 2px;
  padding: 7px 12px 8px;
  border: 1px solid #e7eefc;
  border-radius: 8px;
}
.gb-freeship--mini .gb-freeship__msg {
  margin-bottom: 4px;
  font-size: 11px;
}
.gb-freeship--mini .gb-freeship__msg::before {
  width: 13px;
  height: 13px;
  margin-right: 5px;
}
.gb-freeship--mini .gb-freeship__track {
  height: 4px;
}

/* 장바구니 옵션: 읽기전용 → "색상 : 빨강" 형태로 이름 밑에 한 줄 표기 */
.cart-product__multi-option,
.cart-product__text-option {
  display: block;
  margin-block-start: 4px;
  max-width: 100%;
  min-width: 0;
}
.cart-product__multi-option.cart-option,
.cart-product__text-option .cart-option {
  display: block;
  gap: 0;
  max-width: 100%;
  min-width: 0;
}
.cart-product__multi-option .cart-option__label,
.cart-product__text-option .cart-option__label {
  display: inline;
  padding-block: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  vertical-align: baseline;
  color: var(--gray600);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.cart-product__multi-option .cart-option__label::after,
.cart-product__text-option .cart-option__label::after {
  content: ":";
  white-space: pre;
}
.cart-product__multi-option .select {
  display: inline-flex;
  align-items: baseline;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4;
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  vertical-align: baseline;
}
.cart-product__multi-option .select::before,
.cart-product__multi-option .select::after {
  display: none !important;
  content: none !important;
}
.cart-product__multi-option .select select[disabled],
.cart-product__multi-option .select select[shopby-disabled] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: auto;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4;
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  color: var(--gray600);
  font-family: inherit;
  font-weight: 400;
  font-size: 13px;
  opacity: 1;
  pointer-events: none;
  text-overflow: ellipsis;
}
.cart-product__text-option .input-field {
  display: inline-flex;
  align-items: baseline;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4;
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  vertical-align: baseline;
}
.cart-product__text-option .input-field input[disabled] {
  width: auto;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4;
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  color: var(--gray600);
  font-family: inherit;
  font-weight: 400;
  font-size: 13px;
  opacity: 1;
  pointer-events: none;
  text-overflow: ellipsis;
}