.web-notification,
.web-addcart{
    width: 90%;
    height: 100%;
    max-width: 500px;
    position: fixed;
    right: -100%;
    top: 0rem;
    background: var(--sg-bglight);
    z-index: 1000000;
    overflow: hidden;
    /* border-radius: 0.8rem 0rem 0rem 0rem; */
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    transition: all ease-in-out 0.3s;
}
body:has(.web-notification-active){
    overflow: hidden;
}
.web-notification-active{
    right: 0rem;
}
.web-notification .web-nfbox{
    height: 100%;
}
.web-notification .head{
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--sg-bglight);
    z-index: 5;
    border-bottom: 1px solid var(--colorBorder-00);
}
.web-notification .head .head-box,
.web-notification .foot .f-box{
    height: 60px;
    margin: 0rem 0.8rem;
}
.web-notification .head h2{
    font-size: 1.2rem;
    font-weight: 500;
}
.web-notification .head .icon{
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid transparent;
    rotate: 134deg;
    background: var(--sg-bgblack);
}
.web-notification .head .icon svg{
    width: 1.6rem;
}
.web-notification .head .icon:active{
    border-color: var(--sg-bgblack);
}
/* .web-notification .head .icon svg{
    rotate: 225deg;
} */
.web-notification .con{
    overflow: hidden;
    overflow-y: scroll;
    height: calc(100% - 105px);
}
.web-notification .con ul.prodcut li{
    /* margin: 0.8rem; */
    position: relative;
    overflow: hidden;
}
.web-notification .con ul.prodcut li::before{
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background: var(--colorBoder-input);
    border-radius: 50rem;
    scale: 0;
    opacity: 0;
    transition: all ease-in-out 0.1s;
}
.web-notification .con ul.prodcut li:active:before{
    opacity: 1;
    scale: 0.9;
}
.web-notification .con ul.prodcut li:hover{
    background: var(--sg-bgblack-01);
}
.web-notification .con ul.prodcut li a{
    padding: 0.5rem;
    align-items: initial;
    position: relative;
    z-index: 2;
}
.web-notification .con ul.prodcut li .img-box{
    width: 60px;
    min-width: 60px;
    height: 60px;
    border-radius: 50rem;
    position: relative;
    --text-: '៥០០$'
}
.web-notification .con ul.prodcut li .img-box::before{
    width: max-content;
    max-width: 200px;
    overflow: hidden;
    left: 40px;
    bottom: 0rem;
    position: absolute;
    content: var(--text-);
    border-radius: 50rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem 0.5rem;
    height: 1.7rem;
    font-size: 0.8rem;
    line-height: 0;
    color: var(--sg-colorlight);
    background: var(--sg-color-brand);
}
.web-notification .con ul.prodcut li .img-box img{
    border-radius: 50rem;
}
.web-notification .con ul.prodcut li .text{
    width: calc(100% - 115px);
    margin-left: 10px;
    padding-top: 5px;
    color: var(--sg-color-text);
}
.web-notification .con ul.prodcut li .text .icon{
    padding: 0rem 0.5rem;
    font-size: 0.9rem;
    width: max-content;
    height: 1.5rem;
    color: var(--sg-colorlight);
    max-width: calc(100% - 10px);
    background: var(--sg-color-brand);
}
.web-notification .con ul.prodcut li .text .date-time{
    padding-top: 0.5rem;
}
.web-notification .con ul.prodcut li .text .date-time p{
    font-size: 0.8rem;
}
.web-notification .con ul.prodcut li .text .date-time svg{
    width: 0.8rem;
}
.web-notification .con ul.slide{
    margin: 0.5rem;
}
.web-notification .con ul.slide .slide-head{
    height: 45px;
}
.web-notification .con ul.slide .slide-head .icon{
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
}
.web-notification .con ul.slide .slide-head svg{
    margin-right: 0.2rem;
}
.web-notification .con ul.slide .slide-head p{
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.web-notification .con ul.slide blockquote{
    padding: 0.8rem 0rem;
    line-height: 1.5;
}
.web-notification .con ul.slide .button{
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--colorBorder-00);
}
.web-notification .con ul.slide .button a{
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    height: 2.8rem;
    font-size: 0.9rem;
    color: var(--sg-colorlight);
    background: var(--sg-color-brand);
    margin-top: 1rem;
}
.web-notification .foot .f-box{
    height: 45px;
    text-align: center;
}
.web-notification .foot .f-box a{
    color: var(--colorText-00);
    font-size: 0.8rem;
}
/* ----------------------------------addcart element----------------------------------- */
.web-addcart{
    overflow: initial;
    top: initial;
    bottom: -100%;
    right: 0.5rem;
    height: auto;
    border-radius: 0.8rem;
    border-top: 3px solid var(--sg-color-brand);
    box-shadow: -6px 3px 6px 0 rgb(0 0 0 / 13%);
    transition: all ease-in-out 0.3s;
}
.web-addcart-active{
    bottom: 0.5rem;
    right: 0.5rem;
}
body:has(.web-notification-active) .web-addcart
{
    bottom: -100%;
}
.web-addcart > .icon{
    right: 0.5rem;
    top: -1rem;
    cursor: pointer;
    position: absolute;
    background: var(--bgcolor-black);
}
.web-addcart-active:has(.con-unactive) > .icon{
    rotate: 180deg;
}
.web-addcart > .icon svg{
    width: 1.2rem;
}
.web-addcart .head-box{
    min-height: 60px;
    margin: 0 0.8rem;
}
.web-addcart .head-box h2{
    font-size: 1.2rem;
    font-weight: 600;
}
.web-addcart .head-box .row-one p,
.web-addcart .head-box .row-tow p{
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
.web-addcart .head-box .row-tow{
    padding: 0.5rem 0rem;
}
.web-addcart .head-box .row-tow p{
    margin: 0 auto;
}
.web-addcart .head-box .row-tow h2{
    font-size: 1rem;
    padding: 0.5rem 0rem;
}
.web-addcart .head-box .row-tow a{
    width: max-content;
    padding: 0rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    height: 2rem;
    color: var(--sg-color-brand);
    background: var(--bgcolor-black);
}
.web-addcart .con .scroll-y{
    overflow: hidden;
    overflow-y: scroll;
    max-height: 50vh;
    height: 0rem;
    transition: all ease-in-out 0.5s;
}
.web-addcart-active .con .scroll-y{
    height: 50vh;
}
body:has(.web-addcart-active .con .scroll-y:hover){
    overflow: hidden;
}
.web-addcart-active .con li{
    margin-left: 60%;
    opacity: 0;
    scale: 0.5;
    transition: all ease-in-out 0.3s;
}
.web-addcart-active .con li.li-active{
    margin-left: 0%;
    opacity: 1;
    scale: 1;
}
.web-addcart-active .con-unactive{
    height: 0vh !important;
}
.web-addcart .scroll-y .list-box{
    align-items: inherit;
    padding: 0.5rem;
}
.web-addcart .scroll-y .list-head{
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--bgcolor-black);
    box-shadow: #ffffffa9 0px 20px 20px 0px;
}
.web-addcart .scroll-y .list-text{
    align-items: flex-start;
    width: calc(100% - 150px);
}
.web-addcart .scroll-y .list-text blockquote{
    margin: 0rem 0.5rem;
}
.web-addcart .scroll-y .list-text h2{
    font-size: 1rem;
    font-weight: 500;
}
.web-addcart .scroll-y .list-text table{
    margin-top: 0.5rem;
}
.web-addcart .scroll-y .list-text button{
    min-width: 2rem;
    min-height: 2rem;
    background: none;
    cursor: pointer;
}
.web-addcart .scroll-y .list-text .icon:hover path{
    stroke: var(--sg-color-brand);
    stroke-width: 2;
}
.web-addcart .scroll-y .list-text .icon:active{
    background: var(--bgcolor-black);
}

/* ---------this is for alert item----------------------  */
.alert {
  display: flex;
  align-items: center;
  max-width: 350px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 15px 20px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999999999999999;
  border-left: 6px solid;
  animation: fadeIn 0.4s ease;
  margin-bottom: 10px;
  font-family: 'Arial', sans-serif;
}

.alert .icon {
  font-size: 20px;
  margin-right: 15px;
}

.alert .text {
  flex-grow: 1;
}

.alert .title {
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.alert .description {
  font-size: 14px;
  color: #777;
}

.alert .close-btn {
  font-size: 18px;
  cursor: pointer;
  color: #aaa;
  margin-left: 10px;
}

.alert .close-btn:hover {
  color: #333;
}

/* Types */
.alert.success { border-color: #4CAF50; }
.alert.success .icon { color: #4CAF50; }
.alert.error { border-color: #f44336; }
.alert.error .icon { color: #f44336; }
.alert.warning { border-color: #FFC107; }
.alert.warning .icon { color: #FFC107; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
