/* 관리자 상품 등록 - 옵션·일정·포함사항·취소규정 (style.css 다음) */
.sub-h { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 8px; flex-wrap: wrap; }
.sub-h span { font-size: 15px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.sub-h span::before { content: ''; width: 24px; height: 15px; background: var(--cloud-sky) no-repeat center/contain; }
.sub-h small { font-size: 12px; color: var(--ink-3); }
.form .field { margin-top: 10px; }

.opt-table { padding: 8px; border-radius: 24px; background: #f8fbff; border: 1.5px solid #e4eef7; }
.ot-row { display: grid; grid-template-columns: 18px 1.6fr 1fr 1fr 1fr 70px 30px; gap: 6px; align-items: center; padding: 4px 2px; }
.ot-row.th { font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 2px 2px 4px; }
.ot-row .input { height: 40px; padding: 0 12px; font-size: 13.5px; background: #fff; }
.ot-row .num { text-align: right; }
.ot-row .num.c { background: #eef6ff; border-color: #d6e7f8; font-weight: 700; }
.ot-row .num.b { background: #fdf0f6; border-color: #f5d9e6; font-weight: 700; }
.grip { color: #b9c9d8; font-size: 12px; cursor: grab; text-align: center; letter-spacing: -2px; }
.ot-del { width: 28px; height: 28px; border-radius: 50%; color: var(--ink-3); font-size: 16px; }
.ot-del:hover { background: #ffe8f0; color: #d14d86; }
.ot-foot { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.ot-note { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }

.days { display: grid; gap: 6px; }
.day-row { display: grid; grid-template-columns: 64px 1fr 1.6fr 30px; gap: 6px; align-items: center; }
.day-row .input { height: 40px; padding: 0 12px; font-size: 13.5px; }
.dn { height: 40px; border-radius: 99px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: var(--blue); background: var(--cloud-sky) no-repeat center/100% 100%; }
.dn.pink { color: #d14d86; background-image: var(--cloud-pink); }

.tagbox { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-radius: 22px; min-height: 92px; align-content: flex-start; }
.tagbox.y { background: linear-gradient(140deg, #eafaf5, #f2fbff); }
.tagbox.n { background: linear-gradient(140deg, #fff1f6, #fbf6ff); }
.tagbox span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--ink-2); box-shadow: 0 2px 6px rgba(46,111,211,.08); }
.tagbox i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.tagbox input { flex: 1; min-width: 100px; height: 30px; border: 0; background: transparent; font: inherit; font-size: 13px; outline: none; color: var(--ink); }

.policy-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.policy-pick button { padding: 10px 8px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 800; color: var(--ink-2); line-height: 1.35; }
.policy-pick button small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.policy-pick button.on { border-color: var(--blue); background: #eef5ff; color: var(--blue); }
.policy-rows { display: grid; gap: 6px; margin-top: 8px; }
.policy-rows div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.policy-rows .input { height: 40px; font-size: 13.5px; }

@media (max-width: 760px) {
  .ot-row { grid-template-columns: 1fr 1fr; }
  .ot-row.th, .grip { display: none; }
  .day-row { grid-template-columns: 56px 1fr; }
  .day-row .input:nth-of-type(2) { grid-column: 1 / -1; }
  .policy-pick { grid-template-columns: 1fr 1fr; }
}

/* 추가 선택 옵션 줄 */
.ot-row.addon { grid-template-columns: 18px 1.8fr 1fr 1fr 90px 30px; }
select.input { height: 40px; padding: 0 10px; font-size: 13px; background: #fff; }

/* 판매 기간 */
.mode3 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.mode3 button { padding: 10px 8px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 800; color: var(--ink-2); line-height: 1.35; }
.mode3 button small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.mode3 button.on { border-color: var(--blue); background: linear-gradient(120deg, #eef5ff, #effbfd); color: var(--blue); }
.hint { font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.hint b { color: var(--ink-2); }
.none-box { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 22px; background: var(--grad-soft); font-size: 13px; color: var(--ink-2); }
.none-box img { width: 54px; }
.ck-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.sw { width: 40px; height: 24px; border-radius: 99px; background: #cfdbe6; position: relative; flex: none; cursor: pointer; transition: background .15s; }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw.on { background: var(--mint); } .sw.on::after { left: 19px; }

.period { position: relative; padding: 12px; border-radius: 22px; border: 1.5px solid var(--line); background: #fbfdff; margin-bottom: 8px; }
.period .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.period .input { height: 36px; padding: 0 12px; font-size: 13px; background: #fff; }
.period .top { display: flex; align-items: center; gap: 8px; }
.period .top .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.period .top .input { flex: 1; font-weight: 800; }
.period .top .ot-del { flex: none; }
.period .open { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.period .open .sw { width: 34px; height: 20px; } .period .open .sw::after { width: 14px; height: 14px; } .period .open .sw.on::after { left: 17px; }
.wd { display: flex; gap: 4px; margin-top: 6px; }
.wd button { flex: 1; height: 28px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); background: #eef3f8; }
.wd button.on { background: var(--ink); color: #fff; }
.adj { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.adj label { font-size: 11px; font-weight: 700; color: var(--ink-3); display: block; margin-bottom: 2px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 6px; }
.cal-head b { font-size: 15px; font-weight: 800; }
.cal-head button { width: 32px; height: 32px; border-radius: 50%; background: var(--sky-50); font-size: 18px; color: var(--ink-2); }
.cal .d { cursor: pointer; }
.cal .d.closed { background: #f0f3f6; color: #b6c4d1; text-decoration: line-through; }
.cal .d.closed small { color: #b6c4d1; }

/* 화면이 좁으면 상품 등록은 한 줄로 (옵션 표가 눌리지 않게) */
@media (max-width: 1320px) {
  .form-grid { grid-template-columns: 1fr; }
}
