/* 삼신담 맞춤 동화책 — 제작 정보 입력칸 (상품 페이지 · 마이페이지 · 관리자 공용) */
.sd-info { display: grid; gap: 4px; }
.sd-info__block { padding: 14px 0; border-bottom: 1px dashed #ece6da; }
.sd-info__block:last-child { border-bottom: 0; padding-bottom: 0; }
.sd-info__h { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #2e2b26; }
.sd-info__h small { margin-left: 4px; font-size: 12px; font-weight: 500; color: #8a8478; }

.sd-upload { display: flex; align-items: center; gap: 10px; }
.sd-upload__drop { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border: 1.5px dashed #d9cfbd; border-radius: 12px; background: #fdfbf7; cursor: pointer; transition: border-color .2s, background .2s; }
.sd-upload__drop:hover { border-color: #482e29; background: #f9f7f3; }
.sd-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sd-upload__drop:focus-within { outline: 2px solid #482e29; outline-offset: 2px; }
.sd-upload__img {
    flex: 0 0 56px; height: 56px; border-radius: 10px; overflow: hidden;
    background: #f1ece2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a59a88' stroke-width='1.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.sd-upload__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-upload__img img[hidden] { display: none; }
.sd-upload__txt { display: grid; gap: 2px; min-width: 0; }
.sd-upload__txt b { font-size: 14px; color: #482e29; }
.sd-upload__txt small { font-size: 12px; color: #8a8478; }
.sd-upload.has-photo .sd-upload__drop { border-style: solid; border-color: #d8cbbd; background: #f9f7f3; }
.sd-upload__del { flex: 0 0 auto; height: 36px; padding: 0 12px; border: 1px solid #e2ddd3; border-radius: 99px; background: #fff; font: inherit; font-size: 12px; color: #6f685d; cursor: pointer; }
.sd-upload__del:hover { border-color: #b5654a; color: #b5654a; }
.sd-upload__del[hidden] { display: none; }

.sd-info__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sd-field2 { display: grid; gap: 6px; min-width: 0; }
.sd-info__block > .sd-field2 + .sd-field2 { margin-top: 10px; }
.sd-field2--wide { grid-column: 1 / -1; }
.sd-field2__label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: #6f685d; }
.sd-info__count { font-style: normal; font-weight: 500; color: #a59a88; }
.sd-field2__box { position: relative; display: flex; align-items: center; }
.sd-info .sd-field2 input, .sd-info .sd-field2 textarea {
    width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #e2ddd3; border-radius: 10px; background: #fff;
    font: inherit; font-size: 15px; color: #2e2b26; box-sizing: border-box;
}
.sd-info .sd-field2 textarea { height: auto; min-height: 140px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.sd-info .sd-field2 input:focus, .sd-info .sd-field2 textarea:focus { border-color: #482e29; box-shadow: 0 0 0 4px rgba(72,46,41,.1); outline: none; }
.sd-field2__box em { position: absolute; right: 12px; font-style: normal; font-size: 13px; color: #8a8478; pointer-events: none; }
.sd-info .sd-field2__box input:has(+ em) { padding-right: 36px; }
.sd-info .sd-field2 input::placeholder, .sd-info .sd-field2 textarea::placeholder { color: #b9b1a3; }

/* 마이페이지 · 관리자: 주문 상품별 제작 정보 */
.sd-oinfo { margin: 28px 0; }
.sd-oinfo__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #2e2b26; }
.sd-oinfo__desc { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: #6f685d; }
.sd-oinfo__card { margin-bottom: 14px; padding: 20px; border: 1px solid #e7e1d5; border-radius: 14px; background: #fff; }
.sd-oinfo__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.sd-oinfo__name { font-size: 15px; font-weight: 700; color: #2e2b26; }
.sd-oinfo__opt { margin: 0 0 8px; font-size: 12px; color: #8a8478; }
.sd-oinfo__badge { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #fbeee8; color: #b5654a; }
.sd-oinfo__badge.is-done { background: #f5f0ea; color: #482e29; }
.sd-oinfo__save { width: 100%; height: 48px; margin-top: 16px; border: 0; border-radius: 12px; background: #482e29; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.sd-oinfo__save:hover { background: #432923; }
.sd-oinfo__view { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; }
.sd-oinfo__photo img { width: 100%; border-radius: 10px; display: block; }
.sd-oinfo__photo .is-none { display: grid; place-items: center; aspect-ratio: 4 / 5; border: 1px dashed #d9cfbd; border-radius: 10px; font-size: 12px; color: #a59a88; }
.sd-oinfo__photo a { display: inline-block; margin-top: 8px; font-size: 12px; color: #482e29; text-decoration: underline; }
.sd-oinfo__dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.sd-oinfo__dl dt { color: #8a8478; }
.sd-oinfo__dl dd { margin: 0; color: #2e2b26; word-break: keep-all; }
.sd-oinfo__letter { grid-column: 1 / -1; margin: 6px 0 0; padding: 12px 14px; border-radius: 10px; background: #fbf7ef; white-space: pre-wrap; line-height: 1.7; }
@media (max-width: 600px) {
    .sd-oinfo__card { padding: 16px; }
    .sd-oinfo__view { grid-template-columns: 1fr; }
    .sd-oinfo__photo { max-width: 180px; }
}

/* 보호자 동의 */
.sd-info__agree { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f8f4eb; }
.sd-info__agree-row { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; line-height: 1.5; color: #2e2b26; }
.sd-info__agree-row input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--sd-green, #482e29); }
.sd-info__agree-row em { font-style: normal; font-weight: 700; color: #b5654a; }
.sd-info__agree-note { margin: 6px 0 0 25px; font-size: 12px; line-height: 1.5; color: #8a8478; }
.sd-info__agree-note a { color: inherit; text-decoration: underline; }
