.wrap-config-section,
.wrap-info-section,
.wrap-gallery-section { padding: 76px 0; }
.wrap-config-section { background: var(--green-50); }
.wrap-gallery-section { background: var(--green-50); }
.wrap-section-heading { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.wrap-section-heading h2 { margin: 5px 0 8px; color: var(--ink); font-size: clamp(30px, 3.4vw, 42px); }
.wrap-section-heading p { margin: 0; }
.wrap-paper-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.wrap-paper-grid article { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 70, 54, .07); position: relative; padding: 25px; }
.wrap-paper-grid article > span { color: var(--green-100); font-size: 44px; font-weight: 800; line-height: 1; }
.wrap-paper-grid h3 { margin: 7px 0 9px; color: var(--ink); }
.wrap-paper-grid p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.wrap-paper-grid strong { display: block; margin-top: 14px; color: var(--green-700); font-size: 12px; }
.wrap-warning { display: flex; margin-top: 17px; padding: 18px 21px; align-items: center; gap: 17px; color: #765b0a; background: #fff9df; border: 1px solid #efdf9b; border-radius: 14px; }
.wrap-warning p { margin: 0; font-size: 12px; }
.wrap-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.wrap-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 70, 54, .08); }
@media (max-width: 760px) {
    .wrap-paper-grid { grid-template-columns: 1fr; }
    .wrap-gallery { grid-template-columns: 1fr; }
}
/* ==========================================================================
   เครื่องเลือกสเปกและคำนวณราคา (wc-) — ตัวหนังสือไม่เล็กกว่า 12px
   ========================================================================== */
