.of-page{width:100%;min-width:0;padding:2px 0 20px;color:var(--order-text);color-scheme:var(--order-scheme);font:14px/1.6 TP921Sarabun,sans-serif}
.of-page *{box-sizing:border-box}.of-page [hidden]{display:none!important}.of-page button,.of-page input,.of-page select,.of-page textarea{font:inherit}.of-page button{cursor:pointer;touch-action:manipulation}.of-page button:focus-visible,.of-page a:focus-visible{outline:3px solid var(--order-focus);outline-offset:3px}
.of-page select option,.of-page select optgroup{background:var(--order-surface);color:var(--order-heading)}.of-page select option:disabled{color:var(--order-muted)}.of-page select option:checked{background:var(--order-primary);color:var(--order-on-primary)}
.of-form{display:grid;grid-template-columns:minmax(0,1fr) 304px;gap:20px;align-items:start;width:100%;margin:0;overflow:visible}.of-main{display:flex;flex-direction:column;gap:18px;min-width:0}.of-section{padding:22px;border:1px solid var(--order-border);border-radius:14px;background:var(--order-surface)}.of-section-heading{display:flex;align-items:center;gap:12px;margin-bottom:22px}.of-step{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid var(--order-tint-border);border-radius:11px;background:var(--order-tint);color:var(--order-accent);font-size:13px}.of-section-heading>div{flex:1;min-width:0}.of-section h2,.of-summary h2{margin:0;color:var(--order-heading);font-size:17px;font-weight:600}.of-section-heading p,.of-summary-top p{margin:3px 0 0;color:var(--order-muted);font-size:12px}.of-required-hint{align-self:flex-start;color:var(--order-muted);font-size:11px;white-space:nowrap}.of-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.of-field{min-width:0}.of-field-wide{grid-column:1/-1}.of-field>label{display:flex;align-items:center;gap:5px;margin:0 0 8px;color:var(--order-text);font-size:13px}.of-field>label>span{color:var(--order-accent)}.of-field>label small{margin-left:4px;color:var(--order-muted);font-size:11px}.of-field>small{display:block;margin-top:7px;color:var(--order-muted);font-size:11px}
.of-page .input{display:block;width:100%;min-width:0;min-height:46px;margin:0;padding:11px 13px;border:1px solid var(--order-input-border);border-radius:9px;outline:0;background:var(--order-input);color:var(--order-heading);box-shadow:none;line-height:22px}.of-page .input::placeholder{color:var(--order-muted);opacity:1}.of-page .input:focus{border-color:var(--order-focus);box-shadow:0 0 0 3px var(--order-focus-ring)}.of-page select.input{padding-right:30px}.of-page textarea.input{height:auto;resize:vertical;min-height:86px;line-height:1.8}.of-page input[type=checkbox],.of-page input[type=radio]{accent-color:var(--order-primary)}
.of-customer-combobox{position:relative}.of-customer-options{position:absolute;top:calc(100% + 6px);right:0;left:0;z-index:60;max-height:240px;padding:5px;overflow-y:auto;border:1px solid var(--order-input-border);border-radius:10px;background:var(--order-raised);box-shadow:0 14px 35px var(--order-shadow)}.of-page .of-customer-options [data-customer-option]{min-height:44px;padding:10px!important;border:0!important;border-radius:6px;background:transparent!important;color:var(--order-heading)!important;overflow-wrap:anywhere}.of-page .of-customer-options [data-customer-option]:hover,.of-page .of-customer-options [data-customer-option]:focus-visible{background:var(--order-hover)!important}
.of-item-count{padding:4px 9px;border-radius:6px;background:var(--order-badge);color:var(--order-text);font-size:12px;white-space:nowrap}.of-page .auto-order-items-shell{margin:0;gap:15px}.of-page .auto-order-items-list{gap:18px}.of-page .auto-order-item-card{padding:18px;border:1px solid var(--order-button-border);border-radius:11px;background:var(--order-input)}.of-page .auto-order-item-head{margin-bottom:18px;flex-wrap:nowrap}.of-page .auto-order-item-name{color:var(--order-heading);font:600 15px/1.6 TP921Sarabun,sans-serif}.of-page .auto-order-item-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important}.of-page .auto-order-item-grid>div{order:0;grid-column:span 1;min-width:0}.of-page .auto-order-grid-qty{grid-column:1/-1!important}.of-page .auto-order-item-grid label.small{display:block;margin-bottom:8px;color:var(--order-text);font-size:12px}.of-page .auto-order-item-grid>div:has(>[required])>label::after{content:' *';color:var(--order-accent)}.of-page .auto-order-item-grid .input{background:var(--order-surface)}.of-page .auto-order-qty-row{display:grid;grid-template-columns:1fr;gap:12px}.of-page .auto-order-qty-types{gap:9px}.of-page .auto-order-radio{min-height:40px;min-width:95px;padding:8px 12px;border:1px solid var(--order-button-border);border-radius:8px;background:var(--order-surface);color:var(--order-text);font-size:13px}.of-page .auto-order-radio:has(:checked){border-color:var(--order-tint-border);background:var(--order-tint);color:var(--order-accent)}.of-page .auto-order-radio input{width:16px;height:16px;margin:0}.of-page .auto-order-qty-inputs{display:grid;grid-template-columns:1fr 1fr;gap:16px}.of-page .auto-order-qty-inputs .input{width:100%;min-width:0}.of-page .auto-order-qty-inputs>div>span{display:block;margin-bottom:7px;color:var(--order-muted);font-size:12px}.of-page .auto-order-existing-image{max-width:100%}.of-page .auto-order-existing-image-preview{max-height:170px;border-color:var(--order-button-border)}.of-page .auto-order-item-grid input[type=file]{padding:9px 10px;font-size:12px;overflow:hidden}.of-page input[type=file]::file-selector-button{margin:0 10px 0 0;padding:4px 8px;border:0;border-radius:4px;background:var(--order-badge);color:var(--order-text);font:inherit;cursor:pointer}
.of-page .btn[data-auto-order-remove-item]{min-height:36px;padding:5px 10px;border:1px solid var(--order-error-border);border-radius:7px;background:var(--order-error-bg);color:var(--order-error);font-size:12px}.of-page .btn[data-auto-order-add-item]{display:flex;justify-content:center;align-items:center;width:100%;min-height:46px;padding:10px 15px;border:1px dashed var(--order-tint-border);border-radius:9px;background:var(--order-tint);color:var(--order-accent);font-size:14px}.of-page .btn[data-auto-order-add-item]:hover{background:var(--order-hover)}
.of-summary{position:sticky;top:0;min-width:0;padding:22px;border:1px solid var(--order-button-border);border-radius:14px;background:var(--order-surface)}.of-summary-top{display:flex;align-items:center;gap:11px;margin-bottom:22px}.of-summary-icon{display:grid;place-items:center;flex:none;width:39px;height:42px;border-radius:10px;background:var(--order-accent-icon);color:var(--order-accent);font-size:17px}.of-summary-quantity{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;padding:12px;border:1px solid var(--order-border);border-radius:8px;background:var(--order-input);color:var(--order-muted);font-size:12px}.of-summary-quantity b{color:var(--order-heading);font-weight:600}.of-summary-lines{margin:0}.of-summary-lines>div{display:flex;justify-content:space-between;gap:10px;margin:12px 0;color:var(--order-muted);font-size:13px}.of-summary-lines dt{font-weight:400}.of-summary-lines dd{margin:0;color:var(--order-text);text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.of-summary-lines .of-price-start{margin-top:16px;padding-top:16px;border-top:1px solid var(--order-border)}.of-vat{display:flex;align-items:flex-start;gap:10px;margin:18px 0 14px;padding:13px 11px;border:1px solid var(--order-tint-border);border-radius:9px;background:var(--order-tint);color:var(--order-accent);font-size:13px;cursor:pointer}.of-vat input{width:19px;height:19px;margin:2px 0 0;flex:none}.of-vat small{display:block;margin-top:5px;color:var(--order-muted);font-size:10px}.of-grand-total{margin-top:18px;padding-top:18px;border-top:1px solid var(--order-button-border)}.of-grand-total>span{display:block;color:var(--order-text);font-size:13px}.of-grand-total strong{display:block;margin-top:6px;color:var(--order-accent);font-size:29px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.of-summary-hint{margin:11px 0 20px;color:var(--order-muted);font-size:11px;line-height:1.8}.of-submit{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--order-primary-border);border-radius:10px;background:var(--order-primary);color:var(--order-on-primary);font-size:15px!important;font-weight:600!important}.of-submit:hover{background:var(--order-primary-hover)}.of-submit:disabled{opacity:.65;cursor:wait}.of-cancel{width:100%;min-height:42px;margin-top:8px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--order-muted);font-size:12px!important}.of-cancel:hover{background:var(--order-raised)}.of-alert{display:flex;align-items:flex-start;gap:10px;margin-bottom:18px;padding:13px 16px;border:1px solid var(--order-error-border);border-radius:10px;background:var(--order-error-bg);color:var(--order-error);line-height:1.8}.of-alert-success{border-color:var(--order-success-border);background:var(--order-success-bg);color:var(--order-success)}
@media(max-width:1200px){.of-form{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.of-section,.of-summary{padding:18px}.of-fields{grid-template-columns:1fr}.of-field-wide{grid-column:auto}.of-required-hint{display:none}}
@media(max-width:1000px){.of-form{grid-template-columns:1fr}.of-summary{position:static}.of-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.of-field-wide{grid-column:1/-1}.of-summary-quantity{max-width:none}}
@media(max-width:600px){.of-form{gap:16px}.of-main{gap:14px}.of-section,.of-summary{padding:17px 15px}.of-fields{grid-template-columns:1fr;gap:17px}.of-field-wide{grid-column:auto}.of-section-heading{gap:10px;margin-bottom:20px}.of-step{width:33px;height:35px;border-radius:9px}.of-section h2,.of-summary h2{font-size:16px}.of-section-heading p{font-size:11px}.of-page .input{font-size:16px;min-height:48px}.of-page .auto-order-item-card{padding:14px 12px}.of-page .auto-order-item-grid{grid-template-columns:1fr}.of-page .auto-order-item-grid>div{grid-column:1/-1}.of-page .auto-order-qty-inputs{gap:10px}.of-page .auto-order-item-grid input[type=file]{font-size:12px}.of-page .btn[data-auto-order-remove-item]{min-height:44px}.of-page .auto-order-item-head{margin-bottom:14px}.of-summary{margin-bottom:10px}.of-submit{min-height:50px}}
