.psl-smart-links {
  --psl-text: #252525;
  --psl-muted: #737373;
  --psl-border: #e4e4e4;
  --psl-soft: #f6f6f6;
  --psl-white: #fff;
  --psl-success: #247a43;
  --psl-success-soft: #eef8f1;
  clear: both;
  width: 100%;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--psl-border);
  border-radius: 14px;
  background: var(--psl-white);
  color: var(--psl-text);
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.45;
}

.psl-smart-links *,
.psl-smart-links *::before,
.psl-smart-links *::after {
  box-sizing: border-box;
}

.psl-smart-links [hidden] {
  display: none !important;
}

.psl-smart-links a {
  color: inherit;
  text-decoration: none;
}

.psl-smart-links a:hover {
  color: inherit;
}

.psl-smart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
}


.psl-smart-links.is-fbt-only .psl-smart-head { padding-bottom: 6px; }
.psl-smart-links.is-fbt-only .psl-fbt-panel { padding-top: 4px; }

.psl-smart-links .psl-smart-head h2 {
  margin: 0;
  color: var(--psl-text);
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.25;
}

.psl-compat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid #d2e8d8;
  border-radius: 999px;
  background: var(--psl-success-soft);
  color: var(--psl-success);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.psl-compat-badge.is-hidden {
  display: none;
}

.psl-main-tabs {
  display: flex;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid var(--psl-border);
}

.psl-smart-links .psl-main-tabs button {
  appearance: none;
  margin: 0 0 -1px;
  padding: 11px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--psl-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
  cursor: pointer;
}

.psl-smart-links .psl-main-tabs button[aria-selected="true"] {
  border-bottom-color: var(--psl-text);
  color: var(--psl-text);
  font-weight: 500;
}

.psl-main-tabs span,
.psl-group-switch .psl-group-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin: 0;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--psl-soft);
  color: var(--psl-muted);
  font-size: 10px;
  font-weight: 500;
}

/* The count has to stay legible once the selected tab turns black. */
.psl-smart-links .psl-group-switch button[aria-selected="true"] .psl-group-count,
.psl-smart-links .psl-group-switch .psl-group-static .psl-group-count {
  background: rgba(255, 255, 255, .22);
  color: var(--psl-white);
}

.psl-main-panel {
  padding: 14px 20px 18px;
}

.psl-panel-intro {
  margin: 0 0 12px;
  color: var(--psl-text);
  font-size: 15px;
  font-weight: 500;
}

.psl-group-switch-block {
  margin-bottom: 16px;
}

.psl-group-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin-bottom: 0;
  padding: 0;
  background: none;
}

.psl-smart-links .psl-group-switch button,
.psl-smart-links .psl-group-switch .psl-group-static {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  margin: 0;
  padding: 10px 13px 10px 16px;
  border: 1px solid var(--psl-border);
  border-radius: 18px;
  background: var(--psl-white);
  box-shadow: none;
  color: var(--psl-text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.psl-group-switch-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  background: transparent !important;
  color: inherit !important;
  line-height: 1.2;
}

.psl-group-switch-copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.psl-group-switch-copy small {
  margin-top: 3px;
  color: var(--psl-muted);
  font-size: 11px;
  font-weight: 450;
  line-height: 1.3;
  white-space: nowrap;
}

.psl-smart-links .psl-group-switch button[aria-selected="true"] .psl-group-switch-copy small,
.psl-smart-links .psl-group-switch .psl-group-static .psl-group-switch-copy small {
  color: rgba(255, 255, 255, .84);
}

.psl-smart-links .psl-group-switch button:hover {
  border-color: #b5b5b5;
}

.psl-smart-links .psl-group-switch button:focus-visible {
  outline: 2px solid var(--psl-text);
  outline-offset: 2px;
}

.psl-smart-links .psl-group-switch button[aria-selected="true"],
.psl-smart-links .psl-group-switch .psl-group-static {
  border-color: var(--psl-text);
  background: var(--psl-text);
  color: var(--psl-white);
  font-weight: 600;
}

.psl-smart-links .psl-group-switch .psl-group-static {
  cursor: default;
}

.psl-group-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 11px;
}

