/** 
 * CM Heureka module
 * PrestaShop 1.7.x - 8.x
 * CSS
 * Front-office
 */

/* START > MODULE CUSTOM ICONS FORMATING */

/* Here you can modify design and size of the icons 
 * displayed in custom hook {hook h='displaycm_heurekaicons'} 
 */

.cm_heureka-custom {
  margin: 20px 0; 
  text-align: center;
}

.cm_heureka-logos-custom img {
  max-width: 150px;
  border-radius: 4px;
  text-align: center;
}

/* END > MODULE CUSTOM ICONS FORMATING */


/* Currency list */
ul.currency-list-cm_heureka { 
  margin-left: 40px; 
  list-style-type: circle; 
}

/* Icon */
img.cm_heureka-logo {
  float: right;
}
img.cm_heureka-loading-icon {
  display: block;
  width: 100px;
  margin: 10px auto;
}
.cm_heureka-text-center {
  text-align: center;
}
button.cm_heureka-center-button {
  display: block; 
  margin: 0 auto!important;
}

/* Debug & Testing mode */
.debug-area-cm_heureka {
  border-color: #cc0000
}
.debug-area-cm_heureka h3,
p.cm_heureka-red-text {
  color: #cc0000;
}
.cm_heureka-red-background {
  background-color: #ffeaea;
}
.debug-list-cm_heureka dl {
  display: flex;
  flex-wrap: wrap;
}
.debug-list-cm_heureka dl dt, .debug-list-cm_heureka dl dd {
  -moz-box-flex: 0;
  background: #ebebeb none repeat scroll 0 0;
  margin: 0.125rem;
  padding: 0.625rem;
}
.debug-list-cm_heureka dl dt {
  flex: 0 0 20%;
}
.debug-list-cm_heureka dl dd {
  flex: 0 0 78%;
}
.cm_heureka-notification .alert {
  font-weight: bold;
  font-size: 110%;
}

/* Icons */
.cm_heureka-logos img, 
.cm_heureka-logos-execution img,
.cm_heureka-logos-150 img, 
.cm_heureka-logos-90 img, 
.cm_heureka-logos-custom img {
  margin: 0 12px 12px 0;
  padding: 8px;
  background-color: #fff;
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
  box-shadow: 0px 1px 1.19px 0.81px rgba(0, 0, 0, 0.22);
}
.cm_heureka-logos img {
  max-width: 130px;
  border-radius: 6px;
}
.cm_heureka-logos-execution img {
  max-width: 130px;
  border-radius: 6px;
}
.cm_heureka-logos-150 img {
  max-width: 150px;
  border-radius: 4px;
  text-align: center;
}
.cm_heureka-logos-90 img {
  max-width: 90px;
  border-radius: 4px;
}
.cm_heureka-last { 
  margin-bottom: 25px; 
}
.cm_heureka-top-ident { 
  margin-top: 30px; 
}

/* List of Heureka Reviews */
.cm_heureka-review-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.cm_heureka-review-list li {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cm_heureka-review-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cm_heureka-review-list li .cm_heureka-rating {
  font-size: 1.5em;
  color: #FFD700; /* Gold color for the rating */
  margin-bottom: 10px;
}

.cm_heureka-review-list li .cm_heureka-summary {
  font-style: italic;
  color: #666;
}

.cm_heureka-review-list li .cm_heureka-pros,
.cm_heureka-review-list li .cm_heureka-cons {
  margin-top: 15px;
}

.cm_heureka-review-list li .cm_heureka-pros span {
  /* content: 'Pros: '; */
  font-weight: bold;
  color: #28a745; /* Green for pros */
}

.cm_heureka-review-list li .cm_heureka-cons span {
  /* content: 'Cons: '; */
  font-weight: bold;
  color: #dc3545; /* Red for cons */
}

.cm_heureka-review-list li .cm_heureka-details {
  font-size: 0.9em;
  color: #888;
  margin-top: 10px;
}
/* Heureka Reviews: Star ratings */
.cm_heureka-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.cm_heureka-star {
  font-size: 1.1em;
  color: #ddd; /* Light color for unfilled stars */
  margin-right: 2px;
}

.cm_heureka-star.filled {
  color: #FFD700; /* Gold color for filled stars */
}

.cm_heureka-rating-number {
  margin-left: 10px;
  font-size: 0.8em;
  color: #555;
  text-align: center;
}
.cm_heureka-summary,
.cm_heureka-pros,
.cm_heureka-cons {
    text-align: center; /* Center-aligns text in summary, pros, and cons */
}
.cm_heureka-details {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
    text-align: center; /* Center-aligns text in details section */
}
/* EOF */