.rpo-app,.rpo-gate,.rpo-auth,.rpo-history{--rpo-red:#cf3d3c;--rpo-red-dark:#b72c30;--rpo-purple:#443582;--rpo-dark:#252331;--rpo-muted:#6d6b7d;--rpo-border:#e1e1e9;--rpo-surface:#fff;--rpo-soft:#f5f4f9;color:var(--rpo-dark);font-family:inherit;font-size:14px;line-height:1.5}
.rpo-app *,.rpo-gate *,.rpo-auth *,.rpo-history *{box-sizing:border-box}
.rpo-app button,.rpo-auth button{font-family:inherit;cursor:pointer}
.rpo-app input,.rpo-app select,.rpo-app textarea,.rpo-auth input{font:inherit;color:var(--rpo-dark);background:#fff;border:1px solid #cfd0da;border-radius:7px;max-width:100%;outline:none}
.rpo-app input:focus,.rpo-app select:focus,.rpo-app textarea:focus,.rpo-auth input:focus{border-color:var(--rpo-purple);box-shadow:0 0 0 3px #44358221}
.rpo-eyebrow{font-weight:800;letter-spacing:1.6px;font-size:10px;text-transform:uppercase;color:var(--rpo-red)}
.rpo-app h2,.rpo-gate h2,.rpo-auth h2,.rpo-history h2{margin:7px 0 7px;font-size:clamp(25px,3vw,37px);line-height:1.18;color:var(--rpo-dark);font-weight:800}
.rpo-app h3{margin:5px 0 0;font-size:20px;font-weight:800;color:var(--rpo-dark)}
.rpo-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px;padding-bottom:22px;border-bottom:1px solid var(--rpo-border)}
.rpo-heading p{color:var(--rpo-muted);margin:8px 0 0;font-size:14px}
.rpo-btn,.rpo-app .rpo-btn,.rpo-gate .rpo-btn,.rpo-auth .rpo-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:11px 19px;font-size:13px;font-weight:700;text-decoration:none!important;text-align:center;background:var(--rpo-red);border:1px solid var(--rpo-red);color:#fff;border-radius:7px;transition:background .15s ease,transform .15s ease}
.rpo-btn:hover,.rpo-app .rpo-btn:hover{background:var(--rpo-red-dark);color:#fff;transform:translateY(-1px)}
.rpo-btn:disabled{cursor:not-allowed;opacity:.5;transform:none!important}
.rpo-btn-outline,.rpo-app .rpo-btn-outline,.rpo-gate .rpo-btn-outline{background:#fff;color:var(--rpo-purple);border-color:#bdb5d6}
.rpo-btn-outline:hover,.rpo-app .rpo-btn-outline:hover,.rpo-gate .rpo-btn-outline:hover{background:#f1eff8;color:var(--rpo-purple)}
.rpo-layout{display:grid;grid-template-columns:minmax(0,1fr) 338px;gap:22px;align-items:start}
.rpo-catalogue-panel{background:var(--rpo-surface);border:1px solid var(--rpo-border);border-radius:11px;min-width:0;overflow:hidden;box-shadow:0 8px 30px #25233108}
.rpo-toolbar{display:grid;grid-template-columns:minmax(160px,1.3fr) minmax(160px,1fr) minmax(145px,.77fr) auto;gap:11px;padding:18px;align-items:end;background:#fbfbfd;border-bottom:1px solid var(--rpo-border)}
.rpo-toolbar label{display:block;margin-bottom:6px;font-weight:700;font-size:11px;color:var(--rpo-dark)}
.rpo-toolbar input,.rpo-toolbar select{height:41px;width:100%;padding:8px 11px;font-size:12px}
.rpo-toolbar select{padding-right:28px}
.rpo-reset{border:0;background:none;color:var(--rpo-purple);font-size:12px;font-weight:700;padding:10px 5px;cursor:pointer;white-space:nowrap}
.rpo-reset:hover{text-decoration:underline}
.rpo-statusline{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;color:var(--rpo-muted);font-size:12px}
.rpo-online{display:inline-block;color:#18714e;font-weight:700;font-size:10px;white-space:nowrap}
.rpo-online:before{content:'';display:inline-block;background:#21a66d;width:6px;height:6px;border-radius:50%;vertical-align:middle;margin-right:6px}
.rpo-scroll-table{overflow-x:auto;width:100%;-webkit-overflow-scrolling:touch}
.rpo-products-table{border:0;border-collapse:separate;border-spacing:0;table-layout:auto;width:100%;min-width:760px;font-size:12px;margin:0!important}
.rpo-products-table th{font-size:10px;text-transform:uppercase;letter-spacing:.65px;background:var(--rpo-purple);color:#fff!important;padding:13px 12px;text-align:left;border:0!important;white-space:nowrap;font-weight:800}
.rpo-products-table td{padding:11px 12px;vertical-align:middle;text-align:left;border:0!important;border-bottom:1px solid #ebebf0!important;background:#fff;color:var(--rpo-dark)}
.rpo-products-table tbody tr:nth-child(even) td{background:#fafafc}
.rpo-products-table tbody tr:hover td{background:#f4f1fb}
.rpo-products-table tr.rpo-row-in-basket td{background:#f3f9f6}
.rpo-products-table .rpo-sku{font-weight:800;white-space:nowrap;color:#3a2e73}
.rpo-products-table .rpo-name{min-width:235px;max-width:500px}
.rpo-products-table .rpo-category-cell{min-width:120px;color:#676477}
.rpo-products-table .rpo-cell-qty{width:90px;text-align:center}
.rpo-products-table .rpo-cell-money{text-align:right;white-space:nowrap}
.rpo-products-table .rpo-cell-action{width:108px;text-align:center}
.rpo-products-table .rpo-table-qty{height:34px;width:70px;padding:5px;text-align:center}
.rpo-add,.rpo-app .rpo-add{background:#fff;border:1px solid var(--rpo-red);border-radius:5px;padding:8px 10px;color:var(--rpo-red-dark);font-size:11px;line-height:1.2;font-weight:800;white-space:nowrap}
.rpo-add:hover{background:var(--rpo-red);color:#fff}
.rpo-no-results{padding:44px 15px!important;text-align:center!important;color:var(--rpo-muted)!important}
.rpo-loading{padding:5px 16px;color:var(--rpo-muted);font-size:12px}
.rpo-bottom{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;padding:12px 18px 20px}
.rpo-loaded{font-size:11px;color:var(--rpo-muted)}
/* Keep the order basket visible without allowing it to extend below the viewport.
   The basket itself becomes scrollable when the expanded order form needs more space. */
.rpo-basket{
  --rpo-basket-top:90px;
  position:sticky;
  top:var(--rpo-basket-top);
  max-height:calc(100vh - var(--rpo-basket-top) - 16px);
  max-height:calc(100dvh - var(--rpo-basket-top) - 16px);
  background:#fff;
  border:1px solid var(--rpo-border);
  border-radius:11px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#aaa4c3 #f5f4f9;
  box-shadow:0 8px 32px #2523310d;
}
.rpo-basket::-webkit-scrollbar{width:8px}
.rpo-basket::-webkit-scrollbar-thumb{background:#aaa4c3;border-radius:10px}
.rpo-basket::-webkit-scrollbar-track{background:#f5f4f9}

.rpo-basket-header{position:sticky;top:0;z-index:2;padding:19px 20px;background:var(--rpo-soft);border-bottom:1px solid var(--rpo-border);display:flex;justify-content:space-between;align-items:center}
.rpo-basket-header h3 span{background:var(--rpo-purple);color:white;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;font-size:12px;vertical-align:middle}
.rpo-basket-lines{padding:8px 19px;max-height:260px;overflow-y:auto}
.rpo-empty{color:var(--rpo-muted);line-height:1.6;font-size:12px;padding:15px 0}
.rpo-basket-item{display:flex;gap:12px;justify-content:space-between;padding:13px 0;border-bottom:1px solid #eeeef3}
.rpo-basket-item-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.rpo-basket-item-main strong{font-size:12px;color:var(--rpo-purple)}
.rpo-basket-item-main span{font-size:11px;color:#555264;word-break:break-word}
.rpo-basket-item-main small{font-weight:700;color:#232130}
.rpo-basket-item-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}
.rpo-basket-item-actions label{display:flex;align-items:center;gap:5px;font-size:10px;color:#696579}
.rpo-basket-item-actions input{width:62px;padding:5px 3px;text-align:center;font-size:12px}
.rpo-remove{color:#b93136;background:none;border:0;font-weight:700;font-size:11px;padding:2px}
.rpo-remove:hover{text-decoration:underline}
.rpo-basket-total{display:flex;flex-direction:column;gap:5px;padding:13px 19px;border-bottom:1px solid var(--rpo-border);font-size:12px}
.rpo-basket-total span{color:#585569}
/* Trade-order details stay folded until the customer is ready to submit. */
.rpo-checkout{border-top:1px solid var(--rpo-border)}
.rpo-checkout-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:16px 19px;background:#fcfbfe;color:var(--rpo-dark)}
.rpo-checkout-toggle::-webkit-details-marker{display:none}
.rpo-checkout-toggle:hover{background:#f4f1fb}
.rpo-checkout-toggle:focus-visible{outline:3px solid var(--rpo-purple);outline-offset:-3px}
.rpo-checkout-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.rpo-checkout-copy strong{font-size:13px;font-weight:800}
.rpo-checkout-copy small{font-size:11px;color:var(--rpo-muted);font-weight:400}
.rpo-checkout-arrow{width:9px;height:9px;border-right:2px solid var(--rpo-purple);border-bottom:2px solid var(--rpo-purple);transform:rotate(45deg);transition:transform .16s ease;flex-shrink:0;margin-right:4px}
.rpo-checkout[open] .rpo-checkout-arrow{transform:rotate(225deg)}
.rpo-order-form{padding:15px 19px 21px;border-top:1px solid var(--rpo-border)}
.rpo-order-form h4{font-size:15px;color:var(--rpo-dark);margin:0 0 11px}
.rpo-order-form label,.rpo-auth label{display:block;font-size:11px;font-weight:700;margin:10px 0;color:#3a3948}
.rpo-order-form label strong,.rpo-auth label strong{color:var(--rpo-red)}
.rpo-order-form input,.rpo-order-form textarea,.rpo-auth input{width:100%;display:block;font-size:12px;padding:9px 10px;margin-top:5px}
.rpo-order-form textarea{resize:vertical}
.rpo-place-order{width:100%;margin-top:17px}
.rpo-terms{font-size:10px;line-height:1.6;color:var(--rpo-muted);margin-top:11px}
.rpo-order-feedback{font-size:12px;line-height:1.5;margin-top:10px}
.rpo-order-success{background:#ecf9f3;border-left:3px solid #19885b;padding:10px}
.rpo-order-warning{background:#fff8e7;border-left:3px solid #c38924;padding:10px}
.rpo-order-error{background:#fff1f0;border-left:3px solid #c02e32;padding:10px}
.rpo-mobile-basket,.rpo-close-basket,.rpo-basket-overlay{display:none!important}
.rpo-toast{opacity:0;pointer-events:none;position:fixed;bottom:22px;right:23px;z-index:99999;background:#352c66;color:#fff;border-radius:7px;padding:13px 18px;box-shadow:0 10px 30px #0003;font-size:13px;transform:translateY(12px);transition:.2s ease}
.rpo-toast-visible{opacity:1;transform:translateY(0)}
.rpo-toast-error{background:#a52f39}
.rpo-gate,.rpo-auth{max-width:720px;padding:38px;border:1px solid var(--rpo-border);border-top:5px solid var(--rpo-red);border-radius:10px;background:#fff;box-shadow:0 10px 30px #2523310c;margin:18px auto}
.rpo-gate p,.rpo-auth p,.rpo-history p{color:var(--rpo-muted);line-height:1.7}
.rpo-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:19px}
.rpo-auth{max-width:850px}
.rpo-auth form{margin-top:22px}
.rpo-auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 22px}
.rpo-auth .rpo-honeypot{position:absolute!important;left:-10000px!important;opacity:0!important;height:1px!important;width:1px!important}
.rpo-auth input[type=submit]{width:auto;display:inline-block;background:var(--rpo-red);color:white;padding:12px 22px;border:0}
.rpo-auth #loginform p{max-width:460px}
.rpo-notice{padding:12px 15px;margin:15px 0;border-left:4px solid #7466a0;background:#f5f3fc}
.rpo-notice-success{border-color:#24815b;background:#f0faf4}
.rpo-notice-error{border-color:#bf323e;background:#fff1f2}
.rpo-history-order{padding:15px 16px;border:1px solid var(--rpo-border);margin:10px 0;border-radius:8px}
.rpo-history-order summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;cursor:pointer}
.rpo-history-order table{margin-top:15px!important}
.rpo-history .rpo-status-pill{background:var(--rpo-soft);color:var(--rpo-purple);padding:3px 9px;border-radius:30px;font-size:11px;font-weight:700}
@media(max-width:1280px){.rpo-layout{grid-template-columns:minmax(0,1fr) 290px;gap:14px}.rpo-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.rpo-reset{justify-self:start}}
@media(max-width:990px){
  .rpo-layout{grid-template-columns:1fr}
  .rpo-basket{position:fixed;right:0;top:0;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;max-width:min(430px,92vw);width:100%;z-index:9999;border-radius:0;overflow-x:hidden;overflow-y:auto;transform:translateX(110%);transition:transform .24s ease;padding-bottom:env(safe-area-inset-bottom,0px)}
  .rpo-basket-open{transform:translateX(0)}
  .rpo-mobile-basket{display:inline-flex!important}
  .rpo-close-basket{display:block!important;background:transparent;border:0;color:#39314c;font-size:19px;min-width:32px;min-height:32px}
  .rpo-basket-overlay:not([hidden]){display:block!important;position:fixed;inset:0;z-index:9998;background:#13101ca1}
  .rpo-mobile-cart-open{overflow:hidden}
  .rpo-basket-lines{max-height:35vh;max-height:35dvh}
}
@media(max-width:640px){.rpo-heading{align-items:flex-start;flex-direction:column}.rpo-toolbar{grid-template-columns:1fr 1fr;padding:13px;gap:9px}.rpo-search-wrap{grid-column:1/-1}.rpo-sort-wrap{grid-column:2}.rpo-reset{grid-column:1/-1}.rpo-toolbar label{font-size:10px}.rpo-statusline{padding:11px 12px}.rpo-online{display:none}.rpo-auth-grid{grid-template-columns:1fr}.rpo-gate,.rpo-auth{padding:24px 18px}.rpo-toast{right:12px;left:12px;bottom:12px}.rpo-products-table{min-width:720px}.rpo-heading h2{font-size:27px}}
