/* 智匯家 Site Kit：詢價清單（顏色使用佈景主題變數） */
.cwq-add{display:grid;gap:.75rem;margin:1rem 0}
.cwq-add__row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem}
.cwq-add__qty,.cwq-add__note,.cwq-row__qty,.cwq-row__note{display:grid;gap:.25rem;font-size:.875em}
.cwq-add__qty input{width:6.5rem}
.cwq-add input,.cwq-add textarea,.cwq-row input,.cwq-row textarea{font:inherit;padding:.55em .7em;border:1px solid var(--cw-border,#dfe5ec);border-radius:var(--cw-radius-s,4px);background:#fff;color:inherit;width:100%;box-sizing:border-box}
.cwq-add__btn{cursor:pointer}
.cwq-add__btn[disabled],.cwq-loop[disabled]{opacity:.6;cursor:progress}
.cwq-add__status,.cwq-loop__status{margin:0;min-height:1.2em;font-size:.875em;color:var(--cw-primary,#0f4c81)}
.cwq-add__link{margin:0;font-size:.875em}
.cwq-loop{cursor:pointer}
.cwq-loop-wrap{display:grid;justify-items:center;gap:.25rem}
.cwq-mini{position:relative;display:inline-flex;align-items:center;gap:.35em;color:inherit;text-decoration:none}
.cwq-mini:hover{text-decoration:none}
.cwq-mini__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cwq-mini__count{position:absolute;top:-6px;right:-10px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--cw-accent,var(--cw-primary,#0f4c81));color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.cwq-mini__count[hidden]{display:none}
.cwq-list__empty{padding:1.5rem;border:1px dashed var(--cw-border,#dfe5ec);border-radius:var(--cw-radius,8px);text-align:center;color:var(--cw-muted,#5b6878)}
.cwq-table{display:grid;border-top:1px solid var(--cw-border,#dfe5ec)}
.cwq-row{display:grid;grid-template-columns:64px 1fr 7rem auto;gap:1rem;align-items:start;padding:1rem 0;border-bottom:1px solid var(--cw-border,#dfe5ec)}
.cwq-row__img img{display:block;width:64px;height:64px;object-fit:cover;border-radius:var(--cw-radius-s,4px)}
.cwq-row__main{display:grid;gap:.35rem}
.cwq-row__main>a{font-weight:600}
.cwq-row__sku{font-size:.8125em;color:var(--cw-muted,#5b6878)}
.cwq-row__remove{align-self:center;border:0;background:none;color:var(--cw-muted,#5b6878);font:inherit;font-size:.875em;text-decoration:underline;cursor:pointer}
@media (max-width:640px){
	.cwq-row{grid-template-columns:56px 1fr;gap:.6rem 1rem}
	.cwq-row__img img{width:56px;height:56px}
	.cwq-row__qty{grid-column:2}
	.cwq-row__remove{grid-column:2;justify-self:start}
}
.cwq-add .cwq-add__qty input{width:7rem}
/* 0.15.2：詢價商品併入聯絡頁的詢價表單 */
.cwq-inform{grid-column:1/-1;margin:0 0 1.5rem;padding:1rem 1.25rem;border:1px solid var(--cw-border,#dfe5ec);border-radius:var(--cw-radius,8px);background:var(--cw-primary-soft,#f3f7fb);scroll-margin-top:110px}
.cwq-inform[hidden]{display:none}
.cwq-inform__title{margin:0 0 .25rem;font-weight:700;display:flex;align-items:center;gap:.5rem}
.cwq-inform__count{display:inline-block;min-width:1.5em;padding:0 .45em;border-radius:999px;background:var(--cw-primary,#0f4c81);color:#fff;font-size:.75em;line-height:1.6;text-align:center}
.cwq-inform__count[hidden]{display:none}
.cwq-inform__hint{margin:0 0 .5rem;font-size:.875em;color:var(--cw-muted,#5b6878)}
.cwq-inform .cwq-table{border-top-color:transparent}
.cwq-inform .cwq-row:last-child{border-bottom:0;padding-bottom:0}
.cwq-inform .cwq-row textarea{min-height:2.75em;height:auto;resize:vertical}
.cwq-inform .cwq-row__img:empty{display:none}
.cwq-inform .cwq-row:has(.cwq-row__img:empty){grid-template-columns:1fr 7rem auto}
@media (max-width:640px){.cwq-inform .cwq-row:has(.cwq-row__img:empty){grid-template-columns:1fr}.cwq-inform .cwq-row:has(.cwq-row__img:empty)>*{grid-column:1}}

/* 0.19.0 B2B 產品頁：數量與備註在上，按鈕列左邊加入詢價清單、右邊查看詢價清單 */
.cwq-add--b2b { display: grid; gap: 0.9em; }
.cwq-add--b2b .cwq-add__fields { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 0.9em; align-items: start; }
.cwq-add--b2b .cwq-add__fields label { display: grid; gap: 0.3em; }
.cwq-add--b2b .cwq-add__fields input, .cwq-add--b2b .cwq-add__fields textarea { width: 100%; box-sizing: border-box; }
.cwq-add--b2b .cwq-add__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8em 1.5em; }
.cwq-add--b2b .cwq-add__view { color: var(--wp--preset--color--primary, currentColor); font-weight: 600; text-decoration: none; }
.cwq-add--b2b .cwq-add__view:hover { text-decoration: underline; }
.cwq-add__count { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; margin-left: 0.2em; padding: 0 0.35em; border-radius: 999px; background: var(--wp--preset--color--primary, #333); color: var(--wp--preset--color--on-primary, #fff); font-size: 0.8em; }
.cwq-add__count[hidden] { display: none; }
@media (max-width: 600px) { .cwq-add--b2b .cwq-add__fields { grid-template-columns: 1fr; } }
