/** 
 * CM Heureka module
 * PrestaShop 9.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 */
}

/* Shop of the Year - the badge stuck to the side of the window */
.cm_heureka-shoproku-badge {
  position: fixed;
  top: 35%;
  left: -38px;
  z-index: 9000;
  display: block;
  line-height: 0;
  transition: left .25s ease;
}
.cm_heureka-shoproku-badge:hover,
.cm_heureka-shoproku-badge:focus {
  left: 0;
}
.cm_heureka-shoproku-badge img {
  display: block;
  max-width: none;
}

@media (max-width: 767px) {
  .cm_heureka-shoproku-badge {
    display: none;
  }
}

/* Shop of the Year - the invitation shown once per visitor */
.cm_heureka-shoproku-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .55);
}
.cm_heureka-shoproku-popup[hidden] {
  display: none;
}
.cm_heureka-shoproku-popup-box {
  position: relative;
  max-width: 640px;
  width: 100%;
  padding: 30px 24px 24px;
  border-radius: 4px;
  background: #fff;
  text-align: center;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .3);
}
.cm_heureka-shoproku-popup-box img {
  max-width: 100%;
  height: auto;
}
.cm_heureka-shoproku-popup-close {
  position: absolute;
  top: 4px;
  right: 10px;
  padding: 0;
  border: none;
  background: none;
  font-size: 30px;
  line-height: 1;
  color: #888;
  cursor: pointer;
}
.cm_heureka-shoproku-popup-close:hover {
  color: #222;
}
.cm_heureka-shoproku-popup-text {
  margin: 16px 0;
}
.cm_heureka-shoproku-popup-button {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 3px;
  background: #86bc25;
  color: #fff;
  text-decoration: none;
}
.cm_heureka-shoproku-popup-button:hover,
.cm_heureka-shoproku-popup-button:focus {
  background: #74a31f;
  color: #fff;
  text-decoration: none;
}

/* The rating of Heureka next to a product of a category */
.cm_heureka-list-rating {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1;
}
.cm_heureka-list-stars {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 13px;
  vertical-align: middle;
  color: #d8d8d8;
  overflow: hidden;
}
.cm_heureka-list-stars:before {
  content: "\2605\2605\2605\2605\2605";
  letter-spacing: 2px;
}
.cm_heureka-list-stars-on {
  position: absolute;
  top: 0;
  left: 0;
  height: 13px;
  color: #f5a623;
  overflow: hidden;
}
.cm_heureka-list-stars-on:before {
  content: "\2605\2605\2605\2605\2605";
  letter-spacing: 2px;
}
.cm_heureka-list-rating-count {
  margin-left: 4px;
  color: #777;
}

/* EOF */