
/*
 * The William Category Surgical Patch v1.0.2
 * Scope: category product cards + runtime resilience only.
 */

/* Product card positioning without introducing a visible border. */
body.tax-product_cat .product-card,
body.post-type-archive-product .product-card,
.tw-archive-v8 .product-card,
.tw-category .product-card,
.tw-archive-v8 .quote-card,
.tw-category .quote-card{
  position:relative;
}

/* Chromium-white helper directly under the product name. */
.tw-order-helper{
  display:flex;
  align-items:center;
  gap:10px;
  width:max-content;
  max-width:100%;
  margin:7px 0 13px;
  padding:0;
  border:0;
  background:transparent;
  font-size:11px;
  line-height:1.25;
  font-weight:650;
  letter-spacing:.055em;
  white-space:nowrap;
  color:#eef0f1;
  background-image:linear-gradient(92deg,#ffffff 0%,#c8ccd0 38%,#fafafa 62%,#aeb4b9 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 1px 0 rgba(255,255,255,.04);
  opacity:.94;
}

.tw-order-helper__icon{
  flex:0 0 auto;
  width:16px;
  height:16px;
  margin-left:6px;
  color:#ff6410;
  -webkit-text-fill-color:#ff6410;
  filter:drop-shadow(0 0 8px rgba(255,100,16,.16));
  transform:translateY(-.25px);
}

.tw-order-helper__icon svg{
  display:block;
  width:100%;
  height:100%;
  stroke:currentColor;
  fill:none;
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Truthful diagonal on-sale ribbon. No border line. */
.tw-sale-ribbon{
  position:absolute;
  z-index:18;
  top:18px;
  right:-43px;
  width:150px;
  min-height:28px;
  padding:7px 24px 6px;
  transform:rotate(42deg);
  transform-origin:center;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0!important;
  outline:0!important;
  background:linear-gradient(180deg,#111314 0%,#020303 100%);
  color:#fff;
  box-shadow:0 10px 22px rgba(0,0,0,.28);
  font-size:10px;
  line-height:1;
  font-weight:780;
  letter-spacing:.105em;
  text-transform:uppercase;
  pointer-events:none;
}

/* Deterministic strip states. JS owns the text swap so it cannot fail
   because of a stale nth-child/keyframe contract. */
.tw-strip-runtime{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate;
}
.tw-strip-runtime::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.17) 47%,transparent 72%);
  transform:translateX(-135%);
  animation:twPatchStripShine 5.6s cubic-bezier(.22,.61,.36,1) infinite;
  pointer-events:none;
}
.tw-strip-runtime__label{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  opacity:1;
  transform:translateY(0);
  transition:opacity .42s ease,transform .42s cubic-bezier(.22,.61,.36,1),filter .42s ease;
  color:#fff;
}
.tw-strip-runtime__label.is-leaving{
  opacity:0;
  transform:translateY(-7px);
  filter:blur(4px);
}
.tw-strip-runtime__label.is-entering{
  opacity:0;
  transform:translateY(7px);
  filter:blur(4px);
}
@keyframes twPatchStripShine{
  0%,58%{transform:translateX(-135%);opacity:0}
  70%{opacity:.8}
  90%,100%{transform:translateX(135%);opacity:0}
}

@media(max-width:767px){
  .tw-order-helper{
    margin:5px 0 10px;
    gap:8px;
    font-size:9.5px;
    letter-spacing:.035em;
  }
  .tw-order-helper__icon{
    width:14px;
    height:14px;
    margin-left:5px;
  }
  .tw-sale-ribbon{
    top:13px;
    right:-49px;
    width:145px;
    min-height:25px;
    padding:6px 22px 5px;
    font-size:8.5px;
    letter-spacing:.09em;
  }
}

@media(prefers-reduced-motion:reduce){
  .tw-strip-runtime::before{animation:none!important;display:none}
  .tw-strip-runtime__label{transition:none!important}
}


/* v1.0.2 — make the quote helper icon a little bigger and more visible,
   while keeping the priced helper icon at the previous refined size. */
.tw-order-helper.is-quote .tw-order-helper__icon{
  width:18px;
  height:18px;
  margin-left:8px;
  filter:drop-shadow(0 0 9px rgba(255,100,16,.20));
}

.tw-order-helper.is-priced .tw-order-helper__icon{
  width:16px;
  height:16px;
  margin-left:6px;
}

@media(max-width:767px){
  .tw-order-helper.is-quote .tw-order-helper__icon{
    width:15px;
    height:15px;
    margin-left:6px;
  }
  .tw-order-helper.is-priced .tw-order-helper__icon{
    width:14px;
    height:14px;
    margin-left:5px;
  }
}
