/**
 * PrestaHU
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file
 * If you need help please contact info@presta.hu
 *
 * @author    PrestaHU <info@presta.hu>
 * @copyright PrestaHU
 * @license   commercial
 */

.pshuquickorder-skin {
  --pshuquickorder-accent: #1f3a5f;
  --pshuquickorder-accent-text: #ffffff;
  --pshuquickorder-text: #1d1d1f;
  --pshuquickorder-bg: #ffffff;
  --pshuquickorder-focus: #0b57d0;
  --pshuquickorder-radius: 8px;
  --pshuquickorder-line: #d5dbe1;
  --pshuquickorder-soft: #f3f6f8;
  --pshuquickorder-ok: #146c2e;
  --pshuquickorder-ok-bg: #e6f4ea;
  --pshuquickorder-error: #a11d1d;
  --pshuquickorder-error-bg: #fdeaea;
  --pshuquickorder-info: #0b4f8a;
  --pshuquickorder-info-bg: #e7f1fb;
  --pshuquickorder-muted: #52606d;
  --pshuquickorder-line-strong: #7b8794;
  --pshuquickorder-surface: #ffffff;
  --pshuquickorder-shadow: rgba(15, 23, 42, .15);
  box-sizing: border-box;
  max-width: 100%;
  padding: 16px;
  color: var(--pshuquickorder-text);
  background: var(--pshuquickorder-bg);
  border-radius: var(--pshuquickorder-radius);
  font-size: 1rem;
  line-height: 1.5;
  scroll-padding-bottom: 96px;
}
.pshuquickorder-skin *,
.pshuquickorder-skin *::before,
.pshuquickorder-skin *::after { box-sizing: border-box; }
.pshuquickorder-skin [hidden] { display: none !important; }
.pshuquickorder-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pshuquickorder-heading { margin: 0 0 12px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.pshuquickorder-lead { margin: 0 0 16px; }
.pshuquickorder-meta { display: block; color: var(--pshuquickorder-muted); font-size: .875rem; }
.pshuquickorder-hint { margin: 4px 0 12px; color: var(--pshuquickorder-muted); font-size: .875rem; }
.pshuquickorder-empty { margin: 0; color: var(--pshuquickorder-muted); }
.pshuquickorder-error { margin: 8px 0 0; color: var(--pshuquickorder-error); }
.pshuquickorder-noscript,
.pshuquickorder-notice {
  margin: 0 0 16px; padding: 12px 16px; background: var(--pshuquickorder-info-bg);
  color: var(--pshuquickorder-info); border-radius: var(--pshuquickorder-radius);
}

.pshuquickorder-input,
.pshuquickorder-textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--pshuquickorder-text);
  background: var(--pshuquickorder-surface); border: 1px solid var(--pshuquickorder-line-strong); border-radius: var(--pshuquickorder-radius);
}
.pshuquickorder-textarea { min-height: 128px; resize: vertical; }
.pshuquickorder-input[aria-invalid="true"] { border-color: var(--pshuquickorder-error); border-width: 2px; }
.pshuquickorder-field { margin: 0 0 12px; }
.pshuquickorder-label { display: block; margin: 0 0 4px; font-weight: 600; }
.pshuquickorder-check { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 8px; }
.pshuquickorder-check input { width: 20px; height: 20px; }

.pshuquickorder-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px;
  padding: 8px 16px; font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  color: var(--pshuquickorder-text); background: var(--pshuquickorder-surface); border: 1px solid var(--pshuquickorder-line-strong); border-radius: var(--pshuquickorder-radius);
  transition: background-color .15s ease, border-color .15s ease;
}
.pshuquickorder-button:hover:not(:disabled) { background: var(--pshuquickorder-soft); }
.pshuquickorder-button:disabled { cursor: not-allowed; opacity: .55; }
.pshuquickorder-button-primary { color: var(--pshuquickorder-accent-text); background: var(--pshuquickorder-accent); border-color: var(--pshuquickorder-accent); }
.pshuquickorder-button-primary:hover:not(:disabled) { background: var(--pshuquickorder-accent); filter: brightness(1.12); }
.pshuquickorder-button-small { min-height: 44px; padding: 4px 12px; font-size: .875rem; }
.pshuquickorder-button-icon { font-size: 1.5rem; padding: 0; }
.pshuquickorder-link-button {
  padding: 0; min-height: 44px; font: inherit; color: var(--pshuquickorder-accent); text-decoration: underline;
  background: none; border: 0; cursor: pointer;
}
.pshuquickorder-skin a:not(.pshuquickorder-button) { color: var(--pshuquickorder-accent); }
.pshuquickorder-skin a:focus-visible,
.pshuquickorder-skin button:focus-visible,
.pshuquickorder-skin input:focus-visible,
.pshuquickorder-skin select:focus-visible,
.pshuquickorder-skin textarea:focus-visible,
.pshuquickorder-skin [tabindex]:focus-visible,
.pshuquickorder-result:focus-visible {
  outline: 3px solid var(--pshuquickorder-focus); outline-offset: 2px;
}

