/* V702: keep the public catalog in a predictable grid at desktop sizes. */
@media (min-width: 1000px) and (pointer: fine) {
  #root [data-t360-public-layout="1"] > [data-t360-public-cards]:not(.flex) {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  #root [data-t360-public-layout="1"] > [data-t360-public-cards]:not(.flex) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #root [data-t360-public-layout="1"] > [data-t360-public-cards] > [data-t360-public-card-type] {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    height: 100% !important;
  }

  #root [data-t360-public-layout="1"] > [data-t360-public-cards] > [data-t360-public-card-type] > div:first-child {
    flex: 0 0 auto;
  }

  #root [data-t360-public-layout="1"] > [data-t360-public-cards] > [data-t360-public-card-type][data-t360-public-has-photo="true"] > div:nth-child(2) {
    box-sizing: border-box !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #10131a !important;
  }

  #root [data-t360-public-layout="1"] > [data-t360-public-cards] > [data-t360-public-card-type][data-t360-public-has-photo="true"] > div:nth-child(2) > img {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  #root [data-t360-public-layout="1"] > [data-t360-public-cards] > [data-t360-public-card-type][data-t360-public-has-photo="false"] > div:first-child::after {
    content: "";
    display: block;
    height: 150px;
    margin-top: 12px;
    border-radius: 12px;
    background-color: #10131a;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
  }

  #root [data-t360-public-layout="1"] > [data-t360-public-cards] > [data-t360-public-card-type="Dinero"][data-t360-public-has-photo="false"] > div:first-child::after,
  #root [data-t360-operation-tile][data-t360-operation-type="Dinero"] .t360-placeholder-stage {
    background-image: url("../assets/tanda-organizada.png") !important;
  }

  #root [data-t360-public-layout="1"] > [data-t360-public-cards] > [data-t360-public-card-type="Préstamo"][data-t360-public-has-photo="false"] > div:first-child::after,
  #root [data-t360-operation-tile][data-t360-operation-type="Préstamo"] .t360-placeholder-stage {
    background-image: url("../assets/prestamo-personal.png") !important;
  }


}

@media (min-width: 1280px) and (pointer: fine) {
  #root [data-t360-public-layout="1"] > [data-t360-public-cards]:not(.flex) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1800px) and (pointer: fine) {
  #root [data-t360-public-layout="1"] > [data-t360-public-cards]:not(.flex) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 769px) and (max-width: 999px) {
  #root [data-t360-public-layout="1"] > [data-t360-public-cards]:not(.flex) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
}

#root [data-t360-operation-tile][data-t360-operation-type="Dinero"] .t360-placeholder-stage {
  background-image: url("../assets/tanda-organizada.png") !important;
}
#root [data-t360-operation-tile][data-t360-operation-type="Préstamo"] .t360-placeholder-stage {
  background-image: url("../assets/prestamo-personal.png") !important;
}

#root [data-t360-operation-tile][data-t360-operation-type="Dinero"] .t360-placeholder-stage,
#root [data-t360-operation-tile][data-t360-operation-type="Préstamo"] .t360-placeholder-stage {
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  background-position: center !important;
}

#root [data-t360-operation-tile][data-t360-operation-type="Dinero"] .t360-placeholder-stage::before,
#root [data-t360-operation-tile][data-t360-operation-type="Dinero"] .t360-placeholder-stage::after,
#root [data-t360-operation-tile][data-t360-operation-type="Dinero"] .t360-placeholder-composition,
#root [data-t360-operation-tile][data-t360-operation-type="Préstamo"] .t360-placeholder-stage::before,
#root [data-t360-operation-tile][data-t360-operation-type="Préstamo"] .t360-placeholder-stage::after,
#root [data-t360-operation-tile][data-t360-operation-type="Préstamo"] .t360-placeholder-composition {
  display: none !important;
}
