/* RVX 1.2.7: intentionally scoped to the header cart, account and sidebar.
   Keep the V1.2.2–1.2.6 search/cart shells and all other theme surfaces intact. */
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-qty{display:inline-flex;align-items:center;gap:4px;direction:ltr;background:#f6f7fc;border:1px solid #e1e6f2;border-radius:11px;padding:2px;color:#25334d;font-size:13px;font-weight:700;line-height:1.4;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-qty button{display:grid;place-items:center;margin:0!important;padding:0!important;width:34px!important;height:34px!important;min-width:34px!important;border:0!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;color:#364bd4!important;font-size:20px!important;font-weight:600!important;line-height:1!important;cursor:pointer;touch-action:manipulation;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-qty button:disabled{opacity:.35!important;cursor:not-allowed;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-qty-value{min-width:26px;text-align:center;font-variant-numeric:tabular-nums;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal)[aria-busy=true] :is(.rvx127-qty button,.rvx-cart-remove){pointer-events:none;opacity:.6;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-cart-summary{width:100%;max-width:760px;min-width:0;box-sizing:border-box;display:grid;gap:4px;margin:12px auto 0;padding:12px 14px;background:#fff;border:1px solid #e3e8f2;border-radius:13px;color:#263550;font-size:13px;font-weight:650;line-height:1.7;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-cart-summary>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-cart-summary strong{color:#344bd0;font-size:15px;overflow-wrap:anywhere;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-cart-summary small{font-weight:400;color:#64718b;font-size:11px;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-cart-status{padding:8px 16px;background:#fff6e6;color:#684500;font-size:13px;line-height:1.6;flex:0 0 auto;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-cart-status[hidden]{display:none!important;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx-shared-cart-foot .rvx127-cart-summary{margin:0;padding:0;border:0;border-radius:0;flex:1 1 0;}
html body #ravix-desktop-cart-modal#ravix-desktop-cart-modal .rvx-shared-cart-foot.rvx127-has-summary::before{display:none!important;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) :is(button,a):focus-visible,html body #rvx-had-menu :is(button,a):focus-visible,html body #ravix-sidebar :is(button,a):focus-visible{outline:2px solid #536be0!important;outline-offset:2px!important;}
html body #rvx-had-menu#rvx-had-menu{box-shadow:0 20px 50px rgba(20,32,63,.18)!important;border:1px solid #e3e8f2!important;border-radius:19px!important;max-height:var(--rvx127-account-max,75vh)!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;padding:14px 16px 16px!important;}
html body #rvx-had-menu .rvx127-account-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 12px;margin:0 0 12px;border-bottom:1px solid #e7ebf3;color:#17233c;font-size:15px;}
html body #rvx-had-menu .rvx127-account-head button,html body #ravix-sidebar .rvx127-menu-head button{display:grid;place-items:center;flex:none;width:40px;height:40px;margin:0!important;padding:0!important;border:1px solid #e3e8f2!important;border-radius:12px!important;background:#f5f7fd!important;color:#344bd0!important;font-size:24px!important;line-height:1!important;box-shadow:none!important;cursor:pointer;touch-action:manipulation;}
html body #rvx-had-menu .rvx-had-head{background:#f4f6fc!important;padding:12px!important;border-radius:14px!important;margin-bottom:10px!important;}
html body #rvx-had-menu .rvx-had-link{border-radius:10px!important;min-height:42px;}
html body #rvx-had-menu .rvx-had-link:hover{background:#eef2ff!important;transform:none!important;}
html body #ravix-sidebar .rvx127-menu-head{display:none;}
@media(max-width:1050px){
 html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx-shared-cart-foot.rvx127-has-summary{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;}
 html body #mobile-cart-modal .rvx127-qty button{width:36px!important;height:36px!important;min-width:36px!important;}
 html body #ravix-sidebar.ravix-sidebar{width:min(calc(100vw - 76px),390px)!important;border-radius:20px!important;background:white!important;}
 html body #ravix-sidebar .ravix-sidebar-inner{display:flex!important;flex-direction:column!important;border-radius:20px!important;}
 html body #ravix-sidebar .rvx127-menu-head{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:11px 14px;border-bottom:1px solid #e7ebf3;color:#17233c;direction:rtl;font-size:16px;}
 html body #ravix-sidebar .rvx127-menu-head svg{width:22px;height:22px;}
 html body #ravix-sidebar .ravix-sidebar-content{display:flex!important;flex:1 1 0!important;height:auto!important;min-height:0!important;padding:8px 10px!important;overflow:hidden!important;}
 html body #ravix-sidebar #ravix-menu-scroll{width:100%!important;max-height:none!important;height:100%!important;min-height:0;overflow-y:auto!important;overscroll-behavior:contain;}
 html body #ravix-sidebar .ravix-sidebar-phone{position:static!important;flex:0 0 auto!important;margin:0!important;}
}
@media(max-width:1050px) and (max-height:520px){html body #ravix-sidebar .rvx127-menu-head{padding:5px 10px;}html body #ravix-sidebar .rvx127-menu-head button{width:34px;height:34px;}html body #ravix-sidebar .ravix-sidebar-phone{max-height:38%;overflow-y:auto!important;}html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-cart-summary small{display:none;}}
@media(prefers-reduced-motion:reduce){html body #rvx-had-menu,html body #ravix-sidebar,html body #rvx-had-menu *{transition:none!important;animation:none!important;}}

/* RVX 1.2.9 — compact single amount; shared desktop/mobile cart only. */
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-cart-summary > div{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;min-width:0;line-height:1.5;text-align:right;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-cart-summary > div > span{flex:0 0 auto;white-space:nowrap;font-size:13px;color:#526078;font-weight:600;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx127-cart-summary > div > strong{display:block;min-width:0;max-width:100%;margin-inline-start:auto;text-align:left;font-size:15px;line-height:1.5;font-weight:800;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx-shared-cart-foot.rvx127-has-summary .rvx127-cart-summary{flex:1 1 0;margin:0;padding:0;border:0;background:transparent;align-self:center;}
@media(max-width:1050.98px){
 html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx-shared-cart-foot.rvx127-has-summary{gap:8px!important;}
 html body :is(#mobile-cart-modal,#ravix-desktop-cart-modal) .rvx-shared-cart-foot.rvx127-has-summary .rvx127-cart-summary{flex:0 0 auto;align-self:stretch;}
}

/* RVX 1.2.10 — premium compact order total, isolated to the two cart footers. */
html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx-shared-cart-foot.rvx127-has-summary .rvx127-cart-summary{
 box-sizing:border-box!important;display:block!important;min-width:0!important;max-width:100%!important;align-self:stretch!important;margin:0!important;padding:10px 14px!important;border:1px solid #e1e7fa!important;border-radius:14px!important;background:#f5f7ff!important;direction:rtl!important;text-align:right!important;
}
html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx127-cart-summary > div{
 display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;grid-template-areas:"icon label" "icon amount"!important;align-items:center!important;justify-content:start!important;column-gap:12px!important;row-gap:3px!important;min-width:0!important;text-align:right!important;
}
html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx127-cart-summary > div::before{
 content:"";grid-area:icon;align-self:center;width:40px;height:40px;box-sizing:border-box;border:1px solid #dce4fa;border-radius:11px;background:#e9eeff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23364bd4' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14v18l-3-2-4 2-4-2-3 2V3Z M9 8h6 M9 12h6 M9 16h3'/%3E%3C/svg%3E") center/21px no-repeat;
}
html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx127-cart-summary > div > span{
 grid-area:label;display:block!important;min-width:0!important;margin:0!important;padding:0!important;white-space:normal!important;text-align:right!important;color:#465676!important;font-size:13px!important;font-weight:650!important;line-height:1.55!important;
}
html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx127-cart-summary > div > strong{
 grid-area:amount;display:block!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:0!important;text-align:right!important;color:#3045c9!important;font-size:20px!important;font-weight:800!important;line-height:1.55!important;overflow-wrap:anywhere!important;font-variant-numeric:tabular-nums;
}
html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx127-cart-summary strong :is(.woocommerce-Price-amount,bdi){font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important;color:inherit!important;}
html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx127-cart-summary strong .woocommerce-Price-currencySymbol{font-size:.72em!important;font-weight:650!important;color:inherit!important;}
@media(min-width:1051px){
 html body #ravix-desktop-cart-modal#ravix-desktop-cart-modal .rvx-shared-cart-foot.rvx127-has-summary{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,290px)!important;align-items:stretch!important;gap:16px!important;direction:rtl!important;}
 html body #ravix-desktop-cart-modal#ravix-desktop-cart-modal .rvx-shared-cart-foot.rvx127-has-summary .rvx-cart-checkout{width:100%!important;min-height:54px!important;align-self:stretch!important;}
}
@media(max-width:1050.98px){
 html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx-shared-cart-foot.rvx127-has-summary{gap:10px!important;align-items:stretch!important;}
 html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx-shared-cart-foot.rvx127-has-summary .rvx127-cart-summary{width:100%!important;max-width:760px!important;align-self:center!important;flex:0 0 auto!important;}
}
@media(max-width:360px), (max-height:420px){
 html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx-shared-cart-foot.rvx127-has-summary .rvx127-cart-summary{padding:7px 10px!important;}
 html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx127-cart-summary > div{grid-template-columns:34px minmax(0,1fr)!important;column-gap:9px!important;row-gap:1px!important;}
 html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx127-cart-summary > div::before{width:34px;height:34px;background-size:18px;}
 html body :is(#mobile-cart-modal#mobile-cart-modal,#ravix-desktop-cart-modal#ravix-desktop-cart-modal) .rvx127-cart-summary > div > strong{font-size:18px!important;}
}
