/**
 * @author    Veo by Kebes <hola@kebes.es>
 * @copyright 2026 Veo by Kebes
 * @license   https://opensource.org/licenses/AFL-3.0  Academic Free License 3.0 (AFL-3.0)
 */
.veocmp-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 4px 0;
  margin: 4px 0;
  font: inherit;
  font-size: .875rem;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.veocmp-btn:hover .veocmp-btn-text {
  text-decoration: underline;
}
.veocmp-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  flex: 0 0 auto;
  position: relative;
}
.veocmp-btn.is-on .veocmp-box {
  background: currentColor;
}
.veocmp-btn.is-on .veocmp-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.veocmp-btn-list {
  display: flex;
  margin: 6px auto 0;
}
.veocmp-product-action {
  margin: 12px 0;
}

.veocmp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, .12);
  padding: 10px max(16px, calc((100% - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.veocmp-bar[hidden] {
  display: none;
}
html.veocmp-has-bar body {
  padding-bottom: 80px;
}
.veocmp-bar-items {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.veocmp-bar-item {
  position: relative;
  width: 56px;
  height: 56px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}
.veocmp-bar-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.veocmp-bar-slot {
  border-style: dashed;
  background: #f9fafb;
}
.veocmp-bar-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #374151;
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  padding: 0;
  cursor: pointer;
}
.veocmp-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.veocmp-bar-go[aria-disabled] {
  opacity: .5;
  cursor: not-allowed;
}
.veocmp-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.veocmp-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 1041;
  max-width: calc(100% - 32px);
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .9rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}
.veocmp-toast[hidden] {
  display: none;
}
.veocmp-toast-btn {
  margin-left: 12px;
  background: #fff;
  color: #111827;
  border: 0;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
}

.veocmp-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.veocmp-diff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}
.veocmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.veocmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 560px;
}
.veocmp-table th,
.veocmp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  text-align: left;
  background: #fff;
}
.veocmp-table .veocmp-label {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 180px;
  font-weight: 600;
  background: #f9fafb;
}
.veocmp-product {
  position: relative;
  text-align: center !important;
}
.veocmp-product img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto 8px;
}
.veocmp-product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.veocmp-name {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.veocmp-price {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.veocmp-remove {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 22px;
  line-height: 1;
  color: #6b7280;
  text-decoration: none;
}
.veocmp-cart {
  margin: 0;
}
.veocmp-group th {
  background: #f3f4f6 !important;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  position: static !important;
}
.veocmp-differs td {
  background: #fffbeb;
}
.veocmp-only-diff .veocmp-same {
  display: none;
}
.veocmp-none {
  color: #9ca3af;
}
.veocmp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 767px) {
  .veocmp-bar {
    padding: 10px 12px;
  }
  .veocmp-bar-item {
    width: 44px;
    height: 44px;
  }
  .veocmp-bar-items {
    gap: 8px;
  }
  .veocmp-table .veocmp-label {
    width: 110px;
    font-size: .85rem;
  }
  .veocmp-table {
    min-width: 0;
    width: auto;
  }
  .veocmp-table th.veocmp-product,
  .veocmp-table td {
    min-width: 150px;
  }
}
