/* Raufoss – header cart button + cart side panel. Doubled classes so the theme/Elementor can't override. */
.rbk-cartwrap{display:flex;align-items:center;margin:0 6px 0 4px}
.rbk-cartbtn.rbk-cartbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:#fff;background:transparent;text-decoration:none;transition:background .2s,transform .2s;-webkit-tap-highlight-color:transparent;box-sizing:border-box}
.rbk-cartbtn.rbk-cartbtn:hover{background:rgba(255,255,255,.12);color:#fff}
.rbk-cartbtn.rbk-cartbtn:focus-visible{outline:2px solid #e3262b;outline-offset:2px}
.rbk-cartbtn.rbk-cartbtn svg{display:block}
.rbk-cartbtn .rbk-badge{position:absolute;top:2px;right:0;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#e3262b;color:#fff;font:700 11px/19px system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;text-align:center;box-shadow:0 0 0 2px #111;box-sizing:border-box}
.rbk-cartbtn .rbk-badge[hidden]{display:none}
.rbk-cartbtn.is-bump{animation:rbk-bump .4s}
@keyframes rbk-bump{40%{transform:scale(1.18)}}

/* Floating button: only when the header is scrolled away and there is something in the cart */
.rbk-cartbtn.rbk-cartbtn.is-float{position:fixed;right:16px;bottom:16px;z-index:9990;width:56px;height:56px;background:#0f1115;box-shadow:0 10px 28px rgba(0,0,0,.28);opacity:0;transform:translateY(16px) scale(.9);pointer-events:none;transition:opacity .2s,transform .2s}
.rbk-cartbtn.rbk-cartbtn.is-float:hover{background:#2b2f36}
.rbk-head-away .rbk-cartbtn.is-float.has-items,.rbk-cartbtn.is-float.is-always.has-items{opacity:1;transform:none;pointer-events:auto}
.rbd-lock .rbk-cartbtn.is-float,.rbk-lock .rbk-cartbtn.is-float{opacity:0!important;pointer-events:none!important}
.rbk-cartbtn.is-float .rbk-badge{top:0;right:0;box-shadow:0 0 0 2px #0f1115}
@media (max-width:1024px){.rbk-cartwrap{order:-1;margin:0 8px 0 0}} /* Left of the menu button on phone/tablet */

/* Panel */
.rbk-lock,.rbk-lock body{overflow:hidden!important}
.rbk-overlay{position:fixed;inset:0;z-index:100010;background:rgba(10,12,16,.5);opacity:0;transition:opacity .25s}
.rbk-overlay.is-on{opacity:1}
.rbk-panel{position:fixed;top:0;right:0;bottom:0;z-index:100011;width:420px;max-width:100%;display:flex;flex-direction:column;background:#fff;color:#0f1115;box-shadow:-20px 0 50px rgba(0,0,0,.2);transform:translateX(100%);transition:transform .25s ease;font-size:15px;line-height:1.4;-webkit-font-smoothing:antialiased}
.rbk-panel.is-on{transform:none}
.rbk-overlay[hidden],.rbk-panel[hidden]{display:none}
.rbk-panel *{box-sizing:border-box}
.rbk-panel button{font:inherit;color:inherit;background:none;border:0;margin:0;padding:0;cursor:pointer;text-transform:none;letter-spacing:normal;box-shadow:none;min-height:0}
.rbk-panel button:disabled{opacity:.35;cursor:default}
.rbk-panel ul{list-style:none;margin:0;padding:0}
.rbk-panel a{text-decoration:none}

.rbk-phead{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 14px 20px;border-bottom:1px solid #e4e7eb}
.rbk-phead h2{margin:0;font-size:20px;font-weight:800;line-height:1.2;color:#0f1115}
.rbk-phead h2 small{font-size:15px;font-weight:600;color:#6b7280}
.rbk-panel .rbk-x{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f4f5f7}
.rbk-panel .rbk-x:hover{background:#e4e7eb}

.rbk-pbody{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:6px 20px}
.rbk-is-busy,.rbk-panel.is-busy .rbk-pbody{opacity:.55;pointer-events:none;transition:opacity .15s}
.rbk-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #eef0f2}
.rbk-item:last-child{border-bottom:0}
.rbk-img{flex:0 0 64px;width:64px;height:64px;border-radius:10px;background:#f4f5f7;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#9aa0a8}
.rbk-img img{width:100%;height:100%;object-fit:contain;display:block}
.rbk-info{flex:1;min-width:0}
.rbk-name{display:block;font-weight:700;font-size:15px;line-height:1.3;color:#0f1115}
.rbk-meta{margin-top:4px!important;font-size:13px;color:#6b7280}
.rbk-meta li{margin:1px 0}
.rbk-meta span{color:#2b2f36;font-weight:600}
.rbk-row{display:flex;align-items:center;gap:10px;margin-top:8px}
.rbk-qty{display:inline-flex;align-items:center;border:1px solid #e4e7eb;border-radius:999px;height:34px}
.rbk-panel .rbk-qty button{width:34px;height:32px;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;border-radius:999px}
.rbk-panel .rbk-qty button:not(:disabled):hover{background:#f4f5f7}
.rbk-qty b{min-width:22px;text-align:center;font-size:14px}
.rbk-qtytx{font-size:14px;color:#6b7280}
.rbk-price{margin-left:auto;font-weight:700;white-space:nowrap}
.rbk-panel .rbk-rm{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#6b7280}
.rbk-panel .rbk-rm:hover{background:#fdeeee;color:#c41d22}

.rbk-pfoot{padding:14px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #e4e7eb;background:#fff}
.rbk-pfoot:empty{display:none}
.rbk-total{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.rbk-total span{color:#6b7280;font-size:14px}
.rbk-total b{font-size:22px;font-weight:800}
.rbk-panel .rbk-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:50px;border-radius:12px;background:#e3262b;color:#fff;font-weight:700;font-size:16px;transition:background .15s}
.rbk-panel .rbk-btn:hover{background:#c41d22;color:#fff}
.rbk-panel .rbk-btn.is-ghost{background:#fff;color:#0f1115;border:1px solid #d6d9de;margin-top:8px}
.rbk-panel .rbk-btn.is-ghost:hover{background:#f4f5f7;color:#0f1115}
.rbk-pay{margin:10px 0 0;text-align:center;font-size:13px;color:#6b7280}
.rbk-msg{margin:0 0 8px;color:#c41d22;font-size:14px}
.rbk-msg:empty{display:none}
.rbk-err{margin:10px 0 0;padding:10px 12px;border-radius:10px;background:#fdf3e4;color:#b45309;font-size:14px}

.rbk-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:40px 8px}
.rbk-empty-ic{width:64px;height:64px;border-radius:50%;background:#f4f5f7;display:flex;align-items:center;justify-content:center;color:#6b7280;margin-bottom:14px}
.rbk-empty b{font-size:18px}
.rbk-empty-tx{color:#6b7280;margin:6px 0 18px}
.rbk-empty .rbk-btn.is-ghost{margin-top:8px}
.rbk-wait{display:flex;align-items:center;gap:10px;justify-content:center;padding:40px 0;color:#6b7280}
.rbk-spin{width:18px;height:18px;border:2px solid #e4e7eb;border-top-color:#e3262b;border-radius:50%;animation:rbk-spin .7s linear infinite}
@keyframes rbk-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.rbk-panel,.rbk-overlay,.rbk-cartbtn{transition:none!important;animation:none!important}}
