.woocommerce-cart .page-wrapper {
  overflow: visible !important;
}

.main-content-wrap {
  width: 100%;

  & .main-content {
    padding: 0 !important;
  }
}

.woocommerce-cart {
  background: #fcfcfc;
}

.carrito_crecima {
  width: 1278px;
  margin: auto;
  max-width: 100%;
  min-height: calc(100svh - 211px);
}

.carrito_crecima .titulo-cre-h1 {
  color: var(--BlueDark-bluedark-500, #000B39);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin: 38px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media(max-width: 767px) {
  .carrito_crecima .titulo-cre-h1 {
    margin: 15px 0;
    font-size: 26px;
  }
}

.carrito_crecima .cart_item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  border-radius: 8px;
  /* Actualizado según el diseño */
  border: 1px solid #b0ccff;
  /* Actualizado al borde azul claro */
  background: #fff;
  padding: 14px 10px;
  /* Ligero ajuste superior/inferior para respirar más */
  margin-bottom: 18px;
  overflow: hidden;
}

@media(max-width: 1440px) {
  .carrito_crecima .cart_item {
    padding: 14px 40px;
  }
}

/* precios */

.carrito_crecima .precios-producto-carrito {
  width: 220px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-height: 100%;
  justify-content: space-between;
}

.carrito_crecima .product-price {
  margin-bottom: 13px;
}

.carrito_crecima .product-price>div,
.carrito_crecima .product-price .c-precio-unitario {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 4px;

  color: #575757;
  /* Actualizado */
  text-align: right;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  /* Subido de 400 a 500 según diseño */
  line-height: 1.5;
  /* Convertido a relativo (18px/12px) */
  align-items: center;
}

.carrito_crecima .product-price ins {
  text-decoration: none;
}

.carrito_crecima .product-price .regular-price {
  color: #575757;
  /* Actualizado */
  font-size: 14px;
  /* Añadido */
  font-weight: 500;
  line-height: 1.5;
  /* Añadido */
}

.carrito_crecima .product-subtotal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.carrito_crecima .product-subtotal h5 {
  margin-bottom: 2px;
  color: #434343;
  /* Actualizado */
  text-align: right;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  /* Convertido a relativo */
}

.carrito_crecima .product-subtotal>.amount {
  color: #0051e8 !important;
  /* Actualizado */
  font-size: 24px !important;
  /* Actualizado */
  font-weight: 700 !important;
  /* Actualizado */
  line-height: 1.66 !important;
  /* 40px / 24px */
  font-family: "Urbanist", sans-serif;
  /* Familia tipográfica del diseño */
}

.carrito_crecima .product-sin-impuestos p,
.carrito_crecima .product-sin-impuestos .amount {
  margin: 0;
  margin-top: 6px;
  color: #919191 !important;
  /* Actualizado */
  text-align: right;
  font-size: 10px !important;
  font-style: normal;
  font-weight: 500 !important;
  /* Actualizado a 500 */
  line-height: 1.37;
  /* 13.7px / 10px */
}

.carrito_crecima .discount-percentage {
  width: auto;
  padding: 4px 8px;
  /* Relleno del diseño */
  font-size: 12px;
  /* Actualizado desde 14px */
  font-style: normal;
  font-weight: 600;
  /* Actualizado desde 700 */
  color: white;
  background: #f27508;
  /* Naranja del diseño */
  text-align: center;
  height: auto;
  line-height: 1.7;
  /* 20.4px / 12px */
  border-radius: 4px;
}

@media (max-width: 768px) {
  .carrito_crecima .discount-percentage {
    display: inline-flex;
    justify-content: center;
    font-size: 12px;
    height: auto;
    width: auto;
    margin-right: 6px;
  }
}

/* img */
.carrito_crecima .product-img-nombre .img-producto-carrito img {
  width: 90px;
  /* Actualizado según diseño (90x90) */
  height: 90px;
  max-width: 100%;
  border-radius: 4px;
}

.carrito_crecima a.remove:before {
  content: "" !important;
}

