.base_layout {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 2147483646 !important;
  border: none;
  width: 85px;
  height: 85px;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  transition: .25s;
}

#whatsapp_box_identifier {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999998;
  border: none;
  margin-bottom: 1rem;
  margin-left: 1.5rem;
}

.base_layout.new_style_bot {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 2147483646 !important;
  border: none;
  width: 85px;
  height: 85px;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
  transition: .25s;
}

.modal-image-container {
  align-items: center;
  background-color: #fff;
  border-radius: 1.5rem;
  border: 1px solid #d4d4d4;
  display: flex;
  height: 50%;
  justify-content: center;
  left: 50%;
  padding: 4rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  z-index: 2147483649;
}

.modal-sucursal-container {
  background-color: #fff;
  border-radius: 1rem;
  border: 1px solid #d4d4d4;
  height: 50%;
  left: 50%;
  padding: 2.5rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  z-index: 2147483649;
  overflow-y: auto;
}

.modal-sucursal-container::-webkit-scrollbar {
  width: 6px !important;
}

/* Ponemos un color de fondo y redondeamos las esquinas del thumb */
.modal-sucursal-container::-webkit-scrollbar-thumb {
  background: #cdcdcd;
  border-radius: 2rem;
  visibility: hidden;
}

/* Cambiamos el fondo y agregamos una sombra cuando esté en hover */
.modal-sucursal-container::-webkit-scrollbar-thumb:hover {
  visibility: visible;
  background: #b2b2b2;
}

/* Cambiamos el fondo cuando esté en active */
.modal-sucursal-container::-webkit-scrollbar-thumb:active {
  background-color: #767676;
}

.solid-line {
  width: 100%;
  border: 1px solid grey;
  margin-bottom: 20px;
}

.modal-image-close {
  color: grey;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-right: 2rem;
  margin-top: 2rem;
  position: absolute;
  right: 0;
  top: 0;
  user-select: none;
}

.modal-image {
  margin: auto;
  max-height: 100%;
  max-width: 100%;
  user-select: none;
}

.modal-image-background {
  background-color: rgba(0, 0, 0, 0.8);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2147483647;
}

.modal-image-screen {
  height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 2147483650;
}

#message_box_id .expand {
  width: 400px !important;
  max-height: 675px !important;
  min-height: 240px !important;
  height: 100% !important;
}

#message_box_id .base_layout.new_style_bot.expand {
  margin-right: 0!important;
  margin-bottom: 0 !important;
  max-height: 725px !important;
  width: 430px !important;
  height: 100% !important;
}

#message_box_id .new_recommender.expand {
  width: 762px !important;
  max-height: 675px !important;
  min-height: 240px !important;
  height: 100% !important;
  /* misma duracion/curva que .chat_column dentro del iframe (Bot.vue), para
     que el ancho del iframe y el de la columna interna se muevan juntos */
  transition: .3s ease;
}

/* nuevo recomendador con nuevo estilo */
#message_box_id .base_layout.new_style_bot.new_recommender.expand {
  width: 860px !important;
  max-height: 725px !important;
  min-height: 240px !important;
  height: 100% !important;
  transition: .3s ease;
}

/* boton de pantalla completa del Header: la ventana toma el alto del navegador.
   Modificador de .expand, no un estado propio -- si queda pegado sin .expand
   (bot minimizado) no tiene ningun efecto. */
#message_box_id .expand.full-height-toggle,
#message_box_id .base_layout.new_style_bot.expand.full-height-toggle,
#message_box_id .new_recommender.expand.full-height-toggle,
#message_box_id .base_layout.new_style_bot.new_recommender.expand.full-height-toggle {
  max-height: 100dvh !important;
  height: 100dvh !important;
}

/* recomendador xl */
#message_box_id .menu-xl {
  width: 440px !important;
  max-height: 100% !important;
  min-height: 50% !important;
  height: 100% !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

/* shop recomendador height */
#message_box_id .chat-md {
  width: 800px !important;
  max-height: 800px !important;
  min-height: 240px !important;
  height: 100% !important;
}
/* float text */
#message_box_id .float-text {
  width: 200px !important;
  height: 100px !important;
}

#message_box_id .compact {
  width: 85px;
  height: 85px;
  transition: .5s;
}

#message_box_id .compact.min-brand {
  width: 66px;
}

#message_box_id .compact-md {
  width: 250px;
  height: 120px;
  transition: .5s;
}

#message_box_id .rectangle_box {
  width: 66px;
  height: 65px;
  margin-bottom: 2rem;
}