.pshuquickorder-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; border-bottom: 2px solid var(--pshuquickorder-line); }
.pshuquickorder-tab {
  min-height: 44px; padding: 8px 16px; font: inherit; font-weight: 600; color: var(--pshuquickorder-text); cursor: pointer;
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.pshuquickorder-tab[aria-selected="true"] { color: var(--pshuquickorder-accent); border-bottom-color: var(--pshuquickorder-accent); }
.pshuquickorder-panel { margin: 0 0 24px; }

.pshuquickorder-combo { position: relative; }
.pshuquickorder-suggestions {
  position: absolute; z-index: 20; left: 0; right: 0; margin: 4px 0 0; padding: 4px 0; list-style: none; max-height: 340px; overflow-y: auto;
  background: var(--pshuquickorder-surface); border: 1px solid var(--pshuquickorder-line-strong); border-radius: var(--pshuquickorder-radius); box-shadow: 0 6px 18px var(--pshuquickorder-shadow);
}
.pshuquickorder-suggestion { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; cursor: pointer; }
.pshuquickorder-suggestion[aria-selected="true"],
.pshuquickorder-suggestion:hover { background: var(--pshuquickorder-soft); outline: 2px solid var(--pshuquickorder-accent); outline-offset: -2px; }
.pshuquickorder-suggestion-empty { padding: 12px; color: var(--pshuquickorder-muted); }
.pshuquickorder-suggestion-text { display: block; min-width: 0; }
.pshuquickorder-thumb { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; border-radius: 4px; background: var(--pshuquickorder-soft); }

.pshuquickorder-items-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 8px; }
.pshuquickorder-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 8px; }
.pshuquickorder-problems { margin: 0 0 8px; padding: 8px 12px; color: var(--pshuquickorder-error); background: var(--pshuquickorder-error-bg); border-radius: var(--pshuquickorder-radius); }
.pshuquickorder-actions-extra { margin: 12px 0 0; }
.pshuquickorder-actions-extra:empty { display: none; }
.pshuquickorder-table-wrap { max-width: 100%; overflow-x: auto; }
.pshuquickorder-table { width: 100%; border-collapse: collapse; }
.pshuquickorder-table th { padding: 8px; text-align: left; font-weight: 700; background: var(--pshuquickorder-soft); border-bottom: 2px solid var(--pshuquickorder-line); }
.pshuquickorder-cell { padding: 8px; vertical-align: top; border-bottom: 1px solid var(--pshuquickorder-line); }
.pshuquickorder-num { text-align: right; white-space: nowrap; }
.pshuquickorder-table th.pshuquickorder-num { text-align: right; }
.pshuquickorder-row-problem { background: var(--pshuquickorder-error-bg); }
.pshuquickorder-cell-product { min-width: 240px; }
.pshuquickorder-product { display: block; min-width: 0; }
.pshuquickorder-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.pshuquickorder-cell-qty { width: 110px; }
.pshuquickorder-input-qty { text-align: right; }
.pshuquickorder-cell-remove { width: 56px; }
.pshuquickorder-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.pshuquickorder-similar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.pshuquickorder-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; font-weight: 600; font-size: .875rem; border-radius: 999px;
}
.pshuquickorder-badge-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; font-weight: 800; border-radius: 50%; background: currentColor; }
.pshuquickorder-badge-ok { color: var(--pshuquickorder-ok); background: var(--pshuquickorder-ok-bg); }
.pshuquickorder-badge-error { color: var(--pshuquickorder-error); background: var(--pshuquickorder-surface); border: 1px solid var(--pshuquickorder-error); }
.pshuquickorder-badge-info { color: var(--pshuquickorder-info); background: var(--pshuquickorder-info-bg); }
.pshuquickorder-badge .pshuquickorder-badge-icon { color: var(--pshuquickorder-surface); font-size: .75rem; }

