.sellios-pos-v1 { color: var(--sellios-ink, #211d35); position: relative; }
.content:has(.sellios-pos-v1) { width: 100%; max-width: none; margin-inline: 0; padding-inline: clamp(24px, 2vw, 32px); }
.content:has(.sellios-pos-v1) #viewRoot, .content:has(.sellios-pos-v1) .sellios-pos-v1 { width: 100%; max-width: none; margin-inline: 0; }
.sellios-pos-v1 .panel { background: #fff; border: 1px solid var(--sellios-border, #e9e4f2); border-radius: 20px; box-shadow: var(--sellios-shadow-sm, 0 8px 24px rgba(43, 29, 82, .05)); }
.pos-v1-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 20px; }
.pos-v1-header h1 { margin: 4px 0 8px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.045em; }
.pos-v1-header p:not(.eyebrow) { margin: 0; color: var(--sellios-text-secondary, #6f6b81); font-size: 16px; }
.pos-v1-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pos-v1-cashier { padding: 9px 12px; border-radius: 999px; background: #f7f4ff; color: #5d38b8; font-size: 12px; font-weight: 700; }
.pos-v1-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); gap: 20px; align-items: start; }
.pos-v1-catalog, .pos-v1-cart, .pos-v1-history, .pos-v1-receipt { padding: 20px; }
.pos-v1-cart { position: sticky; top: 18px; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-gutter: stable; }
.pos-v1-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pos-v1-section-heading h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.025em; }
.pos-v1-section-heading p, .pos-v1-section-heading > span { margin: 0; color: var(--sellios-text-secondary, #6f6b81); font-size: 13px; }
.pos-v1-search-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 10px; margin-bottom: 16px; }
.pos-v1-search input, .pos-v1-search-row select, .pos-v1-field input, .pos-v1-field select, .pos-v1-field textarea, .pos-v1-cash input { box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--sellios-border, #e4deed); border-radius: 11px; background: #fff; color: inherit; font: inherit; }
.pos-v1-field textarea { min-height: 72px; resize: vertical; }
.pos-v1-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }
.pos-v1-product-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 190px; padding: 12px; border: 1px solid var(--sellios-border, #e9e4f2); border-radius: 16px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.pos-v1-product-card:hover, .pos-v1-product-card:focus-within { border-color: #bba3ff; box-shadow: 0 10px 20px rgba(91, 55, 186, .1); }
.pos-v1-product-image { display: grid; place-items: center; overflow: hidden; width: 38px; height: 38px; border-radius: 11px; background: #f5f1ff; color: #7142dd; font-size: 16px; }
.pos-v1-product-image img { width: 100%; height: 100%; object-fit: cover; }
.pos-v1-product-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.pos-v1-product-copy > span, .pos-v1-product-copy small { overflow: hidden; color: var(--sellios-text-secondary, #6f6b81); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pos-v1-product-copy h3 { display: -webkit-box; overflow: hidden; margin: 0; font-size: 14px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pos-v1-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin-top: auto; }
.pos-v1-product-footer strong { flex: 1 1 auto; min-width: max-content; font-size: 14px; white-space: nowrap; }
.pos-v1-product-footer .pos-v1-add { flex: 0 0 auto; min-width: 58px; min-height: 32px; height: 32px; padding: 5px 9px; border-radius: 9px; font-size: 12px; line-height: 1; white-space: nowrap; }
.pos-v1-cart-lines { display: flex; flex-direction: column; gap: 10px; max-height: 310px; overflow: auto; padding: 2px 0 14px; border-bottom: 1px solid var(--sellios-border, #e9e4f2); }
.pos-v1-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pos-v1-cart-line strong { font-size: 13px; }
.pos-v1-cart-line small { display: block; margin-top: 3px; color: var(--sellios-text-secondary, #6f6b81); font-size: 11px; }
.pos-v1-quantity { display: flex; align-items: center; gap: 5px; }
.pos-v1-quantity > span { margin-right: 1px; color: var(--sellios-text-secondary, #6f6b81); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.pos-v1-quantity button { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--sellios-border, #e4deed); border-radius: 8px; background: #fff; color: #51399a; font: inherit; cursor: pointer; }
.pos-v1-quantity b { min-width: 20px; text-align: center; font-size: 12px; }
.pos-v1-fixed-quantity { color: var(--sellios-text-secondary, #6f6b81); font-size: 11px; }
.pos-v1-line-total { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; color: var(--sellios-text-secondary, #6f6b81); font-size: 12px; }
.pos-v1-line-total strong { color: inherit; }
.pos-v1-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.pos-v1-field > label, .pos-v1-field > legend { font-size: 12px; font-weight: 800; }
.pos-v1-field > p, .pos-v1-payment-note, .pos-v1-pending { margin: 0; color: var(--sellios-text-secondary, #6f6b81); font-size: 11px; line-height: 1.45; }
.pos-v1-customer-field { padding: 12px; border: 1px solid #eee9f5; border-radius: 13px; background: #fcfbff; }
.pos-v1-customer-field .text-button { align-self: flex-start; min-height: auto; padding: 3px 0; color: #6136cc; font-size: 12px; }
.pos-v1-field > p strong { color: #483e60; }
.pos-v1-discount { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-v1-payment-section { margin-top: 14px; padding: 14px; border: 1px solid #eee9f5; border-radius: 14px; background: #fcfbff; }
.pos-v1-payment-section h3 { margin: 0 0 10px; font-size: 12px; }
.pos-v1-payment-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pos-v1-payment-option { display: flex; align-items: flex-start; gap: 7px; min-height: 56px; padding: 9px; border: 1px solid var(--sellios-border, #e4deed); border-radius: 12px; background: #fff; color: #41374f; font-size: 12px; cursor: pointer; }
.pos-v1-payment-option input { flex: 0 0 auto; width: 15px; min-height: 15px; margin: 1px 0 0; padding: 0; accent-color: #6e3dde; }
.pos-v1-payment-option > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.pos-v1-payment-option b { line-height: 1.2; }
.pos-v1-payment-option small { color: var(--sellios-text-secondary, #6f6b81); font-size: 10px; font-weight: 600; line-height: 1.25; }
.pos-v1-payment-option:has(input:checked) { border-color: #9470ef; background: #f5f1ff; color: #5a2fc5; box-shadow: inset 0 0 0 1px rgba(148, 112, 239, .18); }
.pos-v1-payment-option.is-disabled { cursor: not-allowed; background: #faf9fc; color: #918aa1; }
.pos-v1-payment-detail { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.pos-v1-cash { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; }
.pos-v1-cash-change { margin: 0; color: #258657; font-size: 12px; font-weight: 700; }
.pos-v1-cash-change.is-short { color: #ba5b13; }
.pos-v1-setup-link { align-self: flex-start; padding: 0; border: 0; background: none; color: #6136cc; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.pos-v1-checkout-summary { position: sticky; bottom: 0; z-index: 1; padding: 12px 0 2px; background: #fff; box-shadow: 0 -12px 18px rgba(255, 255, 255, .96); }
.pos-v1-totals { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.pos-v1-totals div { display: flex; justify-content: space-between; font-size: 13px; }
.pos-v1-totals dt { color: var(--sellios-text-secondary, #6f6b81); }
.pos-v1-totals dd { margin: 0; font-weight: 700; }
.pos-v1-totals .is-total { padding-top: 12px; border-top: 1px dashed var(--sellios-border, #e4deed); font-size: 18px; }
.pos-v1-totals .is-total dt, .pos-v1-totals .is-total dd { color: inherit; font-weight: 800; }
.pos-v1-pay { width: 100%; min-height: 46px; justify-content: center; }
.pos-v1-empty { padding: 28px 12px; color: var(--sellios-text-secondary, #6f6b81); font-size: 13px; text-align: center; }
.pos-v1-history-list { display: flex; flex-direction: column; margin: -4px 0 16px; border-top: 1px solid var(--sellios-border, #e9e4f2); }
.pos-v1-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; width: 100%; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--sellios-border, #e9e4f2); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.pos-v1-history-row small { display: block; margin-top: 3px; color: var(--sellios-text-secondary, #6f6b81); font-size: 11px; }
.pos-v1-history-row > span:nth-child(2) { text-align: right; }
.pos-v1-status { padding: 6px 8px; border-radius: 999px; background: #f5f1ff; color: #6540ca; font-size: 11px; font-weight: 700; }
.pos-v1-receipt { max-width: 700px; }
.pos-v1-receipt-lines { display: flex; flex-direction: column; gap: 9px; padding: 14px 0; border-top: 1px solid var(--sellios-border, #e9e4f2); border-bottom: 1px solid var(--sellios-border, #e9e4f2); }
.pos-v1-receipt-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.pos-v1-receipt-lines .is-total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--sellios-border, #e4deed); font-size: 17px; }
.pos-v1-receipt-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.pos-v1-guard { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(25, 19, 40, .38); }
.pos-v1-guard > div { max-width: 390px; padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(26, 15, 57, .24); }
.pos-v1-guard h2 { margin: 4px 0 8px; }
.pos-v1-guard p:not(.eyebrow) { color: var(--sellios-text-secondary, #6f6b81); line-height: 1.5; }
.pos-v1-guard > div > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.pos-v1-production-state { max-width: 640px; padding: 24px; }
.pos-v1-production-state h1 { margin-top: 0; }

@media (max-width: 980px) { .content:has(.sellios-pos-v1) { width: auto; max-width: 1530px; margin-inline: auto; } .pos-v1-grid { grid-template-columns: 1fr; } .pos-v1-cart { position: static; max-height: none; overflow: visible; } .pos-v1-cart-lines { max-height: none; } .pos-v1-checkout-summary { position: static; box-shadow: none; } }
@media (max-width: 640px) { .pos-v1-header { flex-direction: column; gap: 12px; margin-bottom: 14px; } .pos-v1-header-actions { width: 100%; justify-content: space-between; } .pos-v1-catalog, .pos-v1-cart, .pos-v1-history, .pos-v1-receipt { padding: 14px; border-radius: 15px; } .pos-v1-search-row, .pos-v1-discount, .pos-v1-payment-options { grid-template-columns: 1fr; } .pos-v1-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; } .pos-v1-product-card { min-height: 190px; padding: 9px; } .pos-v1-product-image { width: 32px; height: 32px; font-size: 14px; } .pos-v1-product-copy h3 { font-size: 12px; } .pos-v1-product-footer { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 7px; } .pos-v1-product-footer strong { min-width: 0; } .pos-v1-product-footer .pos-v1-add { justify-self: end; } .pos-v1-history-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; } .pos-v1-status { display: none; } .pos-v1-receipt-actions .button { width: 100%; justify-content: center; } .pos-v1-guard > div > div { flex-direction: column-reverse; } .pos-v1-guard .button { width: 100%; justify-content: center; } }
