/* === UpsellWP Addon: row layout (image | title | price | qty | round button) === */

/* 1) Container bounds */
.ase-uwp-widget,
.ase-uwp-list { max-width: 100%; }

.ase-uwp-list { display: grid; gap: 0px; }

/* 2) Item row grid */
.ase-uwp-item,
.ase-uwp-row {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: 56px 1fr auto auto auto; /* img | title | price | qty | btn */
  padding: 6px 0px;
  overflow: hidden;
}

/* 3) Image */
.ase-uwp-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.ase-uwp-image { display: inline-block; }

/* 4) Title */
.ase-uwp-title { align-self: center; }
.ase-uwp-title a,
.ase-uwp-title-link,
.ase-uwp-title-text {
  display: -webkit-box;
  color: #000;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
}
.ase-uwp-title a:hover,
.ase-uwp-title-link:hover { text-decoration: underline; }

/* 5) Right side cells */
.ase-uwp-price, .ase-uwp-qty, .ase-uwp-action { white-space: nowrap; }
.ase-uwp-price { font-size: 16px; line-height:1.2; font-weight: 600; color:#30A610; display:inline-flex; gap:6px;l }
.ase-uwp-add   { min-width: 42px; text-align: right; }

/* 6) Price specifics */
.ase-uwp-price .woocommerce-Price-amount { display: block; font-size: 16px; font-weight: 600; color: #30A610 }
.ase-uwp-price .price .woocommerce-Price-amount { display: block; }

/* 7) Compact qty control */
.ase-uwp-qtywrap {
  display: inline-grid;
  grid-auto-flow: column;
  grid-template-columns: 16px 30px 16px; /* - | input | + */
  align-items: center;
  height: 28px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  vertical-align: middle;
}
.ase-uwp-qtybtn {
  width: 16px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0px;
  font-size: 15px !important;
  color: #6b7280;
  user-select: none;
}

.ase-uwp-qtybtn:hover{background: transparent; color:#6b7280}
.ase-uwp-qtybtn:focus{background: transparent; color:#6b7280}

.ase-uwp-qtyinput,
.ase-uwp-qty .qty,
.ase-uwp-qty input[type="number"] {
  width: 30px;
  min-width: 30px;
  height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  outline: none;
  -moz-appearance: textfield;
}
.ase-uwp-qtyinput::-webkit-outer-spin-button,
.ase-uwp-qtyinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ase-uwp-minus { padding-left: 5px; }
.ase-uwp-plus  { padding-right: 5px; }

/* 8) Add button (round) + states */
.ase-uwp-action { display: grid; justify-items: end; }
.ase-uwp-addbtn,
.ase-uwp-addtocart,
.ase-uwp-addbtn.is-link {
  width: 36px; height: 36px; min-width: 36px; min-height: 36px;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  display: inline-grid; place-items: center;
  border: 0; padding: 0;
  background: #6ec1e4 !important; /* blue */
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ase-uwp-addbtn.is-disabled,
.ase-uwp-addtocart.is-loading { opacity: .8; pointer-events: none; }

/* FA cart icon */
.ase-uwp-addbtn::before,
.ase-uwp-addtocart::before {
  content: "\f07a";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  display: inline-block;
}

/* Spinner */
.ase-uwp-addbtn.is-loading::after,
.ase-uwp-addtocart.is-loading::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.9);
  border-right-color: transparent;
  border-radius: 50%;
  animation: ase-uwp-spin .6s linear infinite;
}

.ase-uwp-addbtn.is-loading::before { opacity: 0; }

.ase-uwp-addbtn.is-ok::after { content: none; }

/* Checkmark after add */
.ase-uwp-addbtn.is-ok::before,
.ase-uwp-addtocart.is-added::before {
  content: "" !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background: no-repeat center / 16px 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5'/></svg>");
  pointer-events: none;
}

@keyframes ase-uwp-spin { to { transform: rotate(360deg); } }

/* Prefer inline SVG over Font Awesome */

/* Size/visibility for inline SVG cart */
.ase-uwp-icon-cart { width: 16px; height: 16px; display: block; }

/* Hide cart SVG when loading or when OK check is shown */
.ase-uwp-addbtn.is-loading .ase-uwp-icon-cart,
.ase-uwp-addbtn.is-ok .ase-uwp-icon-cart { opacity: 0; }

/* Hide Woo "View cart" link inside widget */
.ase-uwp-widget .added_to_cart.wc-forward { display: none !important; }

.ase-uwp-icon-cart
{ display: none;}

.ase-uwp-price del {
  color: #949494;                 /* set the del text color */
  text-decoration-color: currentColor; /* line uses the same color */
}

.ase-uwp-price del .amount
{ color:#949494}

.ase-uwp-template-title {
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 16px;
}

.ase-uwp-template-title {
  font-weight: 600;
  margin: 12px 0 8px;
  font-size: 16px;
}

/* Add a bit of space between campaign lists */
.ase-uwp-list + .ase-uwp-template-title {
  margin-top: 16px;
}

.ase-uwp-campaign-title {
  font-size: 13px;
  font-style: italic;
  line-height: 1.3;
  color: #6b7280; /* muted gray */
  margin-top: 2px;
}