/* Opportunity cards follow the badge configured in the product editor. */
.wz-card.ty-card.wy-opportunity-card {
  border: 1px solid transparent !important;
  border-radius: 12px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #075a50 0%, #368472 32%, #dca044 66%, #ff7900 100%) border-box !important;
  box-shadow: 0 3px 12px rgba(7, 90, 80, .07);
}
.wz-card.ty-card.wy-opportunity-card:hover {
  border-color: transparent !important;
  box-shadow: 0 7px 20px rgba(7, 90, 80, .13);
}
.wy-opportunity-card .wz-badge-container.top-left {
  top: 0;
  left: 0;
  max-width: calc(100% - 45px);
}
.wy-opportunity-card .wz-badge-container.top-left > div {
  background: linear-gradient(105deg, #075a50 0%, #075a50 52%, #ba681f 100%) !important;
  color: #fff !important;
  border: 0;
  border-radius: 10px 0 9px 0;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  box-shadow: none;
}
.wy-opportunity-card .wy-opportunity-status {
  background: linear-gradient(100deg, #e4f1ec 0%, #f8f4e9 55%, #ffead4 100%);
  color: #075a50;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 4px;
  letter-spacing: .02em;
}
@media (max-width: 480px) {
  .wy-opportunity-card .wz-badge-container.top-left > div {
    padding: 5px 7px;
    font-size: 9px;
  }
  .wy-opportunity-card .wy-opportunity-status { font-size: 9px; }
}

/* New-product badge: flush with the top-left card corner. */
.ty-card .wz-badge-container.top-left.wy-new-corner {
  top: 0;
  left: 0;
  max-width: calc(100% - 45px);
}
.ty-card .wy-new-badge {
  background: linear-gradient(105deg, #075a50 0%, #075a50 48%, #ba681f 100%) !important;
  color: #fff !important;
  border: 0;
  border-radius: 10px 0 9px 0;
  padding: 6px 11px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .045em;
  box-shadow: none;
}
@media (max-width: 480px) {
  .ty-card .wy-new-badge { padding: 5px 8px; font-size: 9px; }
}

/* Bestselling labels: amber side tab with a brand-green star seal. */
.ty-card .wz-badge-container.wy-bestseller-corner:is(.top-right, .top-left) {
  top: 0;
  left: 0;
  right: auto;
  align-items: flex-start;
  max-width: calc(100% - 44px);
}
.ty-card .wy-bestseller-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(110deg, #ffbe62 0%, #ff982b 58%, #ff7900 100%) !important;
  color: #064b43 !important;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  padding: 4px 9px 4px 4px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.25;
  box-shadow: 0 2px 6px rgba(129, 64, 10, .13);
}
.ty-card .wy-bestseller-corner:is(.top-right, .top-left) .wy-bestseller-badge {
  border-top: 0;
  border-left: 0;
  border-radius: 10px 0 14px 0;
}
.wy-bestseller-badge .wy-bestseller-seal {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #075a50;
  color: #fff2d4;
}
.wy-bestseller-seal svg { display: block; width: 11px; height: 11px; }
@media (max-width: 480px) {
  .ty-card .wy-bestseller-badge { font-size: 9px; gap: 4px; padding: 3px 7px 3px 3px; }
  .wy-bestseller-badge .wy-bestseller-seal { flex-basis: 16px; width: 16px; height: 16px; }
}

/* Reserve a clear label area so the corner badge never covers the product. */
.ty-card .ty-card-img:has(.wy-bestseller-badge) > img {
  padding-top: 36px !important;
  object-fit: contain !important;
}
@media (max-width: 480px) {
  .ty-card .ty-card-img:has(.wy-bestseller-badge) > img {
    padding-top: 32px !important;
  }
}
