/* SOBLAR 跨頁詢價籃與一鍵複製請購標準（沉穩深黑藍 #0f172a 工業風，零彩色字） */
.sa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 4px; font-size: 13.5px; font-weight: 600; line-height: 1.2; cursor: pointer; font-family: inherit; }
.sa-btn-primary { background: #0f172a; color: #ffffff; border: 1px solid #0f172a; }
.sa-btn-primary:hover { background: #1e293b; }
.sa-btn-ghost { background: #ffffff; color: #0f172a; border: 1px solid #cbd5e1; }
.sa-btn-ghost:hover { border-color: #0f172a; }
.sa-add-btn { margin-left: 8px; }
.sa-copy-btn { margin: 0 0 8px 0; padding: 6px 12px; font-size: 12.5px; }

.sa-fab { position: fixed; right: 16px; bottom: 16px; z-index: 9998; background: #0f172a; color: #ffffff; border: 0; border-radius: 24px; padding: 12px 20px; font-size: 14px; font-weight: 700; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35); cursor: pointer; }

.sa-drawer { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 23, 42, 0.45); display: flex; justify-content: flex-end; }
.sa-panel { width: 380px; max-width: 100%; height: 100%; overflow-y: auto; background: #ffffff; padding: 18px 20px; box-sizing: border-box; font-size: 13.5px; color: #1e293b; }
.sa-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: #0f172a; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 12px; }
.sa-close { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: #475569; }
.sa-list { list-style: none; margin: 0 0 14px 0; padding: 0; }
.sa-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #e2e8f0; }
.sa-item-name { flex: 1; color: #0f172a; font-weight: 600; font-size: 13px; }
.sa-list input { width: 56px; padding: 4px 6px; border: 1px solid #cbd5e1; border-radius: 4px; }
.sa-rm { background: none; border: 0; color: #64748b; cursor: pointer; font-size: 12px; text-decoration: underline; }
.sa-form label { display: block; margin-bottom: 10px; font-weight: 600; color: #334155; font-size: 13px; }
.sa-form input, .sa-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 14px; font-family: inherit; }
.sa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.sa-toast { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 20px); z-index: 10000; background: #0f172a; color: #ffffff; padding: 10px 18px; border-radius: 6px; font-size: 13.5px; opacity: 0; transition: all 0.25s ease; max-width: calc(100% - 32px); }
.sa-toast.sa-show { opacity: 1; transform: translate(-50%, 0); }

/* 自動收摺的長段落 */
details.sa-more { margin: 0 0 12px 0; border-left: 3px solid #cbd5e1; padding: 2px 0 2px 12px; }
details.sa-more > summary { cursor: pointer; color: #0f172a; font-weight: 600; font-size: 13.5px; }
details.sa-more[open] > summary { margin-bottom: 6px; }

@media (max-width: 768px) {
  .sa-add-btn { margin: 8px 0 0 0; width: 100%; }
  .sa-fab { right: 12px; bottom: 12px; padding: 11px 16px; }
}

/* 自動補上寬高的首屏主圖：維持等比例縮放 */
img.sa-dim { height: auto; max-width: 100%; }
