.shop-toolbar, .shop-card-buttons, .shop-heading, .shop-summary, .shop-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-toolbar, .shop-card-buttons, .shop-summary { flex-wrap: wrap; }
.shop-heading, .shop-summary { justify-content: space-between; }
.shop-button, .shop-select {
  color: var(--cream);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  min-height: 38px;
  font: inherit;
  font-size: 13px;
}
.shop-button { cursor: pointer; }
.shop-button:disabled { cursor: default; opacity: .45; }
.shop-button:hover:not(:disabled), .shop-button:focus-visible, .shop-select:focus-visible { border-color: var(--gold); }
.shop-add { color: #20160d; background: var(--gold); border-color: var(--gold); }
.shop-select { display: block; width: 100%; margin-bottom: 8px; }
.shop-card-controls { margin-top: 12px; min-width: 0; }
.shop-card-buttons { justify-content: start; }
.premium-model .shop-card-buttons, .handle-card .shop-card-buttons { justify-content: center; }
.shop-panel {
  width: min(900px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--cream);
  background: var(--bg);
}
.shop-panel::backdrop { background: #000b; }
.shop-heading, .shop-content { padding: clamp(12px, 3vw, 24px); }
.shop-heading { border-bottom: 1px solid var(--line); }
.shop-content > p + a { margin-top: 16px; }
.shop-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.shop-product-link { color: var(--gold); }
.shop-row p { margin-top: 4px; font-size: 14px; }
.shop-product-image { width: 54px; height: 62px; object-fit: contain; }
.shop-summary { margin-top: 18px; }
.shop-table-scroll { overflow-x: auto; }
.shop-table { border-collapse: collapse; width: 100%; }
.shop-table th, .shop-table td { min-width: 128px; padding: 10px; border: 1px solid var(--line); text-align: left; }
.shop-table th { font-weight: 600; }
.shop-table thead .shop-product-link { display: block; margin-block: 6px; }
@media (max-width: 1000px) {
  .header-with-shop { flex-wrap: wrap; gap: 12px; padding-block: 10px; }
}
@media (max-width: 690px) {
  .header-with-shop .shop-toolbar { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 510px) {
  .shop-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .shop-row > .shop-quantity { grid-column: 2; }
  .shop-row > button { grid-column: 3; }
}

.shop-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-contact-actions .button { min-height: 38px; padding: 8px 10px; }
.shop-copy-status { color: var(--muted); }
.shop-copy-status:empty { display: none; }
.shop-order-text { width: 100%; min-height: 96px; }
