.kweli-advantage-block {
  border: 1px solid var(--ka-badge-border);
  border-radius: 14px;
  padding: 14px;
  margin: 16px 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(99, 0, 56, 0.06);
}

.kweli-advantage-title {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--ka-accent);
  font-weight: 700;
}

.kweli-advantage-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  margin: 8px 0;
  clear: both;
}

.kweli-advantage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--ka-badge-border);
  border-radius: 999px;
  background: var(--ka-badge-bg);
  color: var(--ka-badge-text);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  max-width: 100%;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.kweli-advantage-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(99, 0, 56, 0.12);
  border-color: var(--ka-hover);
}

.kweli-advantage-badge .ka-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
  border-radius: 50%;
  background: rgba(99, 0, 56, 0.09);
  color: var(--ka-accent);
  flex: 0 0 auto;
}

.ka-style-solid .kweli-advantage-badge {
  background: var(--ka-accent);
  border-color: var(--ka-accent);
  color: #fff;
}

.ka-style-solid .kweli-advantage-badge .ka-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ka-style-outline .kweli-advantage-badge {
  background: #fff;
  border-color: var(--ka-accent);
  color: var(--ka-accent);
  box-shadow: none;
}

.ka-style-card .kweli-advantage-badge {
  border-radius: 12px;
  background: #fff;
  border-color: var(--ka-badge-border);
  box-shadow: 0 6px 18px rgba(99, 0, 56, 0.08);
}

.ka-single .kweli-advantage-badge {
  border-radius: 12px;
  align-items: flex-start;
  flex-direction: column;
  padding: 10px 11px;
  min-width: 150px;
  max-width: 230px;
}

.ka-single.ka-style-solid .kweli-advantage-badge .ka-description {
  color: rgba(255, 255, 255, 0.82);
}

.ka-single .ka-icon,
.ka-shop .ka-icon {
  line-height: 1;
}

.ka-single .ka-label {
  color: var(--ka-accent);
}

.ka-single.ka-style-solid .ka-label {
  color: #fff;
}

.ka-description {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #5f555b;
  margin-top: 2px;
}

.woocommerce ul.products li.product {
  position: relative;
}

.woocommerce ul.products li.product .kweli-advantage-badges.ka-shop {
  justify-content: center;
  margin: 7px 0 4px;
}

.woocommerce ul.products li.product .kweli-advantage-badge {
  font-size: 11px;
  padding: 5px 8px;
}

.woocommerce ul.products li.product .kweli-advantage-badge .ka-icon {
  width: 16px;
  height: 16px;
}

.woocommerce div.product div.images,
.woocommerce div.product .woocommerce-product-gallery {
  position: relative;
}

.kweli-advantage-badges.kweli-overlay {
  position: absolute;
  z-index: 9;
  margin: 0;
  max-width: calc(100% - 16px);
  pointer-events: auto;
}

.woocommerce ul.products li.product .kweli-advantage-badges.kweli-overlay,
.woocommerce div.product .woocommerce-product-gallery .kweli-advantage-badges.kweli-overlay {
  margin: 0;
}

.ka-position-image-top-left { top: 8px; left: 8px; justify-content: flex-start; }
.ka-position-image-top-center { top: 8px; left: 50%; transform: translateX(-50%); justify-content: center; }
.ka-position-image-top-right { top: 8px; right: 8px; justify-content: flex-end; }
.ka-position-image-middle-left { top: 50%; left: 8px; transform: translateY(-50%); justify-content: flex-start; }
.ka-position-image-middle-center { top: 50%; left: 50%; transform: translate(-50%, -50%); justify-content: center; }
.ka-position-image-middle-right { top: 50%; right: 8px; transform: translateY(-50%); justify-content: flex-end; }
.ka-position-image-bottom-left { bottom: 8px; left: 8px; justify-content: flex-start; }
.ka-position-image-bottom-center { bottom: 8px; left: 50%; transform: translateX(-50%); justify-content: center; }
.ka-position-image-bottom-right { bottom: 8px; right: 8px; justify-content: flex-end; }

@media (max-width: 768px) {
  .kweli-advantage-badges.ka-mobile-safe,
  .kweli-advantage-badges.ka-mobile-safe.kweli-overlay {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: auto !important;
    max-width: 100% !important;
  }

  .woocommerce ul.products li.product .kweli-advantage-badges.ka-shop {
    justify-content: flex-start;
    margin-top: 6px;
  }

  .kweli-advantage-block {
    padding: 12px;
  }

  .ka-single .kweli-advantage-badge {
    width: 100%;
    max-width: none;
  }

  .woocommerce ul.products li.product .kweli-advantage-badge {
    white-space: normal;
  }
}