#whatsapp_box_identifier.compact {
  width: fit-content;
  height: 70px;
}

#whatsapp_box_identifier.compact.is-icon {
  width: 72px !important;
  height: 72px !important;
}

@media (max-width: 680px) {
  .base_layout {
    margin-right: 0px;
    margin-bottom: 0px;
  }

  #whatsapp_box_identifier {
    margin-left: 0px;
    margin-bottom: 0.25rem;
  }

  #whatsapp_box_identifier.up_nav {
    bottom: 88px !important;
  }

  #whatsapp_box_identifier.up_nav.up_nav_extra {
    bottom: 108px !important;
  }

  .base_layout.expand {
    width: 100% !important;
    height: 100% !important;
  }

  .base_layout.chat-md {
    width: 100% !important;
    height: 100% !important;
  }

  .base_layout.expand {
    width: 100% !important;
    height: 100% !important;
  }

  .base_layout.expand.h_55 {
    height: 55% !important;
    top: 0;
  }

  #whatsapp_box_identifier.is-icon.p-above {
    margin-right: .25rem !important
  }

  .modal-image-container {
    width: 80%;
    padding: 1rem;
  }

  .modal-image-close {
    margin-top: 1rem;
    margin-right: 1rem;
  }

  .base_layout.space-mobile {
    right: 18px !important;
    bottom: 23px !important;
  }

  .base_layout.p-left.space-mobile {
    left: 18px !important;
    right: auto !important;
    bottom: 23px !important;
  }

  .base_layout.mobile.up_nav {
    bottom: 88px !important;
  }
  .base_layout.mobile.up_nav_extra {
    bottom: 108px !important;
  }

  #message_box_id .rectangle_box {
    margin-bottom: 1.25rem !important;
  }
  #message_box_id .mobile.expand {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
  }
  #message_box_id .mobile.expand.full-height {
    max-height: 100dvh !important;
    height: 100dvh !important;
  }

  #message_box_id .mobile.expand.up_nav {
    max-height: calc(100dvh - 88px) !important;
  }
  /* Mismos ids de up_nav_extra (bottom:108px en vez de 88px): el limite de
     alto tiene que descontar esos 20px extra o la ventana abierta sobrepasa
     el borde superior de la pantalla. */
  #message_box_id .mobile.expand.up_nav.up_nav_extra {
    max-height: calc(100dvh - 108px) !important;
  }

  /* La regla de escritorio "#message_box_id .base_layout.new_style_bot.new_recommender.expand"
     tiene 4 clases (especificidad mayor que .mobile.expand.up_nav, que tiene 3) y le gana
     incluso dentro de este media query, fijando max-height:725px/width:860px en mobile.
     Con el segundo panel (new_recommender) anclado por bottom en vez de top, ese exceso de
     alto empuja el borde superior fuera de la pantalla. Repetimos aqui las mismas clases del
     selector de escritorio para igualar/superar su especificidad y que el limite mobile gane. */
  #message_box_id .base_layout.new_style_bot.new_recommender.expand.mobile.up_nav {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 88px) !important;
  }
  #message_box_id .base_layout.new_style_bot.new_recommender.expand.mobile.up_nav.up_nav_extra {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 108px) !important;
  }

  /* Mismo problema de especificidad que la regla anterior, ahora con el boton de
     alto completo del Header (full-height-toggle): las reglas de escritorio
     ".base_layout.new_style_bot(.new_recommender).expand.full-height-toggle" tienen
     4-5 clases y le ganan a ".mobile.expand.up_nav" (3 clases), fijando height/max-height
     en 100dvh sin descontar el bottom:88px del up_nav -- el contenedor se estira hacia
     arriba y sale de la pantalla. */
  #message_box_id .base_layout.new_style_bot.expand.full-height-toggle.mobile.up_nav,
  #message_box_id .base_layout.new_style_bot.new_recommender.expand.full-height-toggle.mobile.up_nav {
    max-height: calc(100dvh - 88px) !important;
    height: calc(100dvh - 88px) !important;
  }
  #message_box_id .base_layout.new_style_bot.expand.full-height-toggle.mobile.up_nav.up_nav_extra,
  #message_box_id .base_layout.new_style_bot.new_recommender.expand.full-height-toggle.mobile.up_nav.up_nav_extra {
    max-height: calc(100dvh - 108px) !important;
    height: calc(100dvh - 108px) !important;
  }

  #whatsapp_box_identifier.space-mobile {
    left: 18px !important;
    bottom: 23px !important;
  }

  #whatsapp_box_identifier.p-right.space-mobile {
    left: auto !important;
    right: 18px !important;
    bottom: 23px !important;
  }
}

