.hfs-orders{--hfs-accent:#315ca5;--hfs-ink:#243447;--hfs-line:#dce4ee;direction:rtl;font-family:inherit;color:var(--hfs-ink);line-height:1.85;max-width:1120px;margin-inline:auto;min-width:0}
.hfs-orders *{box-sizing:border-box;min-width:0}
.hfs-orders h1,.hfs-orders h2,.hfs-orders h3{color:#19324e;line-height:1.55;margin:0 0 12px}
.hfs-orders h2{font-size:clamp(20px,2.1vw,27px)}
.hfs-orders h3{font-size:18px}
.hfs-orders p{margin:8px 0 16px}
.hfs-orders a{color:var(--hfs-accent);overflow-wrap:anywhere}
.hfs-orders .hfs-orders-head{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:16px;margin:20px 0}
.hfs-orders .hfs-orders-head>div{flex:1 1 240px}
.hfs-orders .hfs-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 17px;background:var(--hfs-accent);color:#fff;border:1px solid var(--hfs-accent);border-radius:10px;font:inherit;font-weight:600;text-decoration:none;line-height:1.5;cursor:pointer;white-space:normal;text-align:center;max-width:100%}
.hfs-orders .hfs-button.secondary{background:#fff;color:var(--hfs-accent);border-color:#bbcbe1}
.hfs-orders :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #b16b0a;outline-offset:3px}
.hfs-orders .hfs-tabs{display:flex;flex-wrap:wrap;gap:8px 22px;border-bottom:1px solid var(--hfs-line);margin:16px 0 24px}
.hfs-orders .hfs-tabs a{display:inline-flex;align-items:center;min-height:44px;padding:8px 1px;text-decoration:none;border-bottom:3px solid transparent}
.hfs-orders .hfs-tabs a[aria-current]{border-bottom-color:var(--hfs-accent);font-weight:700}
.hfs-orders .hfs-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;background:#f5f8fc;border:1px solid var(--hfs-line);border-radius:13px;padding:16px;margin-block:18px}
.hfs-orders label{display:block;font-weight:500;margin-bottom:12px}
.hfs-orders .hfs-filters label{flex:1 1 170px;margin:0}
.hfs-orders input:not([type=hidden],[type=checkbox]),.hfs-orders select,.hfs-orders textarea{display:block;width:100%;max-width:100%;min-height:44px;border:1px solid #b7c5d7;border-radius:8px;background:#fff;color:var(--hfs-ink);font:inherit;line-height:1.5;padding:10px;margin-top:6px}
.hfs-orders textarea{resize:vertical}
.hfs-orders .hfs-check{display:flex;align-items:center;gap:10px;min-height:44px}
.hfs-orders .hfs-check input{width:20px;height:20px}
.hfs-orders .hfs-order-grid,.hfs-orders .hfs-offers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.hfs-orders .hfs-order-card,.hfs-orders .hfs-offer,.hfs-orders .hfs-note,.hfs-orders .hfs-panel{background:#fff;border:1px solid var(--hfs-line);border-radius:14px;padding:20px;overflow-wrap:anywhere}
.hfs-orders .hfs-order-card{display:flex;flex-direction:column;gap:8px}
.hfs-orders .hfs-card-top,.hfs-orders .hfs-card-bottom,.hfs-orders .hfs-note header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.hfs-orders .hfs-card-top>span:first-child{font-size:13px}
.hfs-orders .hfs-card-bottom{margin-top:auto;padding-top:12px}
.hfs-orders .hfs-order-card h3{margin:5px 0}
.hfs-orders .hfs-order-card h3 a{text-decoration:none}
.hfs-orders .hfs-state{display:inline-flex;align-items:center;gap:5px;border:1px solid #c8d8ef;border-radius:7px;padding:4px 10px;font-size:13px;background:#eff5ff;color:#244d90;white-space:normal}
.hfs-orders .hfs-state.is-completed{background:#edf8f1;color:#23603a;border-color:#bedac8}
.hfs-orders .hfs-state.is-waiting,.hfs-orders .hfs-state.is-pending{background:#fff7e7;color:#795410;border-color:#e9d7ad}
.hfs-orders .hfs-state.is-cancelled{background:#fff0f0;color:#953333;border-color:#ebc5c5}
.hfs-orders .hfs-muted,.hfs-orders small{color:#566577;font-size:13px}
.hfs-orders .hfs-unread{color:#80520b;font-size:13px}
.hfs-orders .hfs-seen{display:inline-block;color:#24643c;font-size:13px}
.hfs-orders .hfs-order-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0;padding:16px;background:#f5f8fc;border-radius:12px}
.hfs-orders dt{color:#566577;font-size:13px}
.hfs-orders dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere}
.hfs-orders .hfs-panel,.hfs-orders .hfs-notes{margin-block:20px}
.hfs-orders details>summary{cursor:pointer;min-height:44px;padding:8px 0;font-weight:600}
.hfs-orders .hfs-panel form{max-width:780px}
.hfs-orders .hfs-note{margin:15px 0;border-inline-start:4px solid #b6cce8}
.hfs-orders .hfs-note header small{font-size:12px}
.hfs-orders .hfs-note-body{white-space:normal;overflow-wrap:anywhere;padding:16px 0;line-height:2}
.hfs-orders .hfs-note footer{padding-top:12px;border-top:1px solid #eef1f5}
.hfs-orders .hfs-note form{margin:0}
.hfs-orders .hfs-note-edit{margin-top:15px;border-top:1px solid var(--hfs-line);padding-top:8px}
.hfs-orders .hfs-revision{padding:14px;margin:10px 0;background:#f5f7fa;border-radius:8px}
.hfs-orders .hfs-revision small{display:block}
.hfs-orders .hfs-edited{font-size:12px;color:#665485;margin-bottom:0}
.hfs-orders .hfs-feedback{padding:12px 16px;background:#edf4ff;border:1px solid #c6d8f1;border-radius:10px;margin:16px 0}
.hfs-orders .hfs-empty{padding:24px;background:#f6f8fb;border:1px dashed #c6d1df;border-radius:12px;text-align:center}
.hfs-orders .hfs-pagination{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.hfs-orders .hfs-back{display:inline-flex;min-height:44px;align-items:center;text-decoration:none}
.hfs-orders .hfs-order-number{margin:0;font-size:13px;text-align:start}
.hfs-orders .hfs-offer{display:flex;flex-direction:column;gap:8px}
.hfs-orders .hfs-offer .hfs-button{margin-top:auto}
.hfs-orders .hfs-offer small{display:block}
.hfs-orders .hfs-price{font-size:22px}
.hfs-orders.hfs-sale-box{padding:20px;background:#f5f8fd;border:1px solid #dce5f1;border-radius:15px;margin:24px 0}
.hfs-orders .hfs-coupon{margin-top:16px}
.hfs-orders .hfs-coupon input{max-width:360px}
.hfs-orders .hgs-customer-identity{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:700px){.hfs-orders .hfs-order-grid,.hfs-orders .hfs-offers,.hfs-orders .hfs-order-facts{grid-template-columns:1fr}.hfs-orders .hfs-panel,.hfs-orders .hfs-note,.hfs-orders .hfs-order-card,.hfs-orders .hfs-offer{padding:16px}.hfs-orders .hfs-filters label{flex-basis:100%}.hfs-orders .hfs-filters>.hfs-button{width:100%}.hfs-orders .hfs-orders-head>.hfs-button{width:100%}.hfs-orders.hfs-sale-box{padding:14px}}

.hfs-orders .hfs-request-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hfs-orders .hfs-files{padding-inline-start:22px;margin-block:12px;overflow-wrap:anywhere}
.hfs-orders .hfs-note.is-customer{border-inline-start-color:#789c89;background:#f7fbf9}
.hfs-orders .hfs-note.is-manager{border-inline-start-color:#6b8cbb}
.hfs-orders .hfs-invoice{background:#f8fafc;border:1px solid var(--hfs-line);border-radius:12px;padding:20px}
.hfs-orders .hfs-state.is-awaiting_payment,.hfs-orders .hfs-state.is-pending_review{background:#fff7e7;color:#795410;border-color:#e9d7ad}
.hfs-orders input[type=file]{width:100%;padding:10px;background:#fff;white-space:normal}
.hfs-orders .hfs-complete{margin-block:18px}
#hfs-request{scroll-margin-top:100px}
@media(max-width:600px){.hfs-orders .hfs-request-fields{grid-template-columns:1fr}.hfs-orders .hfs-invoice{padding:14px}.hfs-orders form>.hfs-button{width:100%}}

/* Direct products: native forms share the existing storefront buttons. */
.hfs-product-buy{margin:0;display:flex;max-width:100%}
.hfs-product-buy button{font:inherit;cursor:pointer;border:0;min-height:44px}
.hfs-product-buy button:focus-visible,.hfs-my-products a:focus-visible{outline:3px solid #b16b0a;outline-offset:3px}
.hfs-product-buy button:disabled{opacity:.65;cursor:wait}
.hfs-product-buy .hps-detail-order-button{width:100%;justify-content:center}
.hfs-purchase-unavailable{display:block;padding:10px;color:#566577;font-size:14px}
.hfs-my-products{direction:rtl;color:#213047;line-height:1.9}
.hfs-purchases{display:grid;gap:14px}
.hfs-purchase{border:1px solid #dce4ee;border-radius:12px;background:#fff;padding:18px 20px;overflow-wrap:anywhere}
.hfs-purchase h3{margin:0 0 12px;font-size:17px}
.hfs-purchase dl{margin:0;display:flex;flex-wrap:wrap;gap:12px 36px}
.hfs-purchase dt{font-size:13px;color:#566577}
.hfs-purchase dd{margin:0;font-size:14px;font-weight:600}
.hfs-purchase-pages{display:flex;gap:24px;flex-wrap:wrap;margin-top:20px}
@media(max-width:600px){.hfs-purchase{padding:16px}.hfs-purchase dl{display:grid;gap:10px}}
