.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); 
  min-width: 1000px;
  min-height: 309px;
  max-height: 500px;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.modal__title
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}


.modal h2
{
  font-size: 26px;
  color: #000;
}

.dn {
  display: none;
}



.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.added::after
{
  display: none !important;
}


.xs_prev_cart_modal_item
{
  width: 90px;
  border-radius: 10px;
}



.woocommerce .blockUI.blockOverlay::before
{
  display: none !important;
}

.cart-items
{
overflow-y: auto;
}



.cart-item
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.cart-item > div:first-child
{
  display: flex;
  align-items: center;
}

.cart-item-title
{
  font-size: 16px;
  color: #000;
  margin-left: 14px;
  display: inline-block;
  width: 260px;
}

.cart-item>div:nth-child(2) {
  display: flex;
  align-items: center;
}


.remove-item
{
  cursor: pointer;
}

.quantity
{
  width: 93px;
  height: 40px;
  border-radius: 63px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 1px solid #B6BAC2 !important;
}

.quantity span
{
  cursor: pointer;
  display: inline-block;
  font-size: 20px !important;
  color: #19191C;
}

.quantity span svg{
  margin-bottom: -6px;
}

.remove-item svg {
  margin-bottom: -6px;
  margin-left: 10px;
}


.cart-item-price
{
  display: flex;
  flex-direction: column;
  width: 115px;
  align-items: flex-end;
}

.xs_reg
{
  text-decoration: line-through;
  text-decoration-color: #777E90;
  color: #777E90;
  font-size: 20px;
}


.xs_sale 
{
  font-size: 25px;
  color: #FF5151;
  font-weight: 500;
}
.xs_sale .xs_symbol
{
  color: #000;
}

.modal__title span
{
  cursor: pointer;
}

.modal_bottom_line
{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal_bottom_line_summ
{
  font-size: 16px;
  color: #777E90;
}

.modal_bottom_line_summ span
{
  color: #000;
  font-weight: 500;
}

.modal_bottom_line_btns a
{
  display: inline-block;
  width: 250px;
  height: 60px;
  border-radius: 8px;
  text-align: center;
  line-height: 60px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

.modal_bottom_line_btn__lite
{
  background-color: #EFF2FF;
  color: #000 !important;
}

.modal_bottom_line_btn__blue {
  background-color: #120A8F;
  color: #fff !important;
  margin-left: 20px;
  transition: all 0.3s;
}

.modal_bottom_line_btn__lite svg
{
  margin-right: 5px;
  margin-bottom: -2px;
}

.modal_bottom_line_btn__blue svg
{
  margin-left: 5px;
  margin-bottom: -5px;
}



/* Стилизация скролла в Chrome */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(240,240,244,1);
  border-radius: 10px;
  border: 1px solid #fff;
}

/* Стилизация скролла в Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(240,240,244, 1) #fff;
}


@media screen and (max-width:1200px) {
  .modal {
    min-width: 900px !important;
  }
}


@media screen and (max-width:992px) {
  .modal {
    min-width: 760px !important;
    top: 46%;
  }

  .modal_bottom_line
  {
    flex-direction: column;
  }

  .modal_bottom_line_summ
  {
    margin-bottom: 20px;
  }

}


@media screen and (max-width:768px) {
  .modal
  {
    min-width: 576px !important;
    padding: 15px;
  }

  .cart-item-title
  {
    font-size: 14px;
  }

  .quantity
  {
    width: 90px;
  }

  .quantity span
  {
    font-size: 16px !important;
  }

  .xs_prev_cart_modal_item {
    width: 65px;
    border-radius: 10px;
  }

  .modal_bottom_line_btns a {
    display: inline-block;
    width: 216px;
    height: 50px;
    border-radius: 8px;
    text-align: center;
    line-height: 50px;
    text-decoration: none;
    font-size: 14px;
  }

  .modal_bottom_line_btn__lite svg {
    margin-right: 5px;
    margin-bottom: -4px;
  }

  .modal_bottom_line_btn__blue svg {
    margin-left: 5px;
    margin-bottom: -7px;
  }
}


@media screen and (max-width:576px) {
  .modal {
    min-width: 380px !important;
    padding: 10px;
  }

  .cart-item-title {
    font-size: 16px;
    color: #000;
    margin-left: 14px;
    display: inline-block;
    width: 183px;
  }


  .quantity {
    margin: 0 auto;
    display: table;
    border: 1px solid #E4EBF4;
    width: 87px;
    border-radius: 22px;
    padding: 5px;
  }


  .quantity span {
    font-size: 14px !important;
  }


  .xs_sale {
    font-size: 20px;
    color: #FF5151;
    font-weight: 500;
  }

  .xs_reg {
    text-decoration: line-through;
    text-decoration-color: #777E90;
    color: #777E90;
    font-size: 18px;
  }

  .modal_bottom_line_summ {
    font-size: 14px;
    color: #777E90;
  }

  .modal_bottom_line_btns a {
    display: inline-block;
    width: auto;
    height: 40px;
    border-radius: 8px;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    font-size: 12px;
    padding: 0 10px;
  }

  .modal_bottom_line_btn__blue svg
  {
    margin-left: 0;
  }


  .quantity {
    margin: 0 auto;
    display: table;
    border: 1px solid #E4EBF4;
    width: 83px;
    border-radius: 22px;
    padding: 5px;
  }


  .modal h2 {
    font-size: 21px;
    color: #000;
  }

  .cart-item>div:nth-child(2) {
    display: flex;
    align-items: center;
    width: 19%;
  }

  .cart-item>div:first-child {
    display: flex;
    align-items: center;
    flex-direction: column;
    align-items: flex-start;
  }


  .cart-item-title {
    font-size: 16px;
    color: #000;
    margin-left: 0;
    display: inline-block;
    width: 183px;
    margin-top: 5px;
  }


}




@media screen and (max-width:480px) {
  .modal {
    width: 370px !important;
    padding: 10px;
  }

  .remove-item svg {
    margin-bottom: -6px;
    margin-left: 10px;
    width: 26px;
  }

  .quantity 
  {
    height: 27px;
  }

  .quantity svg
  {
    width: 18px;
  }

  .quantity span {
    font-size: 12px !important;
  }

  .cart-item-title {
    font-size: 14px;
    color: #000;
    margin-left: 0;
    display: inline-block;
    width: 138px;
    margin-top: 5px;
    line-height: 16px;
  }


}