.pshuquickorder-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 12px 0; }
.pshuquickorder-cards { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pshuquickorder-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px; border: 1px solid var(--pshuquickorder-line); border-radius: var(--pshuquickorder-radius); }
.pshuquickorder-card-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.pshuquickorder-bar {
  position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin: 16px -16px -16px; padding: 12px 16px; background: var(--pshuquickorder-surface); border-top: 2px solid var(--pshuquickorder-line); box-shadow: 0 -4px 12px var(--pshuquickorder-shadow);
}
.pshuquickorder-bar-info { min-width: 0; }
.pshuquickorder-bar-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.pshuquickorder-count { margin: 0; font-weight: 700; }
.pshuquickorder-total { margin: 0; color: var(--pshuquickorder-muted); }

.pshuquickorder-progress { margin: 8px 0; background: var(--pshuquickorder-line); border-radius: 4px; }
.pshuquickorder-progress-bar { display: block; height: 8px; width: 0; background: var(--pshuquickorder-accent); border-radius: 4px; transition: width .2s ease; }
.pshuquickorder-progress-text { margin: 4px 0 0; font-size: .875rem; }
.pshuquickorder-result { margin: 12px 0; padding: 12px 16px; border-radius: var(--pshuquickorder-radius); }
.pshuquickorder-result p { margin: 0 0 8px; }
.pshuquickorder-result-ok { color: var(--pshuquickorder-ok); background: var(--pshuquickorder-ok-bg); }
.pshuquickorder-result-error { color: var(--pshuquickorder-error); background: var(--pshuquickorder-error-bg); }
.pshuquickorder-result-info { color: var(--pshuquickorder-info); background: var(--pshuquickorder-info-bg); }

.pshuquickorder-dialog { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .55); }
.pshuquickorder-dialog[hidden] { display: none; }
.pshuquickorder-dialog-body { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 24px; background: var(--pshuquickorder-surface); border-radius: var(--pshuquickorder-radius); }
.pshuquickorder-dialog-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.pshuquickorder-mapper { margin: 12px 0; padding: 12px; background: var(--pshuquickorder-soft); border-radius: var(--pshuquickorder-radius); }
.pshuquickorder-preview { border-collapse: collapse; font-size: .875rem; }
.pshuquickorder-preview td { padding: 4px 8px; border: 1px solid var(--pshuquickorder-line); }

.pshuquickorder-link-wrap { margin: 0 0 8px; }
.pshuquickorder-link { color: var(--pshuquickorder-accent); }

@media (max-width: 767px) {
  .pshuquickorder-skin { padding: 12px; }
  .pshuquickorder-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pshuquickorder-table,
  .pshuquickorder-table tbody,
  .pshuquickorder-table tr,
  .pshuquickorder-table td { display: block; width: 100%; }
  .pshuquickorder-row { margin: 0 0 12px; padding: 8px; border: 1px solid var(--pshuquickorder-line); border-radius: var(--pshuquickorder-radius); }
  .pshuquickorder-cell { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 0; text-align: right; }
  .pshuquickorder-cell[data-label]::before { content: attr(data-label); flex: 0 0 auto; font-weight: 600; text-align: left; }
  .pshuquickorder-cell-product { display: block; min-width: 0; text-align: left; }
  .pshuquickorder-cell-product::before { content: none; }
  .pshuquickorder-cell-qty { width: 100%; }
  .pshuquickorder-cell-qty .pshuquickorder-input { max-width: 120px; }
  .pshuquickorder-cell-remove { justify-content: flex-end; width: 100%; }
  .pshuquickorder-bar { margin: 16px -12px -12px; padding: 8px 12px; }
  .pshuquickorder-bar-buttons { width: 100%; }
  .pshuquickorder-bar-buttons .pshuquickorder-button { flex: 1 1 auto; }
  .pshuquickorder-tab { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pshuquickorder-skin *, .pshuquickorder-skin *::before, .pshuquickorder-skin *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
