/* Styles for the inline-product-multiple block */

.inline-product-card-multiple {
  --card-background-color: #fff;
  --card-border-width: 1px;
  --card-border-color: rgba(0, 0, 0, 0.125);
  --card-border-radius: 15px;
  --card-padding: 0px;
  --card-margin: 0 0 20px 0;

  --image-width: auto;
  --image-min-width: 188px;
  --image-border-radius: 15px;

  --title-color: #364151;
  --title-font-weight: 700;
  --title-font-size: 20px;
  --title-margin: 0;

  --star-size: 16px;
  --star-empty-color: #ddd;
  --star-filled-color: #f5c518;
  --star-margin: 0 5px 0 0;

  --pros-text-color: #1e293b;
  --pros-text-size: 12px;
  --pros-icon-color: #4caf50;
  --pros-icon-size: 16px;

  --price-section-padding: 15px 0;
  --price-section-margin: 10px 10px 10px 0;
  --price-section-bg-color: #fff;
  --merchant-name-color: #000;
  --merchant-name-size: 14px;
  --price-color: #000;
  --price-font-size: 16px;
  --logo-size: 32px;

  --buy-btn-bg-color: #4caf50;
  --buy-btn-text-color: #fff;
  --buy-btn-hover-bg-color: #388e3c;
  --buy-btn-hover-text-color: #e8f5e9;
  --buy-btn-border-radius: 4px;
  --buy-btn-font-size: 14px;
  --buy-btn-padding: 8px 15px;

  --more-btn-bg-color: #ff9800;
  --more-btn-text-color: #fff;
  --more-btn-hover-bg-color: #e65100;
  --more-btn-hover-text-color: #fff3e0;
  --more-btn-border-radius: 6px;
  --more-btn-font-size: 14px;

  display: flex;
  flex-direction: row;
  border-radius: var(--card-border-radius);
  border: var(--card-border-width) solid var(--card-border-color);
  overflow: hidden;
  transition: 500ms all;
  margin-bottom: 20px;
  position: relative;
  background: var(--card-background-color);
}