/* To left position chatbot */
.p-left:not(.new_style_bot) {
  left: 0.25rem !important;
  right: auto !important;
}

.p-left.new_style_bot {
  left: 0.25rem !important;
  right: auto !important;
}

/* La ventana expandida de la version nueva ya queda pegada al borde derecho
   por defecto (ver .base_layout.new_style_bot.expand, margin-right:0). Del
   lado izquierdo replicamos ese mismo "flush" al expandir. */
#message_box_id .base_layout.new_style_bot.expand.p-left {
  left: 0 !important;
}

/* To right position widget wsap */
.p-right {
  right: 0.25rem !important;
  left: auto !important;
}

/* To left position chatbot */
.p-above {
  top: auto !important;
  bottom: 90px !important;
  margin-right: 1.25rem !important
}

#whatsapp_box_identifier.p-left.p-above {
  margin-left: 0.8rem !important;
  right: auto !important;
  left: 0 !important;
}

/* To move up bubble, widget and wsap icon */
.space-up {
  margin-bottom: 64px !important;
}

/* to modal view */
.modal-databot {
  position: absolute;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999999999;
  transition: .5s;
  animation: 1s show ease-in-out;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 150%;
}

.modal-databot .card {
  width: 480px;
  margin: auto;
  padding: 1.5rem 2.5rem;
  border-radius: 1.5rem;
  height: fit-content;
  text-align: center;
  background: #ffffff;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 1);
  animation: .5s fade-top ease-in-out;
}

.modal-databot button {
  width: fit-content;
  font-size: 14px;
  border-radius: 50rem;
  padding: .75rem 1.5rem;
  margin: 0 auto;
  background: #2981EF;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.modal-databot button:hover {
  background: #181818;
  border: none;
}

@keyframes show {
  0% {
    opacity: 0;
    transition: 0.25;
  }

  to {
    opacity: 1;
    transition: 0.25;
  }
}

@keyframes fade-top {
  from {
    opacity: 0;
    transform: translateY(-100%)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.qty-input {
  color: #000;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-right: 10px;
}

.qty-input .product-qty,
.qty-input .qty-count {
  background: transparent;
  color: inherit;
  font-weight: bold;
  font-size: inherit;
  border: none;
  display: inline-block;
  min-width: 0;
  height: 2rem;
  line-height: 1;
}

.qty-input .product-qty:focus,
.qty-input .qty-count:focus {
  outline: none;
}

.qty-input .product-qty {
  width: 50px;
  min-width: 0;
  display: inline-block;
  text-align: center;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-input .product-qty::-webkit-outer-spin-button,
.qty-input .product-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.qty-input .qty-count {
  padding: 0;
  cursor: pointer;
  width: 2rem;
  text-indent: -100px;
  overflow: hidden;
  position: relative;
}

.qty-input .qty-count:before,
.qty-input .qty-count:after {
  content: "";
  height: 2px;
  width: 10px;
  position: absolute;
  display: block;
  background: #000;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.qty-input .qty-count--minus {
  border-right: 1px solid #e2e2e2;
}

.qty-input .qty-count--add {
  border-left: 1px solid #e2e2e2;
}

.qty-input .qty-count--add:after {
  transform: rotate(90deg);
}

.qty-input .qty-count:disabled {
  color: #ccc;
  background: #f2f2f2;
  cursor: not-allowed;
  border-color: transparent;
}

.qty-input .qty-count:disabled:before,
.qty-input .qty-count:disabled:after {
  background: #ccc;
}

.qty-input {
  border-radius: 4px;
  border: 1px solid #bbb;
  /* transform: scale(0.7); */
}

.cart-name {
  margin: 0;
  font-weight: 600;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-details {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  margin: 15px;
}

.cart-price-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 370px;
}

.quote-button {
  background-color: #000;
  color: #fff;
  border-radius: 10px;
  border: none;
  padding: 10px 20px;
  margin: auto;
  cursor: pointer;
  font-size: 1.2rem;
}

.remove-btn {
  color: red;
  background: #fff;
  border: 1px solid red;
  border-radius: 5px;
  padding: 5px 7px;
  cursor: pointer
}

@media (max-width: 1000px) {
  .cart-details {
    flex-direction: column;
  }

  .cart-price-qty {
    margin-top: 10px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .cart-price-qty {
    flex-direction: column-reverse;
    align-items: start;
    margin-top: 10px;
  }
}