/*!
 * PRO Sales Booster
 *
 * @author    INGLOT E-commerce
 * @copyright Copyright (c) 2026 INGLOT
 * @license   Proprietary
 */

.psb-best {
  --psb-ink: #000;

--psb-line: #e5e5e5;

--psb-muted: #616161;

--psb-fs-ui: 12px;
  --psb-w-med: 500;

--psb-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .psb-best, .psb-best *, .psb-best *::before, .psb-best *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.psb-best {
  width: 100%;
  margin: 20px auto;
  padding-right: 0;
  float: right;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: var(--psb-fs-ui);
  font-weight: 400;
}

.psb-best-title {
  margin-bottom: 15px;
  padding-left: 20px;
  font-size: var(--psb-fs-ui);
  font-weight: var(--psb-w-med);
  color: var(--psb-ink);
}

.psb-best-grid {
  display: flex;
  justify-content: space-between;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--psb-line);
  border-right: 1px solid var(--psb-line);
  border-bottom: 1px solid var(--psb-line);
}

@media (min-width: 1025px) {
  .psb-best-grid {
    margin-left: -1px;
  }
}

.psb-best-item {
  position: relative;
  display: flex;

flex: 1 1 0;
  flex-direction: column;
  background: #fff;
}

.psb-best-image {
  border-left: 1px solid var(--psb-line);
}

.psb-best-image-link {
  display: block;
  text-decoration: none;
}

.psb-best-stack {
  position: relative;
  display: block;
  overflow: hidden;
}

.psb-best-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.psb-best-img--secondary {
  display: none;
}

.psb-best-info {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px;
  border-left: 1px solid var(--psb-line);
}

.psb-best-name {
  margin-bottom: 10px;
  font-size: var(--psb-fs-ui);
  font-weight: var(--psb-w-med);
  line-height: 1.4;
  color: var(--psb-ink);
}

.psb-best-name-link {
  color: inherit;
  text-decoration: none;
}

.psb-best-name-link:hover {
  color: var(--psb-ink);
  text-decoration: underline;
}

.psb-best-qty {
  margin: -4px 0 10px;
  font-size: var(--psb-fs-ui);
  line-height: 1.4;
  color: var(--psb-muted);
}

.psb-best-price-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-top: auto;
  margin-bottom: 10px;
}

.psb-best-price {
  font-weight: var(--psb-w-med);
  color: var(--psb-ink);
}

.psb-best-price--discount {
  color: #e30613;
}

.psb-best-price-old {
  font-size: 11px;
  color: var(--psb-muted);
  text-decoration: line-through;
}

.psb-best-form {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;
}

.psb-best-cta {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  color: var(--psb-ink);
  font-size: var(--psb-fs-ui);
  font-weight: var(--psb-w-med);
  line-height: 1em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.psb-best-cta:hover {
  text-decoration: underline;
}

.psb-best-cta:disabled {
  color: #ccc;
  text-decoration: none;
  cursor: not-allowed;
}

@media (min-width: 769px) and (hover: hover) {
  .psb-best-stack--dual .psb-best-img--secondary {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    pointer-events: none;
    object-fit: contain;
    transition: opacity 0.28s var(--psb-ease-out);
  }

.psb-best-item:hover .psb-best-img--secondary {
    opacity: 1;
  }

.psb-best-form {
    display: block;
    opacity: 0;
    pointer-events: none;
  }

.psb-best-item:hover .psb-best-price-row .psb-best-price,
  .psb-best-item:hover .psb-best-price-row .psb-best-price-old,
  .psb-best-item:focus-within .psb-best-price-row .psb-best-price,
  .psb-best-item:focus-within .psb-best-price-row .psb-best-price-old {
    opacity: 0;
  }

.psb-best-item:hover .psb-best-form,
  .psb-best-item:focus-within .psb-best-form {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768.98px), (hover: none) {
  .psb-best-form {
    position: static;
    display: block;
    width: 100%;
    height: auto;
  }

.psb-best-price-row {
    flex-wrap: wrap;
  }

button.psb-best-cta {
    height: 30px;
    justify-content: flex-start;
    font-size: 10px;
  }
}