.carrito_crecima a.remove.remove-product {
  left: 0;
  top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 24px !important;
  /* Ajustado al ícono de 24px */
  height: 24px !important;
}

@media(max-width: 767px) {
  .carrito_crecima a.remove.remove-product {
    left: -13px;
    top: -10px !important;
  }
}

.carrito_crecima .mini-cart-discount {
  display: flex;
  width: fit-content;
  height: 17px;
  padding: 0 10px;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 170%;
  border-radius: 4px;
  background: #f27508;
}

/* nombre */
.carrito_crecima .product-img-nombre {
  display: flex;
  gap: 9px;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  width: calc(100% - 220px);
  max-width: 100%;
  justify-content: space-between;
}

.carrito_crecima .product-name {
  width: calc(100% - 133px);
}

.carrito_crecima .product-name .mini-cart-sku-text {
  display: block;
  color: var(--Brand-Brand-500, #0059FF);
  font-size: 12px;
  font-weight: 400;
  line-height: 137%;
}

.carrito_crecima .product-name .product-brand {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  margin-bottom: 2px;
  /* Reducido para juntar el SKU al título */
}

.carrito_crecima .product-name>a {
  color: #141414;
  /* Actualizado */
  font-size: 16px;
  /* Actualizado desde 14px */
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  /* 24px / 16px */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 14px;
}

.carrito_crecima .product-name>a:hover {
  color: #003fb5 !important;
  /* Azul hover */
  text-decoration: underline;
}

@media (max-width: 768px) {
  .carrito_crecima .product-name>a {
    margin-bottom: 8px;
  }
}

.carrito_crecima .product-name .product-quantity div.quantity {
  width: 133px;
}

.carrito_crecima .product-name .product-quantity div.quantity.buttons_added .minus,
.carrito_crecima .product-name .product-quantity div.quantity.buttons_added .plus,
.carrito_crecima .product-name .product-quantity div.quantity.buttons_added .qty {
  padding: 0 !important;
  height: 44px;
  width: 100%;
}

.carrito_crecima .product-name .product-quantity div.quantity.buttons_added .minus,
.carrito_crecima .product-name .product-quantity div.quantity.buttons_added .plus {
  width: 40px;
}

.carrito_crecima .product-name .product-brand img {
  height: 100%;
}

/* Transformamos esto para que luzca como el "SKU 0045544" del diseño */
.carrito_crecima .product-name .product-brand span {
  display: flex;
  width: fit-content;
  padding: 0;
  /* Sin fondo ni padding ovalado */
  justify-content: flex-start;
  align-items: center;
  color: #0059ff;
  /* Azul del SKU */
  font-size: 12px;
  font-weight: 400;
  /* Actualizado */
  line-height: 1.37;
  /* 16.44px / 12px */
  background: transparent;
}

.carrito_crecima .sin-stock .product-name {
  color: #ff3239;
}

.carrito_crecima .producto-precio-sin-imp-nac,
.carrito_crecima .producto-precio-sin-imp-nac .amount {
  color: #919191 !important;
  margin: 0;
  font-size: 10px !important;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .carrito_crecima .cart_item {
    flex-direction: column;
    padding: 14px 23px 14px 17px;
  }

  .carrito_crecima .product-img-nombre {
    width: 100%;
    padding-bottom: 15px;
    gap: 5px;
  }

  .carrito_crecima .product-name {
    width: calc(100% - 74px);
  }

  .carrito_crecima .product-img-nombre .img-producto-carrito img {
    width: 69px;
    height: auto;
  }

  .carrito_crecima .precios-producto-carrito {
    border-top: 1px solid #b0ccff;
    position: relative;
    margin: 0 -23px -10px;
    width: calc(100% + 46px);
    max-width: calc(100% + 46px);
    padding: 10px 23px;
    background: #fafcff;
  }

  .carrito_crecima {
    padding: 0;

    & .titulo-cre-h1 {
      font-size: 32px;
      margin: 38px 0;
    }

    & .shop_table.responsive,
    .shop_table.shop_table_responsive {
      border-top: 0 !important;
      box-shadow: none;
      border: 0;
    }

    & .product-quantity {
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      gap: 5px;
      flex-wrap: wrap;

      & .quantity {
        margin: 0 !important;
      }
    }

    & .product-price {
      margin: 0;
    }

    .carrito_crecima .product-price>div {
      padding: 0;
    }
  }
}

.solo-movil-precio,
.cre-precio-movil {
  display: none;
}

@media (max-width: 768px) {
  .solo-movil-precio {
    display: block;
    color: #595959;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
  }

  .carrito_crecima .product-price {
    display: none;
  }

  .cre-precio-movil {
    display: inline-block;
    text-wrap-mode: nowrap;
  }
}

.cre-precio-movil .sale-price {
  text-decoration: none;
}

/* RESUMEN DE CUENTA CARRITO */
.crecima-resumen-compra .card {
  border: 1px solid #b0ccff;
  /* Actualizado desde 0 */
  border-radius: 10px;
  /* Actualizado desde 20px */
  background: #fff;
  box-shadow: none;
  /* Quitada la sombra según diseño */
  overflow: hidden;
}

.crecima-resumen-compra .titulo-resumen {
  color: #00061f;
  /* Actualizado oscuro */
  font-size: 18px;
  font-style: normal;
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  /* Actualizado */
  line-height: 1.5;
  /* 27px / 18px */
  margin: 0;
  border-radius: 10px 10px 0 0;
  background: #c6ebff;
  /* Actualizado celeste */
  display: flex;
  min-height: 57px;
  padding: 17px 21px;
  align-items: center;
  gap: 8.534px;
  flex-shrink: 0;
}

.crecima-resumen-compra #panel-cart-total {
  padding: 0 21px 23px;
  color: #28292a;

  & .btn-principal {
    margin-bottom: 10px;
  }
}

