/* Shared catalog entry. Keep selectors separate from the parent themes. */
.rx-shop-entry-shell--home {
  padding-block-start: var(--rx2-header, 72px);
}

.rx-shop-entry-shell--price {
  padding-block-start: 82px;
}

.rx-shop-entry-shell--home + #main {
  padding-top: 0;
}

.rx-shop-entry-shell--price + .price-breadcrumb {
  padding-top: 18px;
}

.rx-shop-entry-shell .rx-shop-entry-banner {
  margin: 0;
  padding: 0;
  color: #142e49;
  background-color: #f1f6fb;
  background-image: linear-gradient(90deg, #587c9b13 1px, transparent 1px),
    linear-gradient(#587c9b13 1px, transparent 1px);
  background-size: 28px 28px;
  border-block-end: 1px solid #d9e3ec;
}

.rx-shop-entry-banner__inner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem) auto;
  gap: clamp(12px, 2.2vw, 30px);
  align-items: center;
  width: min(100%, 1240px);
  min-block-size: 108px;
  margin-inline: auto;
  padding: 8px clamp(14px, 3vw, 32px);
}

.rx-shop-entry-banner .rx-shop-entry-banner__title {
  margin: 0;
  color: #142e49;
  font-family: inherit;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.rx-shop-entry-banner__title span {
  display: inline-block;
  max-inline-size: 100%;
}

.rx-shop-entry-banner .rx-shop-entry-banner__copy {
  margin: 4px 0 0;
  color: #42586d;
  font-size: clamp(11px, 1.3vw, 14px);
  line-height: 1.5;
}

.rx-shop-entry-banner__visual {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-inline-size: 0;
  margin: 0;
}

.rx-shop-entry-banner__visual img {
  display: block;
  inline-size: min(100%, 300px);
  block-size: auto;
  filter: drop-shadow(0 5px 6px #15314d33);
}

.rx-shop-entry-banner a.rx-shop-entry-banner__action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  padding: 8px 19px;
  border: 1px solid #203e5e;
  border-radius: 5px;
  color: #fff;
  background: #203e5e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.rx-shop-entry-banner a.rx-shop-entry-banner__action:hover {
  color: #fff;
  background: #173450;
}

.rx-shop-entry-banner a.rx-shop-entry-banner__action:focus-visible {
  outline: 3px solid #3267a4;
  outline-offset: 3px;
}

/* The existing link and toggle pairs become a secondary resource row. */
.rx-shop-entry-shell #rx33-resources .rx33-inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 4px clamp(14px, 3vw, 32px);
}

.rx-shop-entry-shell #rx33-resources .rx33-intro,
.rx-shop-entry-shell #rx33-resources .rx33-primary svg,
.rx-shop-entry-shell #rx33-resources .rx33-primary small,
.rx-shop-entry-shell #rx33-resources .rx33-arrow {
  display: none;
}

.rx-shop-entry-shell #rx33-resources .rx33-pair {
  gap: 8px;
}

.rx-shop-entry-shell #rx33-resources .rx33-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 6px;
}

.rx-shop-entry-shell #rx33-resources .rx33-primary {
  align-items: center;
  min-block-size: 36px;
  padding: 6px 10px !important;
}

.rx-shop-entry-shell #rx33-resources .rx33-primary strong {
  font-size: 13px;
  line-height: 1.4;
}

.rx-shop-entry-shell #rx33-resources .rx33-toggle {
  gap: 6px;
  min-block-size: 36px;
  padding: 4px 8px !important;
  border-top: 0 !important;
  border-inline-start: 1px solid #deebe8 !important;
}

.rx-shop-entry-shell #rx33-resources .rx33-panel {
  padding-block-start: 8px;
}

.rx-shop-entry-settings {
  box-sizing: border-box;
  width: min(calc(100% - 28px), 1176px);
  margin: 10px auto;
  padding: 6px 12px;
  border: 1px solid #d9e3ec;
  border-radius: 5px;
  color: #203e5e;
  background: #f1f6fb;
  font: 13px/1.6 system-ui, sans-serif;
}

.rx-shop-entry-settings summary {
  display: list-item;
  cursor: pointer;
  font-weight: 600;
}

.rx-shop-entry-settings p {
  margin: 6px 0;
}

.rx-shop-entry-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 8px 4px;
}

.rx-shop-entry-settings__actions button {
  min-block-size: 34px;
  padding: 4px 10px;
  border: 1px solid #42637e;
  border-radius: 4px;
  color: #203e5e;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.rx-shop-entry-settings :is(summary, button):focus-visible {
  outline: 2px solid #3267a4;
  outline-offset: 2px;
}

/* Keep the existing price CTA over its own hero rather than over the new entry. */
@media (min-width: 961px) {
  .rx-shop-entry-shell--price ~ .price-lp .price-hero {
    position: relative;
  }

  .rx-shop-entry-shell--price ~ .price-lp #priceQuoteHero {
    position: absolute;
    top: 12px;
    right: 20px;
  }
}

@media (max-width: 880px) {
  .rx-shop-entry-banner__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  }
}

@media (max-width: 640px) {
  .rx-shop-entry-banner__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 8px;
    min-block-size: 118px;
    padding-block: 10px;
  }

  .rx-shop-entry-banner__text {
    grid-column: 1;
    grid-row: 1;
  }

  .rx-shop-entry-banner .rx-shop-entry-banner__title {
    font-size: 17px;
  }

  .rx-shop-entry-banner__visual {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .rx-shop-entry-banner a.rx-shop-entry-banner__action {
    grid-column: 1;
    justify-self: start;
    min-block-size: 44px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .rx-shop-entry-shell #rx33-resources .rx33-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .rx-shop-entry-shell #rx33-resources .rx33-toggle {
    min-block-size: 32px;
    border-top: 1px solid #deebe8 !important;
    border-inline-start: 0 !important;
  }
}
