.ean-twister-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: start;
}

.innertwistatwista {
  width: 100%;
  display: grid;
}

.ean-twister-column {
  margin: 10px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.ean-twister-column .odd-row {
  background: #d5cccc;
}

.ean-twister-merchant-line img,
.ean-twister-merchant-line amp-img {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  object-fit: contain;
}

.ean-twister-merchant-line {
  display: flex;
  align-items: center;
  padding: 2px 10px;
  border-bottom: 1px solid #ddd;
}
.odd-line-merchant {
  background: white;
}

.ean-twister-merchant-line .kamesen,
.ean-twister-merchant-line a {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
}

.ean-twister-merchant-line .kamesen:hover,
.ean-twister-merchant-line a:hover {
		opacity:0.8;
}

.ean-twister-block-title {
  font-size: 1rem;
  margin: 10px 0;
  font-weight: bold;
  color: #333;
  text-transform:capitalize;
}

.ean-twister-illustration {
  max-width: 100%;
  max-height:100px;
}

.ean-twister-merchant-price-old {
  color: #999;
  margin-left: 5px;
}
.ean-twister-merchant-price-old del {
  font-size: 0.9rem;
}

.ean-twister-amz-note {
  font-size: 11px;
  color: #666;
  margin-left: 35px;
}
.ean-twister-loading-wheel {
  display: none;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.ean-twister-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: brown;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: eanspin 1s linear infinite;
  margin: 0 auto;
}

@keyframes eanspin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.ean-twister-refurb {
  margin-left: 10px;
}

.ean-twister-merchant-info {
  text-align: left;
}

.ean-twister-merchant-name {
  margin-left: 5px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  color: white;
  padding: 0 10px;
  background: linear-gradient(to right, #0a1e05, #0a4a9d);
  border-radius: 3px;
}

.ean-twister-merchant-price {
  font-size: 16px;
  color: #333;
  margin-left: 10px;
  float: left;
  font-weight: bold;
}

.ean-twister-merchant-price-old {
  font-size: 14px;
  color: #888;
  margin-left: 10px;
  text-decoration: line-through;
}

.ean-twister-merchant-discount {
  font-size: 14px;
  background: #e53935;
  color: #fff;
  font-weight: bold;
  display: block;
  transform: rotate(-3deg);
}

.ean-twister-merchant-view-button {
  margin-left: auto;
  color: white;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  background: linear-gradient(to right, #3bcc13, #0a9d1a);
  padding: 5px 20px;
  border-radius: 6px;
}

.ean-twister-merchant-view-button:hover {
	opacity:0.8;
}
.ean-twister_wrapcolumni-3 .ean-twister-merchant-line .kamesen,
.ean-twister_wrapcolumni-3 .ean-twister-merchant-line a {
  width: 100%;
  display: block;
}
.ean-twister_wrapcolumni-3 .ean-twister-merchant-price,
.ean-twister_wrapcolumni-3 .ean-twister-merchant-view-button,
.ean-twister_wrapcolumni-3 .ean-twister-merchant-info {
  width: 100%;
  display: block;
  float: none;
}
.ean-twister_wrapcolumni-3 .ean-twister-merchant-discount {
  margin-bottom: 5px;
}

.ean-twister_wrapcolumni-2 .ean-twister-merchant-line .kamesen,
.ean-twister_wrapcolumni-2 .ean-twister-merchant-line a {
  width: 100%;
  display: block;
}
.ean-twister_wrapcolumni-2 .ean-twister-merchant-view-button {
  width: 100%;
  display: block;
  float: none;
  text-align: right;
}
.ean-twister_wrapcolumni-2 .ean-twister-merchant-info {
  text-align: center;
  display: block;
}
.ean-twister_wrapcolumni-2 .ean-twister-merchant-discount {
  margin-bottom: 5px;
}

.ean-twister_wrapcolumni-2 .ean-twister-merchant-price-old {
  color: white;
}

.ean-twister-disclaimer {
  font-size: 10px;
  text-align: center;
  padding: 0 20px;
  margin: 0 20px 20px;
}



.ean-twister-show-more, .ean-twister-toggle-refurb {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-top: 10px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.ean-twister-show-more:hover, .ean-twister-toggle-refurb:hover {
    background: #0056b3;
}

@media screen and (max-width: 768px) {
  .innertwistatwista {
    grid-template-columns: repeat(1, 1fr) !important;
    width: 100% !important;
  }
  .ean-twister-merchant-line .kamesen,
  .ean-twister-merchant-line a {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(1, 1fr);
  }
  .ean-twister-merchant-view-button {
    width: 100%;
  }
  .ean-twister-merchant-discount {
    margin-bottom: 5px;
  }
  .ean-twister-merchant-line {
    display: flex;
    align-items: center;
    border-bottom: 1px solid black;
    padding: 10px;
  }
}

/* Tooltip */
.ean-twister-merchant-line {
    position: relative;
}

.ean-twister-tooltip {
    display: none; 
    width: 100%;
    height: auto;
	max-width:400px;
	max-height:400px;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 10px;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    padding: 10px;
}

/* Titre dans le tooltip */
.ean-twister-tooltip-title {
    font-weight: bold;
    margin-bottom: 8px;
}

/* L’image dans le tooltip */
.ean-twister-tooltip-link img.ean-twister-tooltip-image
{
  width: 100%;
  height: auto;
  display: block;
}

/* 
   Afficher le tooltip au survol 
   uniquement sur les appareils où hover est pertinent (PC).
*/
@media (hover: hover) and (pointer: fine) {
    .ean-twister-merchant-line:hover .ean-twister-tooltip {
        display: block;
    }
}