@keyframes rotate-animation {
  0% {
    transform: rotate(0);
    background-color: var(--color1, #2e00ff);
    background-image: linear-gradient(
      90deg,
      var(--color1, #2e00ff),
      var(--color2, #917af9)
    );
  }
  25% {
    background-color: var(--color3, #ff007e);
    background-image: linear-gradient(
      90deg,
      var(--color3, #ff007e),
      var(--color4, #f7917a)
    );
  }
  50% {
    transform: rotate(0.5turn);
    background-color: var(--color5, #00ff7e);
    background-image: linear-gradient(
      90deg,
      var(--color5, #00ff7e),
      var(--color6, #7af991)
    );
  }
  75% {
    background-color: var(--color7, #007eff);
    background-image: linear-gradient(
      90deg,
      var(--color7, #007eff),
      var(--color8, #7abff9)
    );
  }
  100% {
    transform: rotate(1turn);
    background-color: var(--color1, #2e00ff);
    background-image: linear-gradient(
      90deg,
      var(--color1, #2e00ff),
      var(--color2, #917af9)
    );
  }
}

.anim-border {
  position: relative;
  z-index: 0;
  border-radius: var(--card-border-radius);
  overflow: hidden;
  background: var(--card-background-color);
}

.anim-border::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background-repeat: no-repeat;
  background-size: 50% 50%, 50% 50%;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  -webkit-animation: rotate-animation var(--anim-speed, 5.5s) linear infinite;
  animation: rotate-animation var(--anim-speed, 5.5s) linear infinite;
}

.anim-border::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8px;
  top: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  background: var(--card-background-color);
  border-radius: 5px;
}

.inline-product-card:hover {
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
}

.inline-product-content-multiple {
  display: flex;
  align-items: center;
  flex: 2;
  padding: var(--card-padding, 8px);
}

.inline-product-left-multiple {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.product-link-multiple {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: var(--image-min-width);
}

.inline-product-card-multiple .product-img-multiple {
  max-width: 100%;
  height: auto;
  width: var(--image-width);
  border-radius: var(--image-border-radius);
}

.inline-product-title-container-multiple {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: var(--title-margin);
}

.inline-product-title-text-multiple a {
  color: var(--title-color);
  font-size: var(--title-font-size);
  font-weight: var(--title-font-weight);
  line-height: normal;
  text-transform: uppercase;
  font-family: "Poppins", serif;
}

.product-rating {
  display: flex;
  gap: 5px;
}

.product-rating .fa-star {
  font-size: var(--star-size);
  color: var(--star-empty-color);
  margin: var(--star-margin);
}

.product-rating .fa-star.filled,
.product-rating .fa-star-half-alt.filled {
  color: var(--star-filled-color);
}

.inline-product-right-multiple {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.product-pros-section-multiple {
  display: flex;
  flex-direction: column;
}

.product-card-icon {
  margin-right: 5px;
  color: var(--pros-icon-color);
  font-size: var(--pros-icon-size);
}

.product-card-pros-multiple {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-pros {
  color: var(--pros-text-color);
  font-size: var(--pros-text-size);
  font-weight: 400;
  line-height: normal;
}

/*table style*/

.inline-product-price-section-multiple {
  display: flex;
  align-items: center;
  flex: 1;
  box-sizing: border-box !important;
  font-size: var(--price-font-size);
  font-weight: 600;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  font-style: normal;
  box-shadow: none;
  color: var(--price-color);
  margin: var(--price-section-margin);
  padding: var(--price-section-padding);
  max-width: 100%; /* Ensure it doesn't exceed container width */
  overflow: hidden; /* Prevent overflow */
  background-color: var(--price-section-bg-color);
}

.inline-product-list-multiple {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.inline-product-item-multiple {
  position: relative;
  font-size: inherit;
  max-width: 100%;
  word-wrap: break-word;
  background: var(--price-section-bg-color);
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 5px;
  text-align: center !important;
  overflow: hidden;
  box-sizing: border-box;
}

.inline-product-offer-multiple {
  padding: 0em 8px;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.inline-product-wrap-multiple {
  width: 100%;
  display: flex !important;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  padding: var(--price-section-padding);
  gap: 10px;
}

.inline-product-shop-multiple {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.inline-product-merchant-multiple {
  flex: 1;
  display: flex;
  align-items: center;
  text-align: left;
  min-width: 138px;
}

.inline-product-logo-multiple {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--logo-size);
  height: var(--logo-size);
  margin-right: 10px;
  object-fit: contain;
}

.inline-product-merchant-name {
  font-size: var(--merchant-name-size);
  color: var(--merchant-name-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-product-details-multiple {
  flex: 1;
  text-align: center;
  padding: 0 10px;
  /*min-width: 70px;*/
}

.inline-product-price-multiple {
  font-size: var(--price-font-size);
  font-weight: 600;
  color: var(--price-color);
  display: block;
}

.inline-product-btn-multiple {
  flex: 1;
  text-align: right;
  /*min-width: 100px;*/
}

.inline-product-button-multiple {
  display: inline-block;
  width: 100%;
  max-width: 150px;
  padding: var(--buy-btn-padding);
  background: var(--buy-btn-bg-color);
  color: var(--buy-btn-text-color);
  border-radius: var(--buy-btn-border-radius);
  font-size: var(--buy-btn-font-size);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.inline-product-button-multiple:hover {
  background: var(--buy-btn-hover-bg-color);
  color: var(--buy-btn-hover-text-color);
}

.inline-product-more-btn-multiple {
  padding: 10px;
  text-align: center;
  background-color: var(--more-btn-bg-color);
  color: var(--more-btn-text-color);
  cursor: pointer;
  border-radius: var(--more-btn-border-radius);
  font-size: var(--more-btn-font-size);
}

.inline-product-more-btn-multiple:hover {
  background-color: var(--more-btn-hover-bg-color);
  color: var(--more-btn-hover-text-color);
}

.hidden-offer {
  display: none;
}

@media (max-width: 1300px) {
  .inline-product-wrap-multiple {
    width: 100%;
    box-sizing: border-box;
  }

  .inline-product-button-multiple {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .inline-product-price-section-multiple {
    margin: 10px 0;
    padding: 0 5px;
    max-width: 100%;
  }

  .inline-product-offer-multiple {
    padding: 0 10px;
  }
}

/* New media query for screens between 1028px and 1698px */
@media (min-width: 1300px) and (max-width: 1698px) {
  .inline-product-price-section-multiple {
    flex: 0.7;
    min-width: 180px;
    padding: 0;
  }

  .inline-product-content-multiple {
    flex: 1.5;
  }

  .inline-product-left-multiple {
    flex: 0.6;
  }

  .inline-product-right-multiple {
    flex: 0.4;
  }

  .inline-product-item-multiple {
    padding: 0;
  }

  .inline-product-wrap-multiple {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 5px 2px;
    gap: 0;
  }

  .inline-product-merchant-multiple {
    width: 32px;
    overflow: hidden;
    margin-left: 2px;
    box-sizing: content-box;
  }

  .inline-product-logo-multiple {
    width: 32px;
    height: 32px;
  }

  .inline-product-details-multiple {
    flex: 0.6;
    padding: 0;
    min-width: 50px;
    text-align: center;
    margin-left: -10px;
  }

  .inline-product-btn-multiple {
    flex: 0.8;
    text-align: right;
    padding-right: 2px;
    margin-left: -10px;
  }

  .inline-product-button-multiple {
    padding: 5px 6px;
    font-size: 12px;
    white-space: nowrap;
    min-width: 65px;
  }

  .inline-product-offer-multiple {
    padding: 0;
  }

  .inline-product-more-btn-multiple {
    padding: 6px;
    font-size: 11px;
    margin-top: 2px;
  }

  .inline-product-price-multiple {
    font-size: 14px;
  }
}

@media (max-width: 1698px) and (min-width: 1027px) {
  .inline-product-wrap-multiple {
    flex-flow: row nowrap;
    justify-content: space-between;
    gap: 10px;
  }

  .inline-product-merchant-multiple {
    flex: 0 0 auto;
    text-align: left;
    justify-content: flex-start;
  }

  .inline-product-details-multiple {
    flex: 0 0 auto;
    text-align: center;
  }

  .inline-product-btn-multiple {
    flex: 0 0 auto;
    min-width: 0;
    text-align: right;
  }
}

@media (max-width: 1300px) {
  .inline-product-card-multiple {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    margin-bottom: 15px;
  }

  .product-link-multiple {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .product-price-button-section {
    width: 100%;
  }

  .inline-product-left-multiple {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .inline-product-content-multiple {
    flex-direction: column;
    width: 100%;
    padding: 10px 5px;
  }

  .inline-product-right-multiple {
    width: 100%;
    padding: 18px 5px;
    align-items: center;
  }

  .inline-product-title-text-multiple a {
    font-size: 18px;
    text-align: center;
    display: block;
  }

  .product-card-pros-multiple {
    padding-left: 15px;
    margin: 10px 0;
  }

  .inline-product-price-section-multiple {
    margin: 10px 0;
    box-sizing: border-box;
  }

  .inline-product-wrap-multiple {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
  }

  .inline-product-shop-multiple {
    width: 100%;
    align-items: center;
  }

  .inline-product-merchant-multiple {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
    text-align: left;
  }

  .inline-product-price-multiple {
    font-size: 14px;
  }

  .inline-product-details-multiple {
    flex: 0 0 auto;
    width: auto;
    text-align: center;
  }

  .inline-product-btn-multiple {
    flex: 0 0 auto;
    width: auto;
    text-align: right;
  }

  .inline-product-button-multiple {
    width: 100%;
    max-width: 100%;
  }

  .product-rating {
    justify-content: center;
    margin: 5px 0;
  }

  .inline-product-card-multiple .product-img-multiple {
    max-width: 200px;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .inline-product-card-multiple {
    padding: 8px;
  }

  .inline-product-title-text-multiple a {
    font-size: 16px;
  }

  .item-pros {
    font-size: 11px;
  }

  .inline-product-wrap-multiple {
    gap: 5px;
  }

  .inline-product-button-multiple {
    font-size: 13px;
    padding: 8px 5px;
    white-space: nowrap;
  }

  .inline-product-price-multiple {
    font-size: 14px;
  }

  .inline-product-logo-multiple {
    width: 24px;
    height: 24px;
    margin-right: 5px;
  }
}

.inline-product-merchant-multiple img,
.inline-product-price-multiple,
.inline-product-button-multiple {
  max-width: 100%;
  box-sizing: border-box;
}

.product-cloaked-link {
  cursor: pointer;
  text-decoration: none;
}

.product-cloaked-link:hover {
  opacity: 0.9;
}
