﻿/* =========================================================
   item.orderform.css
   상품상세 커스텀 주문옵션 (product__orderform)
   - 셀렉트 / 라디오 / 체크 / 직접입력 / 2뎁스(subpick) / 요약
   - 로드: skin/shop/basic/item.form.skin.php
   ========================================================= */

/* ========== 커스텀 주문옵션 껍데기 (사용자_주문화면.html) ========== */
.product__detail__options--custom{
    display:block;
    padding-top:8px;
    border-top:1px solid #191919;
    color:#1f2328;
    font-family:"Pretendard","Malgun Gothic",sans-serif;
    font-size:15px;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
}
.product__detail__options--custom .product__orderform__card,
.product__detail__options--custom .product__orderform__checkrow,
.product__detail__options--custom .product__orderform__qrow,
.product__detail__options--custom .product__orderform__numbtn,
.product__detail__options--custom .product__orderform__select,
.product__detail__options--custom .product__orderform__select__option{
    cursor:pointer;
}
.product__detail__options--custom .product__orderform__card:hover{border-color:#cfd3d8}
.product__detail__options--custom .product__orderform__checkrow:hover{border-color:#cfd3d8}
.product__detail__options--custom .product__orderform__qrow:hover{background:#fafbff}
.product__detail__options--custom .product__orderform__numbtn:hover{border-color:#cfd3d8}
.product__orderform__lead{
    color:#6b7280;
    font-size:13.5px;
    margin:0 0 10px;
}
.product__orderform__lead b{color:#1f2328;font-weight:600}
.product__orderform__title{
    font-size:21px;
    font-weight:800;
    letter-spacing:-.02em;
    margin:28px 0 14px;
    color:#1f2328;
}
.product__orderform__req{color:#0EAC9E;font-size:15px;margin-left:2px}
.product__orderform__desc{color:#6b7280;font-size:13px;margin:-8px 0 14px}

.product__orderform__cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}
.product__orderform__cards--2{grid-template-columns:repeat(2,1fr)}
.product__orderform__card{
    border:1.5px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
    position:relative;
}
.product__orderform__card.on{
    border-color:#0EAC9E;
    box-shadow:0 0 0 3px #e6f7f5;
}
.product__orderform__thumb{
    height:118px;
    background:#eef1f4;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}
.product__orderform__thumb__img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}
.product__orderform__cbody{padding:12px 14px 15px}
.product__orderform__cname{font-weight:700;font-size:15px}
.product__orderform__csub{color:#6b7280;font-size:12.5px;margin-top:3px}
.product__orderform__cadd{color:#0c968a;font-size:12px;font-weight:700;margin-top:5px}
.product__orderform__card--mini .product__orderform__cbody{
    display:flex;
    flex-direction:column;
    justify-content:center;
    flex:1;
    padding:16px;
}
.product__orderform__card--mini{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.product__orderform__ic{width:34px;height:34px;flex:none;color:#5a6472;margin-right:14px}
.product__orderform__thumb .product__orderform__ic{
    width:48px;
    height:48px;
    margin:0;
    color:#5a6472;
}

.product__orderform__minicard{
    width:78%;
    height:74%;
    background:#fff;
    border-radius:5px;
    box-shadow:0 1px 4px rgba(0,0,0,.12);
    padding:12px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    box-sizing:border-box;
}
.product__orderform__minicard__top{
    font-family:Georgia,serif;
    font-size:11px;
    font-weight:700;
}
.product__orderform__minicard__top div{
    font-size:7px;
    color:#888;
    font-weight:400;
}
.product__orderform__minicard__bot{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
}
.product__orderform__minicard__bot span{font-size:8px;color:#555;line-height:1.2}
.product__orderform__minicard__bot i{
    width:9px;height:9px;border-radius:50%;
}
.product__orderform__minicard[data-dot="#3b82f6"] .product__orderform__minicard__bot i{background:#3b82f6}
.product__orderform__minicard[data-dot="#111"] .product__orderform__minicard__bot i{background:#111}
.product__orderform__minicard[data-dot="#f59e0b"] .product__orderform__minicard__bot i{background:#f59e0b}

.product__orderform__selbox{position:relative;z-index:1}
.product__orderform__selbox.is-open{z-index:2}
.product__orderform__select{
    appearance:none;
    -webkit-appearance:none;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    height:50px;
    border:1.5px solid #e5e7eb;
    border-radius:10px;
    background:#fff;
    font-size:15px;
    font-weight:600;
    padding:0 14px;
    font-family:inherit;
    color:#1f2328;
    box-sizing:border-box;
    text-align:left;
    cursor:pointer;
}
.product__orderform__select__text{flex:1;min-width:0}
.product__orderform__select__arrow{
    flex:none;
    width:16px;
    height:16px;
    color:#191919;
    pointer-events:none;
    transition:transform .15s ease;
}
.product__orderform__selbox.is-open .product__orderform__select__arrow{
    transform:rotate(180deg);
}
.product__orderform__selbox.is-open .product__orderform__select,
.product__orderform__select:focus{
    outline:none;
    border-color:#0EAC9E;
    box-shadow:0 0 0 3px #e6f7f5;
}
.product__orderform__select__list{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 6px);
    z-index:31;
    margin:0;
    padding:6px;
    list-style:none;
    border:1.5px solid #0EAC9E;
    border-radius:10px;
    background:#fff;
    box-shadow:0 8px 24px rgba(25,25,25,.08);
    box-sizing:border-box;
}
.product__orderform__selbox.is-open .product__orderform__select__list{
    display:block;
}
.product__orderform__select__option{
    padding:12px 14px;
    border-radius:8px;
    font-size:15px;
    font-weight:600;
    color:#1f2328;
    cursor:pointer;
}
.product__orderform__select__option:hover{
    background:#e6f7f5;
}
.product__orderform__select__option.on{
    background:#0EAC9E;
    color:#fff;
}
.product__orderform__select--img{
    height:auto;
    min-height:50px;
    padding:8px 14px;
}
.product__orderform__select--img .product__orderform__select__text{
    display:flex;
    align-items:center;
    gap:10px;
}
.product__orderform__select__thumb{
    width:34px;
    height:34px;
    border-radius:6px;
    object-fit:cover;
    flex:none;
    background:#eef1f4;
}
.product__orderform__select__option--img{
    display:flex;
    align-items:center;
    gap:10px;
}
.product__orderform__subpick{
    margin-top:12px;
    padding:14px;
    border:1px dashed #b8e5df;
    border-radius:10px;
    background:#f3fbfa;
}
.product__orderform__sublabel{
    font-size:12.5px;
    font-weight:700;
    color:#0c968a;
    margin-bottom:9px;
}

.product__orderform__checks{display:flex;flex-direction:column;gap:10px}
.product__orderform__checkrow{
    display:flex;
    align-items:flex-start;
    gap:12px;
    border:1.5px solid #e5e7eb;
    border-radius:10px;
    padding:14px;
    background:#fff;
}
.product__orderform__checkrow.on{
    border-color:#0EAC9E;
    background:#e6f7f5;
}
.product__orderform__box{
    width:20px;height:20px;
    border:2px solid #c3c8d0;
    border-radius:5px;
    flex:none;
    margin-top:1px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:13px;
    box-sizing:border-box;
}
.product__orderform__checkrow.on .product__orderform__box{
    background:#0EAC9E;
    border-color:#0EAC9E;
}
.product__orderform__ctxt{flex:1}
.product__orderform__cn{font-weight:700}
.product__orderform__cd{color:#6b7280;font-size:12.5px;margin-top:2px}
.product__orderform__checkrow > .product__orderform__cadd{
    color:#0c968a;
    font-size:12.5px;
    font-weight:700;
    white-space:nowrap;
    margin-top:0;
}
.product__orderform__checkrow--img .product__orderform__cthumb{
    width:48px;
    height:48px;
    border-radius:8px;
    object-fit:cover;
    flex:none;
    background:#eef1f4;
}

.product__orderform__numbox{display:flex;align-items:center;gap:10px}
.product__orderform__numbox button,
.product__orderform__numbtn{
    width:44px;height:46px;
    border:1.5px solid #e5e7eb;
    border-radius:9px;
    background:#fff;
    font-size:20px;
    color:#1f2328;
}
.product__orderform__numfield{position:relative;flex:1}
.product__orderform__numfield input{
    width:100%;
    height:46px;
    border:1.5px solid #e5e7eb;
    border-radius:9px;
    text-align:center;
    font-size:16px;
    font-weight:600;
    padding-right:54px;
    font-family:inherit;
    box-sizing:border-box;
    background:#fff;
}
.product__orderform__unit{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    color:#6b7280;
    font-size:13.5px;
}
.product__orderform__numhint{font-size:12px;color:#9aa0aa;margin:8px 0 0}

.product__orderform__qtable{
    border:1px solid #e5e7eb;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}
.product__orderform__qhead,
.product__orderform__qrow{
    display:grid;
    grid-template-columns:1fr 1.1fr 1.3fr;
    align-items:center;
    padding:14px 18px;
}
.product__orderform__qhead{
    color:#6b7280;
    font-size:12.5px;
    font-weight:700;
    border-bottom:1px solid #e5e7eb;
    background:#fafbfc;
}
.product__orderform__qrow{border-bottom:1px solid #f1f2f4}
.product__orderform__qrow:last-child{border-bottom:none}
.product__orderform__qrow.on{
    box-shadow:inset 0 0 0 2px #0EAC9E;
    border-radius:10px;
}
.product__orderform__qv{font-weight:700}
.product__orderform__pkg{font-weight:700}
.product__orderform__pkg s{
    color:#b0b4ba;
    font-weight:400;
    font-size:12.5px;
    margin-left:5px;
}

@media (max-width:560px){
    .product__orderform__cards,
    .product__orderform__cards--2{grid-template-columns:repeat(2,minmax(0,1fr))}
    .product__orderform__title{font-size:18px;margin:24px 0 12px}
    .product__orderform__qhead,
    .product__orderform__qrow{padding:12px 14px;font-size:13px}
    .product__orderform__summary__row{
        grid-template-columns:56px 1fr;
        gap:6px 10px;
    }
    .product__orderform__summary__end{
        grid-column:1 / -1;
        justify-content:flex-start;
    }
}

/* 선택된 옵션 요약 (사용자_주문화면.html summary) */
.product__detail__selected--custom{
    margin-top:32px;
    padding-top:0;
    border-top:0;
}
.product__orderform__summary{
    border:1.5px solid #e5e7eb;
    border-radius:14px;
    background:#fff;
    overflow:hidden;
}
.product__orderform__summary__head{
    padding:15px 18px;
    border-bottom:1px solid #e5e7eb;
    background:#fafbfc;
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.product__orderform__summary__title{
    font-size:16px;
    font-weight:800;
    letter-spacing:-.01em;
    color:#1f2328;
}
.product__orderform__summary__count{
    font-size:12px;
    color:#6b7280;
    font-weight:600;
}
.product__orderform__summary__body{padding:4px 0}
.product__orderform__summary__row{
    display:grid;
    grid-template-columns:64px 1fr auto;
    gap:10px;
    align-items:center;
    padding:12px 18px;
}
.product__orderform__summary__row + .product__orderform__summary__row{
    border-top:1px solid #f4f5f6;
}
.product__orderform__summary__opt{
    font-size:11.5px;
    color:#6b7280;
    font-weight:700;
}
.product__orderform__summary__val{
    font-size:14px;
    font-weight:600;
    letter-spacing:-.01em;
    color:#1f2328;
}
.product__orderform__summary__dim{
    color:#6b7280;
    font-weight:500;
    font-size:13px;
}
.product__orderform__summary__end{
    display:flex;
    align-items:center;
    gap:10px;
    justify-content:flex-end;
}
.product__orderform__summary__amt{
    font-size:13.5px;
    font-weight:700;
    white-space:nowrap;
    color:#1f2328;
}
.product__orderform__summary__amt.is-free{
    color:#9aa0aa;
    font-weight:600;
}
.product__orderform__summary__sx{
    border:none;
    background:#f1f2f4;
    color:#8b919b;
    width:22px;
    height:22px;
    border-radius:50%;
    font-size:11px;
    cursor:pointer;
    line-height:1;
    flex:none;
    padding:0;
}
.product__orderform__summary__sx:hover{
    background:#fdeaea;
    color:#dc2626;
}
.product__orderform__summary__foot{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 18px;
    border-top:2px solid #e5e7eb;
    background:#e6f7f5;
}
.product__orderform__summary__fl{
    font-size:13px;
    color:#0c968a;
    font-weight:700;
}
.product__orderform__summary__fv{
    font-size:19px;
    font-weight:800;
    color:#0c968a;
}
.product__orderform__summary__empty{
    padding:28px 18px;
    text-align:center;
    color:#9aa0aa;
    font-size:13px;
}