.wc *,
.wc *::before,
.wc *::after { box-sizing: border-box; }
.wc-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
.wc-steps { display: grid; min-width: 0; gap: 18px; }
/* ตัวเลือก: ปุ่มกลม (ขนาด / จำนวน) และการ์ด (ชนิดกระดาษ / จำนวนสี / ไฟล์งาน) ใช้ radio จริง ซ่อนวงกลมไว้ด้านหลัง */
.wc-chip input,
.wc-opt input,
.wc-row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wc-chip { position: relative; cursor: pointer; }
.wc-chip span { display: inline-flex; min-height: 46px; padding: 0 20px; align-items: center; gap: 8px; color: var(--wc-text); background: #fff; border: 1px solid var(--wc-line); border-radius: 999px; font-size: 15px; font-weight: 600; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.wc-chip:hover span { border-color: var(--green-300); }
.wc-chip.is-on span { color: #fff; background: var(--wc-green); border-color: var(--wc-green); }
.wc-chip input:focus-visible + span { outline: 3px solid var(--wc-amber); outline-offset: 2px; }
.wc-opt { position: relative; cursor: pointer; }
.wc-opt.is-on .wc-opt-face::before { background: radial-gradient(circle, var(--wc-green) 0 42%, #fff 48%); border-color: var(--wc-green); }
.wc-opt-face b { display: block; color: var(--wc-ink); font-size: 16px; font-weight: 700; line-height: 1.4; }
.wc-opt-face small { display: block; margin-top: 3px; color: var(--wc-muted); font-size: 13px; line-height: 1.55; }
.wc-opt input:focus-visible + .wc-opt-face { outline: 3px solid var(--wc-amber); outline-offset: 2px; }
.wc-opt-img { display: block; aspect-ratio: 8 / 5; margin-bottom: 12px; overflow: hidden; background: var(--wc-pale); border-radius: 10px; }
.wc-opt-img img,
.wc-opt-img svg { display: block; width: 100%; height: 100%; object-fit: cover; }
/* ป้าย "มีราคา" บนตัวเลือกที่ทำให้สเปกมีตารางราคา */
.wc-chip.has-price span::after,
.wc-opt.has-price .wc-opt-face b::after { margin-left: 8px; padding: 1px 9px; color: var(--wc-green-d); content: "มีราคา"; background: var(--wc-tint); border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; vertical-align: 1px; }
.wc-chip.is-on.has-price span::after { color: var(--wc-green-d); background: #fff; }
.wc-status { display: flex; margin: 20px 0 0; padding: 13px 15px; align-items: flex-start; gap: 10px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.55; }
.wc-status i { display: grid; width: 24px; height: 24px; flex: none; place-items: center; color: #fff; border-radius: 50%; font-size: 13px; font-style: normal; font-weight: 800; }
.wc-status.is-priced { color: var(--green-900); background: var(--green-100); border: 1px solid var(--line-strong); }
.wc-status.is-priced i { background: var(--wc-green); }
.wc-status.is-quote { color: #74521b; background: #fff7da; border: 1px solid #f6df8f; }
.wc-status.is-quote i { background: #d99a00; }
.wc-input { display: block; width: 100%; max-width: 380px; min-height: 46px; margin: 12px 0 0; padding: 0 14px; color: var(--wc-ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; font: inherit; font-size: 15px; }
.wc-input[hidden] { display: none; }
.wc-input:focus { border-color: var(--wc-green-l); outline: 0; box-shadow: 0 0 0 4px rgba(0, 139, 87, .14); }
/* ตารางราคา: แต่ละแถวเป็น radio เลือกได้ (มือถือจัดเป็น 2 บรรทัดต่อแถว ไม่ต้องเลื่อนซ้ายขวา) */
.wc-table { display: grid; margin-top: 14px; gap: 8px; }
.wc-row-head { min-height: 0; padding-block: 0 2px; color: var(--wc-muted); cursor: default; background: none; border: 0; font-size: 12px; font-weight: 700; line-height: 1.4; }
.wc-row-head small { font-size: 12px; font-weight: 500; }
.wc-row-head span:nth-child(n + 2),
.wc-c-unit,
.wc-c-vat,
.wc-c-total { text-align: right; }
.wc-c-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.wc-c-qty b { color: var(--wc-ink); font-size: 16px; font-weight: 700; }
.wc-c-qty small { flex-basis: 100%; color: #b45309; font-size: 12px; font-weight: 600; }
.wc-tag { padding: 2px 9px; color: #fff; background: #e84650; border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 700; }
.wc-c-unit { color: var(--wc-green); font-size: 15px; font-weight: 700; }
.wc-c-vat { color: var(--wc-muted); font-size: 14px; }
.wc-c-total strong { color: var(--wc-green-d); font-size: 16px; font-weight: 700; }
.wc-row:has(input:focus-visible) { outline: 3px solid var(--wc-amber); outline-offset: 2px; }
.wc-note { margin: 14px 2px 0; color: var(--wc-muted); font-size: 13px; line-height: 1.65; }
.wc-help { margin: 16px 2px 0; color: var(--wc-text); font-size: 14px; line-height: 1.6; }
.wc-help a { color: var(--wc-green); font-weight: 700; text-decoration: underline; }
.wc-noscript { margin: 18px 0 0; padding: 16px 18px; text-align: center; background: #fff7da; border: 1px solid #f6df8f; border-radius: 14px; }
/* สรุปรายการ (ติดขวา) และแถบราคาล่างจอบนมือถือ */
.wc-summary { position: sticky; top: calc(var(--hd-h, 76px) + 16px); overflow: hidden; }
.wc-sum-top small { display: block; }
.wc-sum-top b { display: block; margin-top: 2px; }
.wc-sum-list { margin: 0; padding: 6px 22px 0; }
.wc-sum-list div { display: flex; padding: 10px 0; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--wc-line); }
.wc-sum-list dt { flex: none; }
.wc-sum-list dd { margin: 0; line-height: 1.45; text-align: right; }
.wc-price-line { display: flex; margin-bottom: 6px; justify-content: space-between; gap: 12px; color: var(--wc-muted); font-size: 14px; }
.wc-price-line[hidden] { display: none; }
.wc-price-line b { color: var(--wc-ink); font-weight: 600; }
.wc-total { display: flex; margin-top: 10px; align-items: flex-end; justify-content: space-between; gap: 12px; }
.wc-total span { color: var(--wc-muted); font-size: 14px; line-height: 1.4; }
.wc-total strong { text-align: right; }
.wc-total-note { margin: 4px 0 0; color: var(--wc-muted); font-size: 13px; text-align: right; }
.wc-cta { display: grid; padding: 14px 22px 6px; gap: 10px; }
.wc-btn { display: inline-flex; width: 100%; min-height: 50px; padding: 10px 18px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 14px; font-size: 16px; font-weight: 700; text-align: center; transition: transform .15s ease, background .15s ease; }
.wc-btn:hover { transform: translateY(-3px); }
.wc-btn:focus-visible { outline: 3px solid var(--wc-amber); outline-offset: 2px; }
.wc-btn .ico { width: 18px; height: 18px; }
.wc-btn-main { color: #fff; background: var(--wc-green); box-shadow: 0 10px 24px rgba(0, 139, 87, .28); }
.wc-btn-main:hover { background: var(--wc-green-d); }
.wc-btn-line { color: var(--green-700); background: #fff; border-color: var(--line-brand); font-size: 14px; }
.wc-btn-line:hover { background: var(--green-50); }
.wc-terms { margin: 0; padding: 10px 22px 20px 40px; color: var(--wc-muted); font-size: 13px; line-height: 1.8; }
.wc-bar { display: none; }
@media (max-width: 900px) {
    .wc-layout { grid-template-columns: 1fr; }
    .wc-summary { position: static; }
    body.has-wc-bar { padding-bottom: 76px; }
    .wc-bar { position: fixed; z-index: 900; right: 0; bottom: 0; left: 0; display: flex; min-height: 68px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)); align-items: center; gap: 12px; color: #fff; background: var(--green-950); box-shadow: 0 -8px 26px rgba(0, 0, 0, .2); }
    .wc-bar-info { min-width: 0; flex: 1; }
    .wc-bar-info small { display: block; color: var(--line-strong); font-size: 12px; line-height: 1.3; }
    .wc-bar-info strong { display: block; overflow: hidden; font-size: 18px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
    .wc-bar-btn { display: inline-flex; min-height: 46px; padding: 0 18px; flex: none; align-items: center; color: var(--green-900); background: #fff; border-radius: 14px; font-size: 15px; font-weight: 700; white-space: nowrap; }
    .wc-bar-btn:focus-visible { outline: 3px solid var(--wc-amber); outline-offset: 2px; }
}
@media (max-width: 640px) {
    .wc-step-head { padding: 15px 16px; }
    .wc-body { padding: 14px 16px 18px; }
    .wc-row-head { display: none; }
    .wc-row { min-height: 0; padding: 12px 14px; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
    .wc-c-qty { grid-column: 1; grid-row: 1; }
    .wc-c-total { grid-column: 2; grid-row: 1; }
    .wc-c-unit,
            .wc-c-vat { grid-row: 2; font-size: 13px; font-weight: 600; }
    .wc-c-unit { grid-column: 1; text-align: left; }
    .wc-c-vat { grid-column: 2; }
    .wc-c-unit::before,
            .wc-c-vat::before { color: var(--wc-muted); content: attr(data-l) " "; font-weight: 500; }
}
@media (max-width: 520px) {
    .wc-opts { grid-template-columns: 1fr; }
    .wc-chip span { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .wc-chip span,
            .wc-opt-face,
            .wc-row,
            .wc-btn { transition: none; }
    .wc-btn:hover { transform: none; }
}
/* หัวข้อส่วนเลือกสเปก: ให้เหมือนหัวข้อหน้าสมุดนักเรียน (ป้ายเล็กตัวพิมพ์ใหญ่ · หัวข้อ · บรรทัดอธิบายบรรทัดเดียว) */
.wrap-config-section .wrap-section-heading { max-width: 860px; margin-bottom: 26px; }
.wrap-config-section .wrap-section-heading .eyebrow { text-transform: uppercase; }
.wrap-config-section .wrap-section-heading h2 { margin: 6px 0 8px; }
.wrap-config-section .wrap-section-heading p { color: #55706b; font-size: 15px; line-height: 1.75; }
/* พื้นหลังอ่อนลง · เส้นตอนเลือกบางลง (เส้นเดียว 1px ไม่มีวงซ้อน ไม่มีเงาหนา) */
.wrap-config-section, .wrap-gallery-section { background: #f9fcfa; }
.wc { --wc-green: var(--green-700); --wc-green-d: var(--green-800); --wc-green-l: var(--green-600); --wc-tint: var(--green-100); --wc-ink: var(--ink); --wc-text: var(--text); --wc-muted: var(--muted); --wc-line: var(--line); --wc-amber: var(--amber); --wc-pale: #f9fcfa; }
/* ==========================================================================
   หน้าตาแบบเดียวกับหน้านามบัตร: ตัวเลือกเป็นแถว/การ์ดมีรูปหรือไอคอน · ตอนเลือกพื้นเขียวอ่อนขอบเขียวบาง · จำนวนเป็นกล่องเล็ก
   ========================================================================== */
.wc-step { overflow: hidden; }
.wc-step-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px 4px; border-bottom: 0; }
.wc-num { display: grid; place-items: center; }
.wc-body { padding: 10px 22px 22px; }
.wc-label { display: block; color: var(--wc-ink); font-weight: 700; margin: 22px 0 10px; font-size: 14px; }
.wc-label:first-child { margin-top: 0; }
/* ปุ่มกล่องเล็ก: ขนาดกระดาษ (มีรูปสี่เหลี่ยมสัดส่วนจริง) และจำนวน */
.wc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-tile span { display: grid; min-width: 96px; min-height: 84px; padding: 10px 8px; align-content: center; justify-items: center; gap: 2px; color: var(--wc-ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; text-align: center; transition: background .15s ease, border-color .15s ease; }
.wc-tile span:has(.wc-sq) { grid-template-rows: 48px auto auto; align-items: end; }
.wc-tile b { font-size: 15px; line-height: 1.3; }
.wc-tile small { color: #55706b; font-size: 12px; font-weight: 500; line-height: 1.3; }
.wc-tile.is-on span { color: var(--wc-ink); }
.wc-tile.is-on span b { color: #005f3b; }
.wc-tile.has-price span::after,
.wc-tile.is-on.has-price span::after { margin: 4px 0 0; padding: 0 8px; color: #005f3b; background: var(--green-100); font-size: 11px; }
.wc-sq { display: block; margin-bottom: 6px; width: var(--s, 32px); height: var(--s, 32px); background: #e9f8f0; border: 1.5px solid #6fd0a4; border-radius: 3px; }
.wc-sq.is-other { display: grid; width: 40px; height: 40px; place-items: center; color: #55706b; background: #fff; border: 1.5px dashed var(--green-300); font-size: 18px; font-style: normal; font-weight: 700; }
/* การ์ดตัวเลือก: ชนิดกระดาษ (แถวมีรูป) · จำนวนสี · ไฟล์งาน (มีไอคอน) */
.wc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wc-opts:has(.wc-opt-pic) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wc-opt-face { position: relative; height: 100%; background: #fff; border: 1px solid var(--wc-line); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; display: grid; min-height: 74px; padding: 12px 14px 12px 48px; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; border-radius: 10px; }
.wc-opt-face::before { position: absolute; content: ""; background: #fff; border: 1px solid var(--green-300); border-radius: 50%; top: 50%; left: 15px; width: 20px; height: 20px; transform: translateY(-50%); }
.wc-opt-pic .wc-opt-face { padding: 16px 18px; column-gap: 16px; grid-template-columns: 88px minmax(0, 1fr); align-items: center; border-radius: 14px; }
.wc-opt-pic .wc-opt-face::before, .wc-opt-pic .wc-opt-face::after { display: none; }
.wc-opt-pic .wc-opt-img { position: relative; width: 88px; aspect-ratio: 1 / 1; margin: 0; border-radius: 12px; }
.wc-copy { min-width: 0; }
.wc-copy b, .wc-opt-face .wc-copy b { display: block; font-size: 15px; }
.wc-copy small { display: block; margin-top: 2px; color: #55706b; font-size: 13px; line-height: 1.5; }
.wc-ico { display: grid; width: 44px; height: 44px; place-items: center; color: var(--green-700); background: var(--green-50); border-radius: 10px; }
.wc-ico svg { width: 24px; height: 24px; }
.wc-dots { grid-template-columns: repeat(2, 14px); gap: 3px; place-content: center; }
.wc-dots i { display: block; width: 14px; height: 14px; border-radius: 50%; }
.wc-dots i:only-child { width: 24px; height: 24px; }
.wc-dots:has(i:only-child) { grid-template-columns: 24px; }
.wc-opt.is-on .wc-ico { background: #fff; }
/* ตารางราคา (เมื่อเปิดสวิตช์ราคา) */
.wc-row { position: relative; display: grid; min-height: 62px; padding: 10px 16px; align-items: center; grid-template-columns: 1.25fr .85fr .85fr 1fr; gap: 12px; cursor: pointer; background: #fff; border: 1px solid var(--wc-line); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; border-radius: 10px; }
/* กล่องสรุป: ยอดรวมในกล่องเขียวอ่อน + แถวข้อดี 3 ข้อ */
.wc-price { margin: 12px 18px 0; padding: 12px 16px; }
.wc-trust { display: grid; margin: 0; padding: 4px 18px 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; }
.wc-trust li { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #33504a; font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center; }
.wc-trust li span { display: grid; width: 32px; height: 32px; place-items: center; color: var(--green-700); background: var(--green-50); border-radius: 50%; }
.wc-trust svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
    .wc-body { padding: 8px 16px 18px; }
    .wc-step-head { padding: 16px 16px 4px; }
    .wc-tile span { min-width: 0; }
    .wc-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wc-opt-pic .wc-opt-face { grid-template-columns: 72px minmax(0, 1fr); }
    .wc-opt-pic .wc-opt-img { width: 72px; }
}

/* ช่องรูปชนิดกระดาษ (1:1) ยังไม่มีไฟล์รูปแสดงกรอบว่างพร้อมไอคอน วางรูป paper-pe / paper-nope ที่ assets/images/wrap/ */
.wc-pic-empty { position: absolute; inset: 0; display: block; background: #f2fbf6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fd9bc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='m21 16-5-5-8 9'/%3E%3C/svg%3E") center / 34px no-repeat; border: 1.5px dashed #bfe6cd; border-radius: inherit; }
@media (max-width: 560px) {
    .wc-opts:has(.wc-opt-pic) { grid-template-columns: 1fr; }
}

/* เลือกจำนวน: การ์ดแบบเดียวกับหน้าสมุดนักเรียน */
.wc-qty input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wc-vatbar { display: flex; margin-bottom: 14px; padding: 12px 14px; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; color: #74521b; background: #fff7da; border: 1px solid #f6df8f; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.wc-vatbar b { color: #5c410f; }
.wc-seg { display: inline-flex; padding: 3px; background: #fff; border: 1px solid #f0d67a; border-radius: 999px; }
.wc-seg button { min-height: 34px; padding: 0 14px; color: #74521b; background: none; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wc-seg button[aria-pressed="true"] { color: #fff; background: var(--green-700); }
.wc-seg button:focus-visible { outline: 3px solid var(--wc-amber); outline-offset: 1px; }
.wc-qtys { display: grid; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wc-qty { position: relative; display: block; min-height: 116px; padding: 14px 10px 12px; text-align: center; cursor: pointer; background: #fff; border: 1px solid var(--wc-line); border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.wc-qty:hover { border-color: var(--green-300); }
body .wc-qty.is-on { background: var(--green-50); border-color: var(--green-700); }
.wc-qty:has(input:focus-visible) { outline: 3px solid var(--wc-amber); outline-offset: 2px; }
.wc-qty strong { display: block; color: var(--wc-ink); font-size: 18px; font-weight: 700; }
.wc-qty-unit { display: block; margin-top: 4px; color: var(--green-700); font-size: 14px; font-weight: 700; }
.wc-qty-total { display: block; margin-top: 2px; color: var(--wc-muted); font-size: 12px; }
.wc-qty-save { display: block; margin-top: 4px; color: #b45309; font-size: 12px; font-weight: 600; }
.wc-best { position: absolute; top: -10px; left: 50%; padding: 2px 10px; color: #fff; background: #f08a00; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }
@media (max-width: 640px) {
    .wc-qtys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* สรุปรายการ: หน้าตาเดียวกับหน้าสมุดนักเรียน (ก่อนปรับระบบหน้านี้ใหม่) */
.wc-srows { margin: 0; padding: 6px 20px 0; list-style: none; }
.wc-srow { display: flex; width: 100%; padding: 10px 0; align-items: center; gap: 12px; color: inherit; text-align: left; text-decoration: none; border-bottom: 1px dashed var(--wc-line); }
.wc-srows > li:last-child .wc-srow { border-bottom: 0; }
.wc-srow:hover .wc-srow-e { text-decoration: underline; }
.wc-srow-t { min-width: 0; flex: 1; }
.wc-srow-t small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.wc-srow-t b { display: block; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.45; }
.wc-srow-e { flex: none; color: var(--wc-green); font-size: 13px; font-weight: 600; }
.wc-srow:focus-visible { outline: 3px solid var(--wc-amber); outline-offset: -2px; border-radius: 10px; }
body .wc-price { margin: 12px 18px 0; padding: 14px 16px 12px; }
body .wc-price-line { display: block; margin: 0; padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong); }
body .wc-price-line + .wc-price-line { margin-top: 12px; }
body .wc-price-line span { display: block; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
body .wc-price-line b { display: block; margin-top: 2px; color: var(--ink); font-size: 20px; font-weight: 800; line-height: 1.3; text-align: right; }
body .wc-total { display: block; margin-top: 12px; }
body .wc-total span { display: block; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
body .wc-total strong { display: block; margin-top: 2px; text-align: right; }
.wc-cta { padding: 12px 20px 8px; }
.wc-terms { padding: 4px 20px 18px 38px; }

/* ==========================================================================
   ระบบเลือกสเปกใหม่: ประเภทงาน · ชนิดกระดาษ (3 ชนิด) · ขนาด (การ์ดมีภาพสัดส่วนจริง) · เฉดสี 1 สี
   ========================================================================== */
.wc-step { scroll-margin-top: calc(var(--hd-h, 76px) + 16px); }
.wc-hint { margin: 0 0 12px; color: var(--wc-muted); font-size: 14px; line-height: 1.6; }
.wc-label small { color: var(--wc-muted); font-weight: 500; }
/* ชนิดกระดาษ 3 ชนิด: การ์ดแนวตั้ง รูป 1:1 ด้านบน */
#wc-s-paper .wc-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#wc-s-paper .wc-opt-pic .wc-opt-face { grid-template-columns: 1fr; row-gap: 12px; align-content: start; padding: 14px; }
#wc-s-paper .wc-opt-pic .wc-opt-img { width: 100%; aspect-ratio: 4 / 3; }
/* ขนาด: การ์ดมีภาพสี่เหลี่ยมตามสัดส่วนจริง + เส้นบอกขนาดเป็นเซนติเมตร */
.wc-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wc-size { position: relative; display: block; padding: 12px 16px 16px; cursor: pointer; background: #fff; border: 1px solid var(--wc-line); border-radius: 16px; transition: border-color .15s ease, background .15s ease; }
.wc-size input,
.wc-shade input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wc-size:hover { border-color: var(--green-300); }
.wc-size.is-on { background: var(--green-50); border-color: var(--green-700); }
.wc-size:has(input:focus-visible),
.wc-shade:has(input:focus-visible) { outline: 3px solid var(--wc-amber); outline-offset: 2px; }
.wc-size-fig { display: block; }
.wc-size-fig svg { display: block; width: 100%; height: auto; max-height: 150px; margin: 0 auto; }
.wc-dim line { stroke: #7c918c; stroke-width: 1.2; }
.wc-size-fig text { stroke: none; font-family: inherit; }
.wc-dim-t { fill: #5b706b; font-size: 10px; font-weight: 600; }
.wc-sq-fill { fill: #e7f7ef; stroke: var(--green-600); stroke-width: 1.5; }
.wc-sq-t { fill: var(--green-800); font-weight: 800; }
.wc-sq-s { fill: #e3f6ec; font-size: 10px; font-weight: 600; }
.wc-size b { display: block; margin-top: 6px; color: var(--wc-ink); font-size: 16px; font-weight: 800; line-height: 1.35; }
.wc-size small { display: block; margin-top: 3px; padding-right: 28px; color: var(--wc-muted); font-size: 12px; line-height: 1.6; }
.wc-size-check { position: absolute; right: 12px; bottom: 12px; display: none; width: 26px; height: 26px; background: var(--green-700); border-radius: 50%; }
.wc-size-check::after { position: absolute; top: 6px; left: 9px; width: 6px; height: 11px; content: ""; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.wc-size.is-on .wc-size-check { display: block; }
/* เฉดสีโรงพิมพ์ 1 สี */
.wc-shades { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.wc-shade { position: relative; display: block; padding: 8px 8px 9px; cursor: pointer; background: #fff; border: 1px solid var(--wc-line); border-radius: 12px; }
.wc-shade:hover { border-color: var(--green-300); }
.wc-shade.is-on { background: var(--green-50); border-color: var(--green-700); }
.wc-shade-sw { display: block; height: 38px; margin-bottom: 6px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.wc-shade b { display: block; color: var(--wc-ink); font-size: 13px; line-height: 1.35; }
.wc-shade small { display: block; color: var(--wc-muted); font-size: 12px; line-height: 1.4; }
.wc-shade.is-on .wc-shade-sw { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 2px #fff, 0 0 0 4px var(--green-700); }
/* ข้อความสเปกตายตัว / ข้อมูลไฟล์งาน */
.wc-fixed { margin: 0 0 4px; padding: 12px 14px; color: var(--wc-ink); background: var(--green-50); border-radius: 12px; font-size: 14px; font-weight: 600; }
.wc-info { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--green-50); border: 1px solid var(--wc-line); border-radius: 14px; }
.wc-info .wc-ico { flex: none; background: #fff; }
.wc-srows + .wc-price { margin-top: 12px; }
@media (max-width: 760px) {
    #wc-s-paper .wc-opts { grid-template-columns: 1fr; }
    #wc-s-paper .wc-opt-pic .wc-opt-face { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; }
    #wc-s-paper .wc-opt-pic .wc-opt-img { width: 72px; }
    .wc-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .wc-opts { grid-template-columns: 1fr; }
}

/* รอบแก้: ไม่มีวงกลมเรดิโอ ใช้เครื่องหมายถูกมุมขวาบนแทน · ช่องรูปว่างบอกขนาด · การ์ดงานพิมพ์มีแถบหมึก · เฉดสีเป็นวงกลม */
.wc .wc-opt .wc-opt-face { padding-left: 16px; }
.wc .wc-opt .wc-opt-face::before { display: none; }
.wc .wc-opt.is-on .wc-opt-face::after { position: absolute; top: 10px; right: 10px; display: block; width: 22px; height: 22px; content: ""; background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; border-radius: 50%; }
.wc .wc-opt .wc-copy { padding-right: 22px; }
.wc-sq-fill { fill: #e7f7ef; }
.wc-size.is-on .wc-sq-fill { fill: #c9eedb; }
.wc-pic-empty { display: grid; place-items: end center; padding-bottom: 12%; background-position: center 30%; background-size: 28%; }
.wc-pic-empty small { color: #7fae98; font-size: 11px; font-style: normal; font-weight: 600; line-height: 1.35; text-align: center; }
.wc-ink .wc-opt-face { grid-template-columns: 1fr; row-gap: 12px; align-content: start; padding: 14px 16px 16px; }
.wc-ink-bar { display: flex; height: 34px; overflow: hidden; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.wc-ink-bar i { flex: 1; }
.wc-opt.is-fixed, .wc-opt.is-fixed * { cursor: default; }
.wc-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.wc-specs > div { padding: 12px 14px; background: var(--green-50); border: 1px solid var(--wc-line); border-radius: 12px; }
.wc-specs dt { margin: 0 0 4px; color: var(--wc-muted); font-size: 12px; font-weight: 600; }
.wc-specs dd { margin: 0; color: var(--wc-ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
.wc-specs dd small { display: block; margin-top: 2px; color: var(--wc-muted); font-size: 12px; font-weight: 500; }
.wc-ink.is-off { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
.wc-ink.is-off * { cursor: not-allowed; }
.wc-shades { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.wc-shade { position: relative; display: flex; width: 48px; flex-direction: column; align-items: center; gap: 4px; padding: 0; cursor: pointer; background: none; border: 0; border-radius: 0; }
.wc-shade.is-on { background: none; }
.wc-shade-dot { display: block; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: transform .15s ease; }
.wc-shade:hover .wc-shade-dot { transform: scale(1.08); }
.wc-shade.is-on .wc-shade-dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 0 0 3px #fff, 0 0 0 5px var(--green-700); }
.wc-shade-n { color: var(--wc-muted); font-size: 12px; font-weight: 700; line-height: 1; }
.wc-shade.is-on .wc-shade-n { color: var(--green-800); }
.wc-shade-pick { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; background: #fff; border: 1px solid var(--wc-line); border-radius: 12px; }
.wc-shade-pick b { display: block; color: var(--wc-ink); font-size: 14px; }
.wc-shade-pick small { display: block; color: var(--wc-muted); font-size: 12px; line-height: 1.5; }
.wc-shade-big { flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.wc-shade-big.is-empty { background: #fff; border: 1.5px dashed var(--green-300); box-shadow: none; }
/* เครื่องหมายถูกของตัวเลือกที่เลือกแล้ว: ทุกชนิดการ์ดอยู่มุมขวาบน ขนาดเดียวกัน (วงกลมเขียว 22px) */
.wc-size .wc-size-check { top: 10px; right: 10px; bottom: auto; width: 22px; height: 22px; background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.wc-size .wc-size-check::after { display: none; }
.wc-size.is-on .wc-size-check { display: block; }
body .wc-qty.is-on::after { position: absolute; top: 10px; right: 10px; display: block; width: 22px; height: 22px; content: ""; background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; border-radius: 50%; }
/* ช่องวางลิงก์ไฟล์งาน (ขั้นตอนไฟล์งาน) */
.wc-link { margin-top: 14px; }
.wc-link-l { display: block; margin-bottom: 6px; color: var(--wc-ink); font-size: 14px; font-weight: 700; }
.wc-link-l small { color: var(--wc-muted); font-size: 12.5px; font-weight: 400; }
.wc-link-in { width: 100%; min-height: 48px; padding: 10px 14px; color: var(--wc-ink); background: #fff; border: 1px solid var(--wc-line); border-radius: 12px; font: inherit; font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease; }
.wc-link-in::placeholder { color: #98a9a1; }
.wc-link-in:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(0, 165, 104, .14); outline: 0; }
.wc-link-err { margin: 6px 0 0; color: #c0392b; font-size: 13px; line-height: 1.5; }
.wc-link-help { margin: 8px 0 0; color: var(--wc-muted); font-size: 13px; line-height: 1.6; }
/* ข้อมูลไม่ครบตอนกดขอราคา: ไฮไลต์ขั้นตอนที่ยังไม่ได้เลือก */
.wc-step.is-missing { border-color: #e2a39b; box-shadow: 0 0 0 3px rgba(214, 69, 69, .08); }
.wc-miss { margin: 0 0 12px; padding: 8px 14px; color: #b3382c; background: #fdf1ef; border-radius: 10px; font-size: 14px; font-weight: 600; }.wc-size.is-fixed, .wc-size.is-fixed * { cursor: default; }

/* ==========================================================================
   แผงสรุปรายการแบบเช็กลิสต์ (ใช้ร่วมกับหน้าสมุดนักเรียน: เลือกแล้ว X จาก N ขั้น)
   - แถบความคืบหน้าใต้ชื่อสินค้า · วงกลมสถานะต่อแถว (ติ๊กเขียว = เลือกแล้ว, เส้นประ + ปุ่ม "เลือก" = ยังไม่ได้เลือก)
   - ราคาจางจนกว่าจะครบ · ปุ่มหลักบอกว่าเหลืออีกกี่ขั้น
   ========================================================================== */
.wc-meter { margin: 0 0 14px; }
.wc-meter-text { display: block; color: var(--wc-muted); font-size: 13px; font-weight: 600; }
.wc-meter.is-done .wc-meter-text { color: var(--wc-green); }
.wc-meter-bar { display: block; height: 6px; margin-top: 7px; overflow: hidden; background: var(--green-100); border-radius: 999px; }
.wc-meter-bar i { display: block; width: 0; height: 100%; background: var(--wc-green); border-radius: inherit; transition: width .3s ease; }

.wc-srows { padding: 2px 20px 4px; }
.wc-srow { padding: 7px 0; gap: 11px; }
.wc-dot { display: block; width: 20px; height: 20px; flex: none; background: #fff; border: 2px dashed var(--line-strong); border-radius: 50%; }
.wc-srow:not(.is-todo):not(.is-opt) .wc-dot { background: var(--wc-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; border: 2px solid var(--wc-green); }
.wc-srow.is-opt .wc-dot { border-style: solid; border-color: var(--line-strong); background: var(--green-50); }
body .wc-summary .wc-srow.is-todo .wc-srow-t b { color: var(--wc-muted); font-weight: 500; }
.wc-srow.is-todo .wc-srow-e { padding: 3px 12px; color: var(--wc-green-d); border: 1px solid var(--line-brand); border-radius: 999px; font-size: 12.5px; }
.wc-srow.is-todo:hover .wc-srow-e { background: var(--green-50); text-decoration: none; }

.wc-price.is-pending { opacity: .6; }
body .wc-summary .wc-price { margin: 8px 16px 0; padding: 10px 14px 8px; }
body .wc-summary .wc-price-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; }
body .wc-summary .wc-price-line span { display: block; font-size: 13px; line-height: 1.35; }
body .wc-summary .wc-price-line b { display: block; margin: 0; font-size: 17px; white-space: nowrap; }
body .wc-summary .wc-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; }
body .wc-summary .wc-total span { display: block; font-size: 13px; line-height: 1.35; }
body .wc-summary .wc-total strong { margin: 0; font-size: 26px; white-space: nowrap; }
body .wc-summary .wc-total-note { margin: 2px 0 0; font-size: 12px; }
body .wc-summary .wc-cta { gap: 8px; padding: 10px 16px 4px; }
body .wc-summary .wc-btn { min-height: 44px; }
body .wc-summary .wc-btn-main.is-wait { color: var(--wc-green-d); background: var(--green-100); box-shadow: none; }
body .wc-summary .wc-btn-main.is-wait:hover { background: var(--green-100); transform: none; }
