/* 白邊貼紙設計頁（[spb_sticker]）。全部掛在 .spb-stk 底下，不影響佈景其他地方。
 * 11-27 業主「做整個面板使用的 UI」：App 式全螢幕（蓋住佈景頁首頁尾），上預覽、下分步驟面板。配色同編輯器（#FFC61A／#222／#F4F0E7）。 */
html.spb-stk-lock, html.spb-stk-lock body { overflow: hidden !important; }
.spb-stk { color: #222; font-size: 15px; line-height: 1.5; }
.spb-stk * { box-sizing: border-box; }
.spb-stk-app { position: fixed; left: 0; right: 0; bottom: 0; top: var( --wp-admin--admin-bar--height, 0px ); z-index: 99990; display: flex; flex-direction: column; background: #fff; max-width: 560px; margin: 0 auto; box-shadow: 0 0 0 100vmax #F4F0E7; }

/* 頂部列 */
.spb-stk-top { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #ECE7DC; background: #fff; }
.spb-stk-back { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #F4F0E7; color: #222 !important; text-decoration: none !important; display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; padding-bottom: 3px; }
.spb-stk-back-off { visibility: hidden; }
.spb-stk-title { flex: 1; min-width: 0; font-weight: 800; font-size: 16px; line-height: 1.2; }
.spb-stk-title small { display: block; font-weight: 400; font-size: 11px; color: #8A8378; }
.spb-stk-topprice { font-weight: 800; font-size: 16px; white-space: nowrap; }
.spb-stk .spb-stk-btn { display: inline-block; background: #FFC61A; color: #222; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; cursor: pointer; margin: 0; line-height: 1.3; text-transform: none; letter-spacing: 0; min-height: 0; box-shadow: none; }
.spb-stk .spb-stk-btn:disabled { opacity: .4; cursor: not-allowed; }
.spb-stk .spb-stk-submit { padding: 8px 14px; font-size: 14px; white-space: nowrap; }

/* 預覽 */
.spb-stk-stage { position: relative; flex: 1 1 auto; min-height: 150px; background: #E3E6EA; overflow: hidden; }
.spb-stk-cvwrap { position: absolute; inset: 14px; display: flex; align-items: center; justify-content: center; }
.spb-stk-cvwrap canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; filter: drop-shadow( 0 2px 6px rgba( 0, 0, 0, .18 ) ); }
.spb-stk .spb-stk-ph { border: 2px dashed #B9B3A8; background: rgba( 255, 255, 255, .6 ); border-radius: 18px; padding: 22px 30px; color: #222; font-size: 17px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; line-height: 1.3; text-transform: none; letter-spacing: 0; min-height: 0; box-shadow: none; }
.spb-stk-ph-plus { width: 46px; height: 46px; border-radius: 50%; background: #FFC61A; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 4px; }
.spb-stk .spb-stk-ph small { font-weight: 400; font-size: 12.5px; color: #6F685E; }
.spb-stk-mask { position: absolute; inset: 0; background: rgba( 255, 255, 255, .85 ); display: none; align-items: center; justify-content: center; font-weight: 700; z-index: 2; }
.spb-stk-info { flex: 0 0 auto; background: #E3E6EA; text-align: center; padding: 0 12px 16px; font-size: 12px; color: #6F685E; }
.spb-stk-size { font-size: 14px; font-weight: 800; color: #222; }
.spb-stk-size:empty { display: none; }
.spb-stk-legend i { display: inline-block; width: 16px; border-top: 2px dashed #e0368c; vertical-align: middle; margin-right: 4px; }
.spb-stk-warn { color: #b42318; font-size: 12px; margin-top: 2px; display: none; }

/* 下方面板 */
.spb-stk-panel { flex: 0 0 auto; background: #fff; border-radius: 16px 16px 0 0; margin-top: -10px; position: relative; box-shadow: 0 -6px 18px rgba( 0, 0, 0, .06 ); padding: 12px 14px calc( 10px + env( safe-area-inset-bottom, 0px ) ); }
.spb-stk-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.spb-stk .spb-stk-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid #ECE7DC; background: #fff; color: #222; border-radius: 999px; padding: 7px 4px; font-size: 13.5px; font-weight: 600; cursor: pointer; margin: 0; line-height: 1.2; text-transform: none; letter-spacing: 0; min-height: 0; box-shadow: none; }
.spb-stk-tab span { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #ECE7DC; color: #6F685E; font-size: 11px; font-weight: 700; }
.spb-stk .spb-stk-tab.on { background: #FFC61A; border-color: #FFC61A; }
.spb-stk-tab.on span { background: #222; color: #fff; }
.spb-stk-tab.done span { background: #2E8B57; color: #fff; font-size: 0; }
.spb-stk-tab.done span::before { content: '\2713'; font-size: 11px; }
.spb-stk-pane { min-height: 112px; }
.spb-stk .spb-stk-pick { width: 100%; padding: 13px; font-size: 16px; }
.spb-stk-note { font-size: 12px; color: #8A8378; margin-top: 8px; line-height: 1.5; }
.spb-stk-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.spb-stk-cards { display: flex; gap: 8px; }
.spb-stk .spb-stk-cards button { flex: 1; text-align: left; border: 2px solid #ECE7DC; background: #fff; color: #222; border-radius: 14px; padding: 12px; cursor: pointer; margin: 0; line-height: 1.35; text-transform: none; letter-spacing: 0; min-height: 0; box-shadow: none; font-weight: 400; }
.spb-stk-cards b { display: block; font-size: 16px; }
.spb-stk-cards small { font-size: 12px; color: #6F685E; }
.spb-stk .spb-stk-cards button.on { border-color: #222; box-shadow: 0 0 0 2px #FFC61A inset; }

.spb-stk-seg { display: inline-flex; border: 1px solid #ccc; border-radius: 999px; overflow: hidden; }
.spb-stk .spb-stk-seg button { border: 0; background: #fff; color: #222; padding: 8px 13px; font-size: 14px; cursor: pointer; margin: 0; border-radius: 0; font-weight: 500; text-transform: none; letter-spacing: 0; line-height: 1.4; min-height: 0; box-shadow: none; }
.spb-stk .spb-stk-seg button.on { background: #222; color: #fff; }
.spb-stk-stepper { display: inline-flex; align-items: center; gap: 4px; }
.spb-stk .spb-stk-stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ccc; background: #fff; color: #222; font-size: 18px; cursor: pointer; padding: 0; margin: 0; line-height: 1; min-height: 0; box-shadow: none; }
.spb-stk input[type=number] { width: 64px; font-size: 16px; padding: 6px 6px; border: 1px solid #ccc; border-radius: 10px; display: inline-block; margin: 0; height: auto; text-align: center; box-shadow: none; }
.spb-stk-stepper span { font-size: 13px; color: #6F685E; }
.spb-stk-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.spb-stk .spb-stk-chips button { border: 1px solid #ECE7DC; background: #F4F0E7; color: #222; border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; margin: 0; line-height: 1.3; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: 0; }
.spb-stk .spb-stk-chips button.on { background: #222; border-color: #222; color: #fff; }
.spb-stk-qwrap { font-size: 14px; }
.spb-stk-price { margin-top: 10px; font-size: 14px; color: #6F685E; }
.spb-stk-price b { color: #222; font-size: 22px; margin-right: 6px; }

.spb-stk-stepbar { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #F1ECE2; }
.spb-stk-stepno { flex: 1; font-size: 12.5px; color: #6F685E; }
.spb-stk .spb-stk-next { border: 0; background: #FFC61A; color: #222; border-radius: 999px; padding: 9px 18px; font-size: 15px; font-weight: 700; cursor: pointer; margin: 0; line-height: 1.2; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: 0; }
.spb-stk .spb-stk-next:disabled { opacity: .4; cursor: not-allowed; }
.spb-stk .spb-stk-next.spb-stk-next-go { padding: 11px 20px; font-size: 16px; }

/* 對話框（版權聲明／蝦皮完成） */
.spb-stk-modal { position: fixed; inset: 0; background: rgba( 0, 0, 0, .55 ); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.spb-stk-modal-box { background: #fff; border-radius: 16px; max-width: 440px; width: 100%; max-height: 86vh; overflow: auto; padding: 18px 18px 16px; font-size: 14px; line-height: 1.6; }
.spb-stk-modal-box h3 { font-size: 18px; margin: 0 0 10px; }
.spb-stk .spb-stk-go { width: 100%; font-size: 16px; padding: 13px; margin-top: 6px; }
.spb-stk-code { font-size: 24px; font-weight: 900; letter-spacing: 1px; margin: 4px 0 8px; }
.spb-stk .spb-stk-code button { font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid #222; background: #fff; color: #222; margin-left: 6px; vertical-align: middle; min-height: 0; box-shadow: none; }
