/*
 * RFQ Drawer block.
 *
 * Ported from HTML/productlisting.html unchanged.
 */

.rfq { position: fixed; right: 0; top: 34%; z-index: 60; display: flex; align-items: flex-start; }
/* The drawer is printed hidden and revealed by view.js once the list has been
   read, so it never flashes an empty state before the count appears. */
.rfq[hidden] { display: none; }

.rfq-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; background: #10469E; border: none; border-radius: 4px 0 0 4px; padding: 16px 11px; color: #fff; cursor: pointer; box-shadow: -2px 2px 12px rgba(12,52,116,0.25); }
.rfq-tab:hover { background: #0C3474; }
.rfq-word { font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; writing-mode: vertical-rl; }
.rfq-badge { position: absolute; top: -7px; left: -7px; min-width: 21px; height: 21px; border-radius: 20px; background: #F04E1D; color: #fff; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.rfq-badge[hidden] { display: none; }

.rfq-panel { width: 320px; background: #10469E; color: #fff; border-radius: 4px 0 0 4px; box-shadow: -4px 4px 20px rgba(12,52,116,0.3); overflow: hidden; }
.rfq-panel[hidden] { display: none; }
.rfq-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.rfq-head h2 { font-size: 17px; font-weight: 700; margin: 0; color: #fff; }
.rfq-x { background: none; border: none; color: #C9DCF8; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.rfq-x:hover { color: #fff; }
.rfq-body { max-height: 46vh; overflow-y: auto; padding: 0 12px 12px; }

.rfq-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border-radius: 3px; overflow: hidden; margin: 0; }
.rfq-tbl[hidden] { display: none; }
.rfq-tbl th { background: #3B7DD8; color: #fff; font-weight: 700; padding: 8px 6px; font-size: 12px; }
.rfq-tbl td { border-bottom: 1px solid #EDEFF2; padding: 8px 6px; text-align: center; color: #3C4654; }
.rfq-thumb { width: 54px; height: 40px; margin: 0 auto; background: #F4F7FB; border-radius: 2px; overflow: hidden; }
.rfq-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rfq-model { font-weight: 700; color: #10469E; }
/* padding:0 and flex centring undo the Underscores button rule, as on .sel-x. */
.rfq-del { width: 26px; height: 24px; padding: 0; border: none; border-radius: 3px; background: #D64B3C; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rfq-del:hover { background: #B93A2C; }

.rfq-empty { font-size: 12.5px; line-height: 1.6; color: #C9DCF8; margin: 4px 4px 10px; }
.rfq-empty[hidden] { display: none; }
.rfq-cta,
.rfq-cta:visited { display: block; margin: 0 12px 14px; background: #fff; color: #10469E; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; padding: 13px 10px; border-radius: 3px; text-decoration: none; }
.rfq-cta:hover { background: #EBF2FC; color: #0C3474; }
.rfq-cta[hidden] { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.rfq { top: auto; bottom: 0; left: 0; right: 0; flex-direction: column; }
	.rfq-tab { flex-direction: row; width: 100%; border-radius: 0; justify-content: center; padding: 13px; }
	.rfq-word { writing-mode: horizontal-tb; }
	.rfq-badge { position: static; }
	.rfq-panel { width: 100%; border-radius: 0; order: -1; }
	.rfq-body { max-height: 38vh; }
}
