/* Only hide native cart links once the replacement feedback is running. */
body.plsn-ce-ready :is(ul.products,#woosq-popup) .added_to_cart.wc-forward { display: none !important; }
#plsn-ce-toast[hidden], #plsn-ce-toast [hidden] { display: none !important; }
#plsn-ce-toast {
  --plsn-ce-top: max(100px, var(--plsn-scroll-offset, 100px));
  --plsn-ce-bottom: 24px;
  position: fixed; inset: auto; left: 22px; right: auto; top: var(--plsn-ce-top); bottom: auto; z-index: 2147483000;
  width: min(420px, calc(100vw - 28px)); max-height: calc(100dvh - var(--plsn-ce-top) - var(--plsn-ce-bottom));
  overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
  padding: 18px; background: #fff; border: 1px solid #e3e8ed; border-radius: 14px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 16%), 0 4px 14px rgb(0 0 0 / 8%); color: #1f2933;
  font-family: var(--pl-font, Tahoma, Arial, sans-serif); font-size: 15px; line-height: 1.6;
  text-align: start; animation: plsn-ce-enter .18s ease-out;
}
#plsn-ce-toast .plsn-ce-close {
  position: absolute; top: 8px; left: 8px; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: #52616d;
  font-size: 26px; min-height: 44px; line-height: 1; display: grid; place-items: center;
}
#plsn-ce-toast .plsn-ce-heading { display: flex; align-items: center; gap: 9px; padding-left: 40px; margin-bottom: 0; }
#plsn-ce-toast .plsn-ce-heading strong { font-size: 15px; font-weight: 600; }
#plsn-ce-toast .plsn-ce-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; background: #ecfdf3; color: #22c55e; border-radius: 50%; font-weight: 700; }
#plsn-ce-toast .plsn-ce-item { display: flex; align-items: center; gap: 13px; margin-top: 17px; padding-top: 16px; border-top: 1px solid #edf0f3; }
#plsn-ce-toast .plsn-ce-item > div { min-width: 0; }
#plsn-ce-toast img { width: 72px; height: 72px; flex: 0 0 72px; object-fit: contain; border-radius: 9px; }
#plsn-ce-toast p { margin: 0; }
#plsn-ce-toast .plsn-ce-title { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
#plsn-ce-toast .plsn-ce-price { color: #475569; font-size: 14px; font-weight: 700; margin-top: 5px; unicode-bidi: plaintext; text-align: right; }
#plsn-ce-toast .plsn-ce-message { color: #52616d; margin-top: 12px; font-size: 14px; overflow-wrap: anywhere; }
#plsn-ce-toast .plsn-ce-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#plsn-ce-toast .plsn-ce-actions > * { flex: 1 1 140px; min-height: 46px; padding: 9px 12px; border-radius: 7px; text-align: center; font: inherit; font-size: 14px; font-weight: 600; box-sizing: border-box; text-decoration: none; }
#plsn-ce-toast .plsn-ce-primary { color: #fff; background: #0b7f79; border: 1px solid #0b7f79; }
#plsn-ce-toast .plsn-ce-primary:hover { background: #096a65; }
#plsn-ce-toast .plsn-ce-continue { color: #33433d; background: #fff; border: 1px solid #aebfb8; }
#plsn-ce-toast .plsn-ce-close:hover, #plsn-ce-toast .plsn-ce-continue:hover { background: #eef5f2; }
#plsn-ce-toast :is(a,button):focus-visible { outline: 3px solid #0b7f79; outline-offset: 3px; }
#plsn-ce-toast.is-error { border-color: #d98b85; }
#plsn-ce-toast.is-error .plsn-ce-icon { background: #fff0ee; color: #b42318; }
#plsn-ce-toast.is-partial .plsn-ce-icon { background: #fff5db; color: #8a5900; }
#woosq-popup .plsn-ce-form-error { flex-basis: 100%; width: 100%; padding: 12px 14px; margin-bottom: 12px; background: #fff1ef; color: #9b241c; border: 1px solid #d98b85; border-radius: 10px; font-size: 14px; }
#woosq-popup .plsn-ce-form-error[hidden] { display: none; }
#woosq-popup [aria-invalid=true] { border-color: #b42318 !important; box-shadow: 0 0 0 1px #b42318 !important; }
#woosq-popup form[aria-busy=true] .single_add_to_cart_button { opacity: .7 !important; cursor: progress; }
/* Remove the stretched title gap; preserve the site's existing product-card layout. */
#main ul.products > li.product:not(.product-category) { height: auto !important; min-height: 0 !important; }
#main ul.products li.product .woocommerce-loop-product__title {
  min-height: 3.3em !important; height: auto !important; margin-block: 14px 10px !important;
  padding-block: 0 !important; font-size: var(--pl-card-title, 15px) !important;
  line-height: 1.65 !important; overflow-wrap: anywhere;
}
#main ul.products li.product .ct-woo-card-actions { gap: 10px !important; }
/* Post categories are separate from WooCommerce product categories. */
body.category:not(.woocommerce) #main > .hero-section {
  background: #f1f6f4 !important; padding: 28px 24px !important; min-height: 0 !important;
  border-bottom: 1px solid #dce6e0;
}
body.category:not(.woocommerce) #main .hero-section .entry-header { padding: 0 !important; min-height: 0 !important; gap: 12px; }
body.category:not(.woocommerce) #main .hero-section .page-title { font-size: clamp(24px,3vw,36px) !important; color: #18232e !important; line-height: 1.5 !important; margin: 12px 0 !important; }
body.category:not(.woocommerce) #main .hero-section :is(.entry-meta,.page-description,.ct-breadcrumbs) { color: #52616d !important; }
body.category:not(.woocommerce) #main > .ct-container { width: calc(100% - 48px) !important; max-width: 1552px !important; padding-block: 28px 40px !important; }
body.category:not(.woocommerce) #main .entries { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)) !important; gap: 20px !important; }
body.category:not(.woocommerce) #main .entry-card { height: auto !important; align-self: start; border: 1px solid #dce6e0; border-radius: 14px; box-shadow: 0 3px 12px rgb(24 35 46 / 4%) !important; padding: 22px !important; gap: 14px; }
body.category:not(.woocommerce) #main .entry-title { font-size: 20px !important; line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 719px) {
  body.category:not(.woocommerce) #main > .ct-container { width: calc(100% - 28px) !important; }
  body.category:not(.woocommerce) #main > .hero-section { padding: 22px 16px !important; }
  body.category:not(.woocommerce) #main .entry-card { padding: 18px !important; }
}
@media (max-width: 600px) {
  #plsn-ce-toast { --plsn-ce-top: max(calc(70px + env(safe-area-inset-top)), var(--plsn-scroll-offset, 70px)); --plsn-ce-bottom: max(20px, env(safe-area-inset-bottom)); left: 14px; right: 14px; width: auto; padding: 15px; }
  body.single-product #plsn-ce-toast { --plsn-ce-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 320px) {
  #plsn-ce-toast img { width: 58px; height: 58px; flex-basis: 58px; }
}
@media (prefers-reduced-motion: reduce) { #plsn-ce-toast { animation: none; } }
@keyframes plsn-ce-enter { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* PLSN catalog UI v1: currency chevron and stock stamp. */
#header .plmc-trigger {
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px;
  line-height: 1.4 !important;
}
#header .plmc-trigger > span:last-child {
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 12px;
  width: 12px;
  height: 14px;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: none !important;
}
#header .plmc-trigger > span:last-child::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s ease;
}
#header .plmc-trigger[aria-expanded=true] > span:last-child::before {
  transform: translateY(2px) rotate(225deg);
}
body.single-product .woocommerce-product-gallery .ct-product-gallery-container {
  position: relative;
  container-type: inline-size;
}
body.single-product .woocommerce-product-gallery .ct-product-gallery-container > .out-of-stock-badge {
  position: absolute !important;
  inset: auto !important;
  top: 50% !important;
  top: 50cqi !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(-11deg) !important;
  z-index: 4 !important;
  width: max-content !important;
  max-width: calc(100% - 32px) !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 8px 14px !important;
  margin: 0 !important;
  border: 2px solid #bf3939 !important;
  border-radius: 2px !important;
  background: rgb(255 255 255 / 90%) !important;
  color: #a92c2c !important;
  font: inherit !important;
  font-size: clamp(14px, 3.6cqi, 25px) !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  text-align: center !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  pointer-events: none !important;
}
@media (max-width: 480px) {
  #header .plmc-trigger { gap: 6px !important; min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  #header .plmc-trigger > span:last-child::before { transition: none; }
}