.crecima-resumen-compra .f-resumen {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.crecima-resumen-compra .cart-subtotal {
  padding: 22px 0 35px;
  color: #151515;
  /* Actualizado */
  font-size: 16px;
  /* Actualizado a 16px */
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;

  & h4 {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    /* Quitadas las mayúsculas */
    font-weight: 500;
  }
}

.crecima-resumen-compra .order-total {
  padding-bottom: 45px;
  padding-top: 22px;
}

/* Estilos de tabla TOTALES */
.crecima-resumen-compra .order-total th,
.crecima-resumen-compra .order-total td,
.crecima-resumen-compra .order-total .amount {
  color: #00318c !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.5;
}

/* btn checkout principal */
.crecima-resumen-compra .checkout-button {
  background: #003fb5 !important;
  color: white !important;
  font-size: 18px !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  width: 100%;
}

/* btn segundario */
.crecima-resumen-compra .wc-proceed-to-checkout .btn-segundario {
  margin-top: 10px;
  background: transparent !important;
  color: #003fb5 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border: 2px solid #003fb5 !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  width: 100%;
}

/* Producto sin stock en carrito */
.carrito_crecima .cart_item.sin-stock {
  border: 1px solid #ff3239;
}

.carrito_crecima .cart_item.sin-stock a.remove svg path {
  fill: #ff3239;
}

.carrito_crecima .cart_item.sin-stock .product-quantity {
  display: none;
}

/* producto variante */
.carrito_crecima dl.variation {
  text-transform: initial;
  color: #454545;

  & dd {
    margin-right: 20px;
  }

  & p {
    margin: 0;
  }
}

@media (max-width: 767px) {
  .woocommerce-cart .woo-page-header.woo-page-header.page-header-8 {
    display: none;
  }
}

@media (min-width: 992px) {
  .cart-collaterals {
    position: -webkit-sticky;
    position: sticky;
    top: 40px;
    height: max-content;
    align-self: flex-start;
    z-index: 10;
  }
}

.cart-table .cart_totals_toggle #panel-cart-discount {
  display: none !important;
}

.woocommerce-cart .footer-wrapper {
  display: none !important;
}

/* envio */
.carrito_crecima .woocommerce-cart-form .porto-free-shipping {
  padding: 0;
  background: transparent;
}

/* fin envio */