/* LEADERFOAM Multi-SKU RFQ Quote List Basket (Option 1 Frosted Thumbnail Dock) */
.rfq-floating-bar {
  position: fixed;
  left: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid #ddd4c8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1f1b18;
  text-align: left;
  box-shadow: 0 12px 30px rgb(31 27 24 / 14%), 0 2px 6px rgb(31 27 24 / 6%);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, border-color 180ms ease;
}
.rfq-floating-bar[hidden] { display: none !important; }
.rfq-floating-bar:hover {
  transform: translateY(-2px);
  border-color: #c9bcae;
  box-shadow: 0 16px 36px rgb(31 27 24 / 18%), 0 4px 10px rgb(31 27 24 / 8%);
}
.rfq-floating-bar:focus-visible { outline: 2px solid #8c5c39; outline-offset: 3px; }
.rfq-bar-thumbs {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.rfq-bar-thumb {
  width: 38px;
  height: 30px;
  object-fit: cover;
  border-radius: 7px;
  border: 2px solid #ffffff;
  background: #efeae2;
  box-shadow: 0 1px 4px rgb(31 27 24 / 12%);
}
.rfq-bar-thumb + .rfq-bar-thumb {
  margin-left: -12px;
}
.rfq-bar-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rfq-bar-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rfq-bar-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f1b18;
  white-space: nowrap;
}
.rfq-floating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9999px;
  background: #f1e8dd;
  color: #8c5c39;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rfq-floating-meta {
  font-size: 11px;
  line-height: 1.25;
  color: #6e655d;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rfq-bar-cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 7px 11px;
  border-radius: 8px;
  background: #1f1b18;
  color: #faf8f5;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 150ms ease;
}
.rfq-floating-bar:hover .rfq-bar-cta {
  background: #332c27;
}

dialog.rfq-drawer {
  width: min(500px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #cfc5b8;
  border-radius: 12px;
  background: #faf8f5;
  color: #292421;
  box-shadow: 0 20px 50px rgb(29 25 23 / 24%);
  overflow: hidden;
}
dialog.rfq-drawer[open] {
  display: flex;
  flex-direction: column;
}
dialog.rfq-drawer::backdrop {
  background: rgb(29 25 23 / 52%);
  backdrop-filter: blur(2px);
}
.rfq-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  background: #ffffff;
  border-bottom: 1px solid #eae5dc;
}
.rfq-drawer-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1d1917;
}
.rfq-drawer-header p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #78716c;
}
.rfq-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ddd4c8;
  border-radius: 6px;
  background: #faf8f5;
  color: #443e3a;
  cursor: pointer;
}
.rfq-drawer-close:hover { background: #eae5dc; color: #1d1917; }

.rfq-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rfq-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: #78716c;
}
.rfq-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #eae5dc;
  border-radius: 0;
  background: transparent;
}
.rfq-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f2ed;
}
.rfq-item-info { min-width: 0; }
.rfq-item-model {
  font-size: 11px;
  font-weight: 700;
  color: #8c5c39;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.rfq-item-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1d1917;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rfq-item-meta {
  font-size: 11px;
  color: #78716c;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.rfq-moq-note {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f4ece2;
  border: 1px solid #e2d3c2;
  color: #8c5c39;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
}
.rfq-summary-moq-note {
  font-size: 11px;
  line-height: 1.45;
  color: #8c5c39;
  font-weight: 500;
}
.rfq-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.rfq-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d6cec5;
  border-radius: 6px;
  overflow: hidden;
  background: #faf8f5;
}
.rfq-qty-box button {
  width: 26px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #292421;
  font-weight: 700;
  cursor: pointer;
}
.rfq-qty-box button:hover { background: #eae5dc; }
.rfq-qty-box input {
  width: 48px;
  height: 28px;
  border: 0;
  border-inline: 1px solid #eae5dc;
  background: #ffffff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #1d1917;
  font-variant-numeric: tabular-nums;
}
.rfq-remove-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  color: #78716c;
  text-decoration: underline;
  cursor: pointer;
}
.rfq-remove-btn:hover { color: #991b1b; }

.rfq-drawer-footer {
  padding: 14px 20px 18px;
  background: #ffffff;
  border-top: 1px solid #eae5dc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rfq-summary-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f2ede6;
  border: 1px solid #ddd4c8;
  font-size: 12px;
  color: #292421;
  display: grid;
  gap: 6px;
}
.rfq-summary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
  font-variant-numeric: tabular-nums;
}
.rfq-progress-track {
  height: 4px;
  border-radius: 4px;
  background: #dfd6ca;
  overflow: hidden;
}
.rfq-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: #8c5c39;
  transition: width 220ms ease;
}
.rfq-progress-fill.is-over { background: #b45309; }
.rfq-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rfq-primary-btn {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #1f1b18;
  color: #faf8f5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.rfq-primary-btn:hover { background: #332c27; }
.rfq-secondary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.rfq-secondary-row a {
  color: #8c5c39;
  font-weight: 600;
  text-decoration: none;
}
.rfq-secondary-row a:hover { text-decoration: underline; }
.rfq-clear-btn {
  border: 0;
  background: transparent;
  color: #78716c;
  font-size: 12px;
  cursor: pointer;
}
.rfq-clear-btn:hover { color: #1d1917; }

/* Catalog card button styling */
.catalog-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f0ebe3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.catalog-card-cta {
  font-size: 12px;
  font-weight: 600;
  color: #1d1917;
}
.catalog-rfq-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid #cfc5b8;
  border-radius: 8px;
  background: #faf8f5;
  color: #443e3a;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.catalog-rfq-btn:hover {
  border-color: #8c5c39;
  background: #f4efeb;
  color: #1d1917;
}
.catalog-rfq-btn.is-added {
  border-color: #1f1b18;
  background: #1f1b18;
  color: #faf8f5;
}

@media (max-width: 639px) {
  .rfq-floating-bar {
    left: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 88px);
    padding: 6px 8px;
    gap: 8px;
    border-radius: 12px;
  }
  .rfq-bar-thumb {
    width: 32px;
    height: 26px;
    border-radius: 6px;
  }
  .rfq-bar-thumb:nth-child(n+3) {
    display: none;
  }
  .rfq-floating-meta {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rfq-bar-cta {
    padding: 6px 9px;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .rfq-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }
  .rfq-item img {
    width: 56px;
    height: 42px;
  }
  .rfq-item-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
  }
  .rfq-item-controls {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid #f0ebe3;
  }
}
