/**
 * @file
 * Estilos para el módulo Custom Search Order.
 */

/* Contenedor principal del resultado de búsqueda */
@media (min-width: 992px) {
  .custom-search-order-header {
    padding: 0px 12em 0px;
  }
}
.custom-search-order-header p {
  font-size: 29.76px;
  text-align: left;
  color: #0073aa;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0.4em;
  font-weight: 600;
  line-height: 35.712px;
}
.custom-search-order-header .result {
  color: #3b444f;
  font-weight: 500;
  font-size: 1.4rem;
  /* border-bottom: 1px solid #e9e9ea; */
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}
.custom-search-order-template {
  padding: 0;
}
@media (min-width: 992px) {
  .custom-search-order-template {
    padding: 0px 12em 0px;
  }
}
.search-result-item {
  display: flex;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}
@media (max-width: 768px) {
  .search-result-item {
    flex-direction: column;
    padding: 1rem 1.75rem;
  }
}
.search-result-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Imagen del resultado */
.search-result-image {
  flex-shrink: 0;
  margin-right: 1rem;
  width: 117px;
  height: 117px;
  overflow: hidden;
  border-radius: 6px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .search-result-image {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
    height: 200px;
    align-self: center;
    max-width: 300px;
  }
}
@media (max-width: 480px) {
  .search-result-image {
    height: 150px;
    max-width: 250px;
  }
}

.search-result-image .img-result {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.search-result-image .img-result.default-search-image {
  object-fit: contain;
}
.search-result-image a {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

/* Contenido del resultado */
.search-result-content {
  flex: 1;
  min-width: 0;
}
.search-result-content .title * {
  margin-bottom: 1.2rem;
  font-size: 19px;
  color: #0073aa;
  text-decoration: none;
  font-weight: 400;
}
@media (min-width: 768px) {
  .search-result-content .title * {
    font-size: 1.3rem;
  }
}
@media (min-width: 1200px) {
  .search-result-content .title * {
    font-size: 1.6rem;
  }
}
.search-result-content .title a:hover {
  color: #005a87;
}

/* Tipo de contenido */
.search-result-type {
  margin-bottom: 0.5rem;
}

.search-result-type .content-type {
  display: block;
  color: #3b444f;
  font-size: 1rem;
  font-weight: 400;
  text-transform: capitalize;
}

/* Snippet y metainformación */
.search-snippet-info {
  margin-top: 0.5rem;
}

.search-snippet {
  margin: 0 0 0.5rem 0;
  color: #3b444f;
  line-height: 1.4;
  font-size: 0.9rem;
}
@media (min-width: 992px) {
  .search-snippet {
    font-size: 14.88px;
  }
}
.search-info {
  margin: 0;
  color: #3b444f;
  font-size: 0.8rem;
  line-height: 1.3;
}
