html.rizeup-mini-cart-locked,
body.rizeup-mini-cart-locked{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}

body.rizeup-mini-cart-locked{
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
}

body .rizeup-mini-cart{
  position:fixed;
  inset:0;
  z-index:10001;
  pointer-events:none;
}

body .rizeup-mini-cart-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.45);
  opacity:0;
  transition:opacity 0.25s ease;
}

body .rizeup-mini-cart-panel{
  position:absolute;
  top:0;
  right:0;
  width:min(420px, 100vw);
  max-width:100vw;
  min-width:0;
  box-sizing:border-box;
  height:100dvh;
  background:#fff;
  box-shadow:-12px 0 32px rgba(0,0,0,0.18);
  transform:translateX(100%);
  transition:transform 0.25s ease;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

body .rizeup-mini-cart.open{
  pointer-events:auto;
}

body .rizeup-mini-cart.open .rizeup-mini-cart-overlay{
  opacity:1;
}

body .rizeup-mini-cart.open .rizeup-mini-cart-panel{
  transform:translateX(0);
}

body .rizeup-mini-cart-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 20px;
  border-bottom:1px solid rgba(0,0,0,0.08);
}

body .rizeup-mini-cart-close{
  border:0;
  background:#5687AE !important;
  color:#fff !important;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  transition:background-color 0.25s ease;
}

body .rizeup-mini-cart-close:hover,
body .rizeup-mini-cart-close:focus-visible,
body .rizeup-cart-toggle:hover,
body .rizeup-cart-toggle:focus-visible{
  background:#497394 !important;
  color:#fff !important;
}

body .rizeup-mini-cart-content{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  padding:16px 20px calc(170px + env(safe-area-inset-bottom));
  position:relative;
}

body .rizeup-mini-cart-footer{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:14px 20px calc(14px + env(safe-area-inset-bottom));
  background:#fff;
  box-shadow:0 -4px 20px rgba(0,0,0,0.08);
  z-index:40;
}

body .rizeup-mini-cart-footer:empty{
  display:none;
}

body .rizeup-mini-cart-footer p.woocommerce-mini-cart__buttons,
body .rizeup-mini-cart-footer .woocommerce-mini-cart__buttons{
  margin:0;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

body .rizeup-mini-cart-footer p.woocommerce-mini-cart__buttons a,
body .rizeup-mini-cart-footer .woocommerce-mini-cart__buttons a{
  width:100%;
  box-sizing:border-box;
  text-align:center;
  padding:20px 0 20px 0;
  border-radius:10px;
  color:#fff;
  transition:background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

body .rizeup-mini-cart-footer a.rizeup-continue-shopping{
  order:1;
  grid-column:1 / -1;
  background:#BF734A;
}

body .rizeup-mini-cart-footer a.wc-forward:not(.checkout):not(.rizeup-continue-shopping){
  order:2;
  grid-column:1;
  background:#5687AE;
}

body .rizeup-mini-cart-footer a.checkout{
  order:3;
  grid-column:2;
  background:#5687AE;
}

body .rizeup-mini-cart-footer a.rizeup-continue-shopping:hover{
  background:#cc7d52;
  color:#fff !important;
  box-shadow:0 12px 28px rgba(0, 0, 0, 0.22);
  transform:translateY(-1px);
}

body .rizeup-mini-cart-footer a.wc-forward:not(.checkout):not(.rizeup-continue-shopping):hover,
body .rizeup-mini-cart-footer a.checkout:hover{
  background:#497394;
  color:#fff !important;
  box-shadow:0 12px 28px rgba(0, 0, 0, 0.22);
  transform:translateY(-1px);
}

body .rizeup-mini-cart-content .woocommerce-mini-cart__total{
  margin-bottom:20px;
  position:relative;
  z-index:1;
}

body .rizeup-mini-cart-content .remove,
body .rizeup-mini-cart-content .rizeup-remove-item{
  z-index:2;
}

@media (max-width:768px){

  body .rizeup-mini-cart-panel{
    width:calc(100vw - 56px);
    max-width:calc(100vw - 56px);
    border-radius:10px 0 0 10px;
  }

}