.psl-smart-links .psl-group-heading h3 {
  margin: 0;
  color: var(--psl-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.psl-group-heading p,
.psl-group-description {
  margin: 0 0 11px;
  color: var(--psl-muted);
  font-size: 12px;
  font-weight: 400;
}

.psl-selector-family {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--psl-border);
  border-radius: 12px;
  background: var(--psl-white);
}

.psl-selector-image-link {
  display: block;
  align-self: start;
  min-width: 0;
}

.psl-selector-image {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--psl-white);
}

.psl-selector-copy {
  align-self: start;
  min-width: 0;
  padding-top: 1px;
}

.psl-selector-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #858585;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.3;
}

.psl-smart-links .psl-selector-name {
  display: block;
  max-width: 72ch;
  color: var(--psl-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.psl-selector-helper {
  max-width: 72ch;
  margin: 3px 0 0;
  color: var(--psl-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.psl-option-label {
  display: block;
  margin: 11px 0 6px;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.psl-product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.psl-smart-links .psl-product-options button {
  appearance: none;
  overflow: hidden;
  max-width: 230px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: var(--psl-white);
  box-shadow: none;
  color: var(--psl-text);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.psl-smart-links .psl-product-options button:hover {
  border-color: #a9a9a9;
}

.psl-smart-links .psl-product-options button[aria-pressed="true"] {
  border-color: var(--psl-text);
  background: var(--psl-text);
  color: var(--psl-white);
  font-weight: 500;
}

.psl-smart-links button:focus-visible,
.psl-smart-links a:focus-visible,
.psl-smart-links input:focus-visible {
  outline: 2px solid #246fc7;
  outline-offset: 3px;
}

.psl-smart-links .psl-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid var(--psl-text) !important;
  overflow: hidden;
  border-radius: 8px !important;
  background: var(--psl-text) !important;
  box-shadow: none !important;
  color: var(--psl-white) !important;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  opacity: 1 !important;
  text-decoration: none !important;
  text-transform: none;
  cursor: pointer;
  isolation: isolate;
  transition: background-color .15s ease;
}

.psl-smart-links .psl-add-button:hover,
.psl-smart-links .psl-add-button:focus,
.psl-smart-links .psl-add-button:active {
  border-radius: 8px !important;
  background: #3a3a3a !important;
}

.psl-smart-links .psl-add-button:disabled {
  border-color: #d8d8d8 !important;
  background: #ededed !important;
  color: #888 !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

.psl-smart-links .psl-add-button.is-loading {
  opacity: .62 !important;
  cursor: wait;
}

.psl-smart-links .psl-add-button.is-added::before {
  content: "✓";
  display: grid;
  width: 17px;
  height: 17px;
  margin-right: 6px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-size: 10px;
  line-height: 1;
}

.psl-smart-links .added_to_cart.wc-forward {
  display: none !important;
}

.psl-link-button {
  white-space: nowrap;
}

.psl-compat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.psl-compat-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--psl-border);
  border-radius: 11px;
  background: var(--psl-white);
}

.psl-compat-card img {
  width: 76px;
  height: 88px;
  object-fit: contain;
  border-radius: 7px;
  background: var(--psl-white);
}

.psl-compat-card-copy {
  min-width: 0;
}

.psl-smart-links .psl-card-name {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.psl-compat-card p {
  margin: 4px 0 0;
  color: var(--psl-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.psl-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.psl-card-bottom > span {
  font-weight: 400;
  white-space: nowrap;
}

.psl-compat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.psl-compat-list-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--psl-border);
  border-radius: 11px;
  background: var(--psl-white);
}

.psl-compat-list-image {
  display: block;
  min-width: 0;
  grid-row: 1 / span 2;
}

.psl-compat-list-image img {
  display: block;
  width: 64px;
  height: 72px;
  object-fit: contain;
  border-radius: 7px;
  background: var(--psl-white);
}

.psl-compat-list-copy {
  min-width: 0;
}

.psl-smart-links .psl-compat-list-name {
  display: block;
  color: var(--psl-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.38;
}

.psl-compat-list-copy > p {
  margin: 3px 0 0;
  color: var(--psl-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.psl-compat-list-deal {
  display: block;
  margin-top: 5px;
  color: #38714d;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.psl-compat-list-buy {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.psl-compat-list-price {
  flex: 0 0 auto;
  color: var(--psl-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.psl-compat-list-buy .psl-add-control {
  width: auto;
  min-width: 0;
  margin-left: auto;
}

.psl-compat-list-buy .psl-add-button {
  min-width: 150px;
}

.psl-smart-links .psl-card-bottom .psl-add-button {
  min-height: 33px;
  padding: 7px 9px;
  font-size: 11px;
}

.psl-fbt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  column-gap: 18px;
  row-gap: 8px;
  align-items: start;
}

.psl-fbt-products {
  min-width: 0;
}

.psl-fbt-subline {
  grid-column: 1 / -1;
  margin: 0;
}

.psl-fbt-subheading {
  max-width: 78ch;
  margin: 0;
  color: var(--psl-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.psl-fbt-summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--psl-border);
  border-radius: 12px;
  background: #fafafa;
  align-self: start;
}

.psl-fbt-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.psl-fbt-summary-head strong {
  display: block;
  color: var(--psl-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.psl-fbt-discount-pill {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #cce4d3;
  border-radius: 999px;
  background: var(--psl-success-soft);
  color: var(--psl-success);
  line-height: 1;
  white-space: nowrap;
}

/* The label carries the meaning, the number carries the emphasis. A bare "-5%"
   reads as a price change on the product rather than a set discount. */
.psl-fbt-discount-pill small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .01em;
  opacity: .85;
}

.psl-fbt-discount-pill strong {
  font-size: 14px;
  font-weight: 700;
}

.psl-fbt-summary-copy {
  margin: 11px 0 15px;
  color: var(--psl-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

.psl-fbt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.psl-fbt-product-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  min-height: 138px;
  padding: 13px;
  border: 1px solid var(--psl-border);
  border-radius: 12px;
  background: var(--psl-white);
  transition: opacity .15s ease, border-color .15s ease;
}

.psl-fbt-current-card {
  border-color: #dedede;
  background: #fafafa;
}

.psl-fbt-card:not(.is-selected) {
  opacity: .7;
}

.psl-fbt-card.is-selected {
  border-color: #b9b9b9;
}

.psl-fbt-image-link {
  display: flex;
  align-items: center;
  min-width: 0;
}

.psl-fbt-product-card img {
  display: block;
  width: 88px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--psl-white);
}

.psl-fbt-card-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-width: 0;
}

.psl-fbt-card-kicker {
  display: block;
  margin: 0 26px 4px 0;
  color: #858585;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.psl-smart-links .psl-fbt-product-card .psl-card-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.psl-fbt-reason {
  margin: 5px 0 0;
  color: var(--psl-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.psl-product-deal {
  min-width: 0;
  color: var(--psl-text);
}

.psl-deal-copy {
  min-width: 0;
}

.psl-deal-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #247a43;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .055em;
  line-height: 1.25;
  text-transform: uppercase;
}

.psl-deal-headline {
  display: block;
  color: #176f3b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.psl-product-deal--compact {
  width: 100%;
  margin-top: 9px;
  padding: 9px 10px;
  border-left: 3px solid #2c8d54;
  border-radius: 0 7px 7px 0;
  background: #f3f9f5;
}

.psl-product-deal--compact .psl-deal-eyebrow {
  margin-bottom: 2px;
  font-size: 9px;
}

.psl-product-deal--compact .psl-deal-headline {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.psl-fbt-fixed-check {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #d2e8d8;
  background: var(--psl-success-soft);
}

.psl-fbt-fixed-check::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid var(--psl-success);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.psl-fbt-check {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  margin: 0;
  cursor: pointer;
}

.psl-fbt-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.psl-fbt-check-mark {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 1px solid #bababa;
  border-radius: 50%;
  background: var(--psl-white);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.psl-fbt-check input:focus-visible + .psl-fbt-check-mark {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.psl-fbt-check input:checked + .psl-fbt-check-mark {
  border-color: var(--psl-text);
  background: var(--psl-text);
}

.psl-fbt-check input:checked + .psl-fbt-check-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--psl-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.psl-fbt-check input:disabled + .psl-fbt-check-mark {
  border-color: #d8d8d8;
  background: #ededed;
  cursor: not-allowed;
}

.psl-fbt-price {
  margin: auto 0 0;
  padding-top: 9px;
  font-weight: 400;
  line-height: 1.3;
}

.psl-current-price {
  white-space: nowrap;
}

.psl-compat-summary-price .woocommerce-Price-amount,
.psl-compat-summary-price .woocommerce-Price-amount *,
.psl-card-bottom .woocommerce-Price-amount,
.psl-card-bottom .woocommerce-Price-amount *,
.psl-fbt-price .woocommerce-Price-amount,
.psl-fbt-price .woocommerce-Price-amount * {
  font-weight: 600 !important;
}

.psl-smart-links .woocommerce-price-suffix {
  color: var(--psl-muted);
  font-size: .88em;
  font-weight: 400 !important;
}

.psl-choose-link {
  display: inline-block;
  margin-top: 5px;
  color: var(--psl-muted) !important;
  font-size: 11px;
  font-weight: 400;
  text-decoration: underline !important;
}

.psl-fbt-total {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--psl-border);
}

.psl-fbt-total span,
.psl-fbt-total strong {
  display: block;
  font-weight: 400;
}

.psl-fbt-total .psl-price-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 5px;
}

.psl-selection-count {
  color: var(--psl-muted);
  font-size: 11px;
}

.psl-total-original {
  color: var(--psl-muted);
  font-size: 12px;
  font-weight: 400;
}

.psl-fbt-saving {
  display: block;
  margin-top: 2px;
  color: var(--psl-success);
  font-size: 11px;
  font-weight: 500;
}

.psl-smart-links .psl-total-price {
  margin-top: 1px;
  font-size: 17px;
  font-weight: 600;
}

.psl-smart-links .psl-fbt-add {
  width: 100%;
  margin-top: 15px;
}

.psl-fbt-summary .psl-status {
  margin-top: 9px;
  text-align: left;
}

.psl-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--psl-success);
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.psl-status:empty {
  display: none;
}

.psl-status.is-error {
  color: #b42318;
}

@media (max-width: 900px) {
  .psl-selector-family {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 14px;
  }

  .psl-selector-image {
    height: 100px;
  }

  .psl-compat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .psl-smart-links {
    margin: 20px 0;
    border-radius: 12px;
  }

  .psl-smart-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 16px 14px 11px;
  }

  .psl-main-tabs {
    gap: 12px;
    padding: 0 14px;
  }

  .psl-main-tabs button {
    flex: 1;
    min-height: 44px;
  }

  .psl-main-panel {
    padding: 13px 13px 15px;
  }

  .psl-group-switch {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .psl-group-switch::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .psl-group-switch button,
  .psl-group-switch .psl-group-static {
    flex: 0 0 auto;
    min-height: 54px;
  }

  .psl-selector-family {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
  }

  .psl-selector-image {
    height: 86px;
  }

  .psl-deal-headline {
    font-size: 13px;
  }

  .psl-product-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1px 0 4px;
    scrollbar-width: thin;
  }

  .psl-smart-links .psl-product-options button {
    flex: 0 0 auto;
    max-width: 190px;
  }

  .psl-compat-cards,
  .psl-fbt-grid {
    grid-template-columns: 1fr;
  }

  .psl-fbt-product-card {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 126px;
    padding: 11px;
  }

  .psl-fbt-product-card img {
    width: 78px;
    height: 90px;
  }

  .psl-fbt-add {
    width: 100%;
  }

  .psl-smart-links .psl-add-button,
  .psl-quantity-stepper {
    min-height: 44px;
  }
}

/* Trust context, operational product data and cart-aware deals. */
.psl-compat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(380px, .95fr);
  gap: 18px;
  align-items: stretch;
}

/* The card and the purchase summary read as one unit, so the shorter of the two
   grows to meet the taller instead of leaving a ragged edge. */
.psl-compat-layout.is-list-active,
.psl-compat-layout.is-cards-active {
  grid-template-columns: minmax(0, 1fr);
}
.psl-compat-layout.is-list-active .psl-compat-summary,
.psl-compat-layout.is-cards-active .psl-compat-summary {
  display: none;
}
.psl-compat-inline-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  min-height: 30px;
}
.psl-compat-inline-trust .psl-explanation-trigger { margin-left: auto; }
.psl-compat-inline-context { color: #777; font-size: 11px; line-height: 1.35; }
.psl-compat-inline-context small { color: #858585; }
.psl-compat-inline-context strong { color: #5f5f5f; font-weight: 600; }
.psl-compat-content { display: flex; flex-direction: column; min-width: 0; }
.psl-compat-content > .psl-group-panel:not([hidden]) { display: flex; flex: 1; flex-direction: column; }
.psl-compat-content .psl-selector-family { flex: 1; }
.psl-panel-intro { margin-bottom: 12px; font-size: 16px; font-weight: 500; }
.psl-compat-summary { display: flex; align-items: flex-start; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid var(--psl-border); border-radius: 12px; background: #fafafa; }
.psl-compat-summary-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; width: 100%; }
.psl-compat-summary-context { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; width: 100%; margin-top: 8px; color: #777; }
.psl-compat-summary-context small,
.psl-compat-summary-context strong { display: inline; overflow-wrap: anywhere; }
.psl-compat-summary-context small { color: #858585; font-size: 11px; font-weight: 400; line-height: 1.35; }
.psl-compat-summary-context strong { color: #5f5f5f; font-size: 12px; font-weight: 600; line-height: 1.4; }
.psl-compat-badge.is-pending { border-color: #e3e3e3; background: #f6f6f6; color: #5f5f5f; }

.psl-compat-summary-purchase { display: flex; flex-direction: column; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--psl-border); }
.psl-compat-summary.is-info-only .psl-compat-summary-purchase { display: none; }
.psl-compat-summary-price { color: var(--psl-text); font-size: 18px; font-weight: 600; line-height: 1.35; }
.psl-compat-summary-deal { width: 100%; margin-top: 12px; padding: 10px 0 0; border: 0; border-top: 1px solid #dce7df; border-radius: 0; background: transparent; }
.psl-compat-summary-deal[hidden] { display: none; }
.psl-compat-deal-eyebrow { display: block; margin-bottom: 2px; color: #5f7d69; font-size: 9px; font-weight: 600; letter-spacing: .04em; line-height: 1.25; text-transform: uppercase; }
.psl-compat-deal-headline { display: block; color: #38714d; font-size: 12px; font-weight: 600; line-height: 1.4; }
.psl-compat-deal-description { margin: 4px 0 0; color: #758078; font-size: 10px; font-weight: 400; line-height: 1.45; }
.psl-compat-deal-progress { display: block; margin-top: 5px; color: #68786e; font-size: 10px; font-weight: 400; line-height: 1.4; }
.psl-compat-summary-actions { width: 100%; margin-top: 12px; }
.psl-compat-summary-actions .psl-add-control { width: 100%; }
.psl-compat-summary-actions .psl-add-button { flex: 1; }
.psl-compat-summary-actions > .psl-add-button { width: 100%; }
.psl-compat-summary .psl-status { width: 100%; margin-top: 9px; text-align: left; }

.psl-smart-links .psl-explanation-trigger {
  appearance: none;
  margin: 0;
  padding: 3px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #545454;
  font: inherit;
  font-size: 11px;
  font-weight: 450;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
  cursor: pointer;
}

.psl-smart-links .psl-compat-summary .psl-explanation-trigger {
  appearance: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #5a5a5a !important;
  font: inherit !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-align: right;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-transform: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.psl-smart-links .psl-compat-summary .psl-explanation-trigger:hover,
.psl-smart-links .psl-compat-summary .psl-explanation-trigger:focus,
.psl-smart-links .psl-compat-summary .psl-explanation-trigger:active {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--psl-text) !important;
  opacity: 1 !important;
  transform: none !important;
}

.psl-product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-top: 5px; color: #858585; font-size: 11px; font-weight: 400; line-height: 1.35; }
.psl-product-stock.is-in-stock { color: var(--psl-success); }
.psl-product-stock.is-out-of-stock { color: #9d2d27; }
.psl-product-rating { display: inline-flex; align-items: center; gap: 4px; }
.psl-product-rating .star-rating { float: none; width: 5.4em; margin: 0; font-size: 9px; }
.psl-product-rating small { font-size: 9px; }

.psl-add-control { display: inline-flex; align-items: stretch; justify-content: flex-end; gap: 7px; }
.psl-quantity-stepper { display: inline-grid; grid-template-columns: 27px 31px 27px; min-height: 37px; overflow: hidden; border: 1px solid #d9d9d9; border-radius: 8px; background: #fff; }
.psl-smart-links .psl-quantity-stepper button,
.psl-smart-links .psl-quantity-stepper input {
  width: auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--psl-text);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: none;
}
.psl-smart-links .psl-quantity-stepper input { appearance: textfield; border-right: 1px solid #ececec; border-left: 1px solid #ececec; }
.psl-smart-links .psl-quantity-stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.psl-smart-links .psl-quantity-stepper button { cursor: pointer; }
.psl-smart-links .psl-quantity-stepper button:hover { background: #f3f3f3; }
.psl-card-bottom { flex-wrap: wrap; }
.psl-card-bottom .psl-add-control { margin-left: auto; }
.psl-card-bottom .psl-quantity-stepper { grid-template-columns: 24px 28px 24px; min-height: 33px; }

.psl-deal-progress { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr); align-items: center; gap: 8px; width: 100%; margin-top: 9px; }
.psl-deal-progress-track { height: 4px; overflow: hidden; border-radius: 999px; background: #dcebe1; }
.psl-deal-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--psl-success); transition: width .25s ease; }
.psl-deal-progress-text { color: #496153; font-size: 10px; line-height: 1.35; }
.psl-product-deal--compact .psl-deal-progress { grid-template-columns: 1fr; }
.psl-product-deal--compact .psl-deal-progress-text { font-size: 9px; }

.psl-dialog-layer { position: fixed; z-index: 999999; inset: 0; }
.psl-smart-links.has-open-dialog { overflow: visible; }
.psl-smart-links .psl-dialog-backdrop {
  appearance: none !important;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(18, 24, 20, .16) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: default;
}
.psl-smart-links .psl-dialog-backdrop:hover,
.psl-smart-links .psl-dialog-backdrop:focus { background: rgba(18, 24, 20, .16) !important; }
.psl-compat-dialog { position: absolute; top: 0; right: 0; width: min(400px, 92vw); height: 100%; overflow: auto; padding: 24px; background: #fff; box-shadow: -12px 0 42px rgba(0,0,0,.13); animation: psl-drawer-in .2s ease-out; }
@keyframes psl-drawer-in { from { transform: translateX(30px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.psl-compat-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--psl-border); }
.psl-dialog-kicker { color: var(--psl-success); font-size: 11px; }
.psl-compat-dialog h3 { margin: 5px 0 0; font-size: 20px; font-weight: 500; }
.psl-smart-links .psl-dialog-close {
  appearance: none !important;
  display: grid !important;
  flex: 0 0 42px !important;
  place-items: center;
  box-sizing: border-box !important;
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  aspect-ratio: 1 / 1;
  margin: -3px -3px 0 0 !important;
  padding: 0 !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #333 !important;
  font: inherit;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}
.psl-dialog-body { padding-top: 18px; color: #626262; font-size: 13px; }
.psl-dialog-lead { margin: 0; color: #555; font-size: 14px; line-height: 1.55; }
.psl-compat-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.psl-compat-facts > span { min-width: 0; padding: 10px 11px; border: 1px solid #e4e8e5; border-radius: 9px; background: #fafbfa; }
.psl-compat-facts small,
.psl-compat-facts strong { display: block; overflow-wrap: anywhere; }
.psl-compat-facts small { color: #858585; font-size: 9px; font-weight: 400; line-height: 1.25; }
.psl-compat-facts strong { margin-top: 3px; color: var(--psl-text); font-size: 12px; font-weight: 500; line-height: 1.3; }
.psl-dialog-assurance { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; padding: 12px 13px; border-radius: 9px; background: var(--psl-success-soft); color: #356148; font-size: 12px; line-height: 1.45; }
.psl-dialog-assurance > span { display: grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #dcefe2; color: var(--psl-success); font-size: 11px; font-weight: 600; }
body.psl-dialog-open { overflow: hidden; }

.psl-compat-pending,
.psl-compat-unavailable {
  min-height: 150px;
}

.psl-compat-pending-card,
.psl-compat-unavailable {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--psl-border);
  border-radius: 12px;
  background: #fafafa;
}

.psl-compat-pending-card p {
  max-width: 68ch;
  margin: 0;
  color: var(--psl-muted);
  font-size: 13px;
  line-height: 1.5;
}

.psl-compat-unavailable {
  color: #646464;
  font-size: 13px;
  line-height: 1.5;
}

.psl-smart-links.is-compat-updating .psl-compat-panel {
  position: relative;
  opacity: .55;
  pointer-events: none;
  transition: opacity .15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .psl-smart-links *,
  .psl-smart-links *::before,
  .psl-smart-links *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.psl-smart-links button:focus:not(:focus-visible),
.psl-smart-links a:focus:not(:focus-visible),
.psl-smart-links input:focus:not(:focus-visible) { outline: 0 !important; box-shadow: none !important; }

@media (max-width: 1050px) {
  .psl-fbt-layout,
  .psl-compat-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .psl-compat-summary { padding: 15px; }
  .psl-smart-links .psl-compat-summary .psl-explanation-trigger { white-space: normal; }
  .psl-add-control { width: 100%; }
  .psl-add-control .psl-add-button { flex: 1; }
  .psl-card-bottom .psl-add-control { margin-left: 0; }
  .psl-deal-progress { grid-template-columns: 1fr; }
  .psl-compat-dialog { top: auto; bottom: 0; width: 100%; height: min(82vh, 680px); padding: 20px; border-radius: 18px 18px 0 0; animation-name: psl-sheet-in; }
  @keyframes psl-sheet-in { from { transform: translateY(30px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
}

@media (max-width: 1100px) {
  .psl-compat-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .psl-compat-list-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 10px;
  }
  .psl-compat-list-image img {
    width: 58px;
    height: 64px;
  }
  .psl-compat-list-buy {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .psl-compat-list-buy .psl-add-control,
  .psl-compat-list-buy .psl-add-button {
    width: 100%;
  }
  .psl-compat-list-buy .psl-add-button {
    min-width: 0;
  }
  .psl-compat-inline-trust .psl-explanation-trigger {
    margin-left: 0;
  }
}

/* The combined shortcode keeps all available recommendations in one tabbed block. */
.psl-smart-links .psl-sets-panel{padding:0}
.psl-smart-links .psl-sets-panel .nfsl-ready-set{margin:0;border:0;border-radius:0}
@media(max-width:767px){.psl-smart-links .psl-main-tabs button{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:12px}}
