@charset "utf-8";

/* select-sheet.css
 *
 * 공통 overlay 레이아웃(.c-sheet/.c-picker)은 /css/style.css에 있습니다.
 */

:root{
  --ss-radius: 20px;
}

.c-sheet.c-selectsheet{
  border-top: 1px solid var(--line);
  font-weight: normal;
  background: #fff;
  display: flex;
  flex-direction: column;
}
    
.c-selectsheet__head{
  padding: 28px 25px 0;
  border-bottom: 0px;
  height: 62px;
  flex-shrink: 0;  /* 쪼그라들지 않게 */
}
.c-selectsheet__pname{
  font-size: 14px;
  font-weight: 500;
  color:#111;
  line-height: 1.3;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-selectsheet__prices{
  text-align:right;
  white-space: nowrap;
}
.c-selectsheet__price{
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-price);
}
.c-selectsheet__norm{
  font-size: 12px;
  color: #999;
  padding: 2px;
  text-decoration: line-through;
}
  
.c-selectsheet__body{
  padding: 5px var(--space-3) 40px;
  flex: 1;  /* head 이외에 나머지를 꽉 채움 */
  overflow-y: auto;
}
  
/* Option row */
.c-selectoptrow{
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  background:#fff;
  margin-top: 10px;
  gap: 10px;
}
.c-selectoptrow.is-placeholder{
  border-color: rgba(0,0,0,0.20);
}
.c-selectoptrow__txt{
  font-size: 14px;
  font-weight: 500;
  color:#222;
  padding: 0 5px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.c-selectoptrow.is-placeholder .c-selectoptrow__txt{
  color:#555;
}
.c-selectoptrow .material-symbols-outlined{
  font-size: 20px;
  color:#666;
}
  
.c-selectsheet__pickedwrap{
  margin-top: 20px;
  border: 1px solid rgba(0,0,0,0.20);
  border-radius: 10px;
}
.c-selectsheet__pickedlist{
  color: #222;
}
.c-selectsheet__pickedempty{
  color:#555;
  font-size: 14px;
  font-weight: 400;
  padding: 18px;
}

/* Picked line (옵션 조합) */
.c-selectpicked{
  padding: 12px 16px 20px;
  border-bottom: 1px solid var(--line);
}
.c-selectpicked:last-child{ border-bottom: 0; }

/* Add-to-list animation (옵션 선택 후 목록 추가) */
@keyframes pdpItemEnter {
  from { opacity: 0; transform: translateY(110px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pdpItemFlash {
  0%   { background: rgba(255, 107, 107, .16); }
  100% { background: transparent; }
}
.c-selectpicked.is-enter{
  animation:
  pdpItemEnter .99s cubic-bezier(.2,.9,.2,1),
  pdpItemFlash .69s ease;
}
@media (prefers-reduced-motion: reduce) {
  .c-selectpicked.is-enter { animation: none; }
}
  
.c-selectpicked__top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-top: 5px;
}
.c-selectpicked__desc{
  font-size: 13px;
  font-weight: 500;
  color:#222;
  line-height: 1.35;
}
.c-selectpicked__rm{
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  display:grid;
  place-items:center;
}
.c-selectpicked__rm .material-symbols-outlined{
  font-size: 18px;
  color:#444;
}
.c-selectpicked__bottom{
  margin-top: 8px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
  
/* Stepper */
.c-selectstepper{
  display:flex;
  align-items:center;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  overflow:hidden;
  background:#fff;
}
.c-selectstepper button{
  width: 36px;
  height: 32px;
  border:0;
  font-weight: 600;
}
.c-selectstepper input{
  width: 50px;
  height: 32px;
  border:0;
  outline:none;
  text-align:center;
  font-size: 16px;
  font-weight: 600;
  color:#333;
  background:#f2f2f2;
  -moz-appearance: textfield;
  appearance: textfield; /* 표준 속성 추가 */
}
.c-selectstepper input::-webkit-outer-spin-button,
.c-selectstepper input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.c-selectpicked__price{
  font-weight: 500;
  font-size: 16px;
  color:#111;
  padding-right: 2px;
}
.c-selectsheet__total{
  margin-top: 20px;
  display:flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
}
.c-selectsheet__total-label{
  font-weight: 500;
  color:#111;
}
.c-selectsheet__total-val{
  font-weight: 600;
  font-size: 23px;
  color: var(--accent-price);
  padding-right: 5px;
}

/* Footer: c-selectbtn 포함 in style.css */
.c-selectsheet__foot{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--bottomnav-h);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  display:grid;
  grid-template-columns: 1fr 1fr 4fr;
}


/* -------------------------------------------------
   Select Picker (override)
------------------------------------------------- */
.c-picker.c-selectpicker{
  top: 25vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
}

.c-selectpicker__head{
  padding: var(--space-3);
  border: 0;
  flex-shrink: 0;
}
.c-selectpicker__title{
  padding-left: 16px;
  font-size: 18px;
  font-weight: 700;
  color:#111;
}
.c-selectpicker__close{
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  display:grid;
  place-items:center;
}
.c-selectpicker__close .material-symbols-outlined{ font-size: 22px; color:#333; }
  
.c-selectpicker__body{
  padding: 2px var(--space-3);
  max-height: calc(80vh - 64px);
  flex: 1;
  overflow:auto;
}
.c-selectpicker__item{
  width: 100%;
  text-align:left;
  border: 1px solid var(--line);
  background:#fff;
  border-radius: 12px;
  padding: 10px 15px;
  margin-bottom: 10px;
  display:block;
}
.c-selectpicker__item.is-active{
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.02);
}
.c-selectpicker__item small{
  display:block;
  margin-top: 3px;
  color:#888;
  font-size: 12px;
  font-weight: 500;
}
.c-selectpicker__txt{
  font-size: 16px;
  font-weight: 700;
  color:#111;
}
.c-selectpicker__plus{
  float:right;
  padding-top:2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}
  
  

/* -------------------------------------------------
   SelectSheet Extras: 인쇄비 + 수량별 할인
------------------------------------------------- */
.c-selectsheet__extras{
  margin-top: 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafafa;
}

.c-ssprint{ }
.c-selectsheet__extras.has-print.has-dc .c-ssprint{
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
}

.c-sscheck{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color:#111;
}
.c-sscheck__left{
  display:flex;
  align-items:center;
  gap: 5px;
  min-width: 0;
}
.c-sscheck__input{ width: 18px; height: 18px; }
.c-sscheck__txt{ line-height: 1.2; }
.c-sscheck__amt{
  font-weight: 800;
  color:#111;
  white-space: nowrap;
}
.c-sscheck.is-off .c-sscheck__amt{
  color:#aaa;
  font-weight: 600;
}

.c-selectsheet__help{
  margin-top: 8px;
  font-size: 12px;
  color:#555;
  line-height: 1.4;
}
.c-selectsheet__help nobr{ white-space: nowrap; }

.c-ssdetails{
  margin-top: 0;
}
.c-ssdetails__sum{
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color:#111;
}
.c-ssdetails__sum::-webkit-details-marker{ display:none; }
.c-ssdetails__label{
  display:inline-flex;
  align-items:center;
  gap: 5px;
  min-width: 0;
}
.c-ssdetails__info{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.20);
  color:#666;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}
.c-ssdetails__info::before{ content: 'i'; }

.c-ssdetails__hint{
  font-size: 12px;
  font-weight: 600;
  color:#666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 60%;
  text-align: right;
}

.c-ssdc{
  margin-top: 10px;
  display:flex;
  gap: 9px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  padding-right: 10px;  /* 오른쪽 여백 더줌 더 이상 없음 표시 */
}
.c-ssdc::-webkit-scrollbar{ height: 0; }

.c-ssdc__card{
  min-width: 100px;
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 9px 9px 9px 12px;
  background:#fff;
  text-align:left;
}
.c-ssdc__card.is-active{
  border-color: var(--accent);
}
.c-ssdc__qty{
  font-size: 12px;
  font-weight: 600;
  color:#444;
}
.c-ssdc__price{
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-price);
}

.c-ssbreak{
  margin-top: 10px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.c-ssbreak__row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  font-size: 13px;
  color:#111;
}
.c-ssbreak__row strong{ font-weight: 800; }
.c-ssbreak__row.is-minus strong{ color: var(--accent-price); }
