/* Keep the existing card and image grids. Adjust type and actions within them. */
:is(#adpick-live-results, #discovered-shop-products) article h4 {
  font-size: .9375rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

:is(#adpick-live-results, #discovered-shop-products) article > div + div > p {
  font-size: .8125rem;
}

:is(#adpick-live-results, #discovered-shop-products) article a[rel~="sponsored"] {
  min-height: 44px;
  padding-inline: .875rem;
  font-size: .875rem;
  color: #17419a;
  background: #edf3ff;
}

:is(#adpick-live-results, #discovered-shop-products) article a:not([rel~="sponsored"]) {
  font-size: .875rem;
}

:is(#adpick-live-results, #discovered-shop-products) article {
  display: grid;
  grid-template-columns: minmax(70px, 26%) minmax(0, 1fr);
  align-items: start;
}

:is(#adpick-live-results, #discovered-shop-products) article > div:first-child {
  width: 100%;
  aspect-ratio: 1;
}

:is(#adpick-live-results, #discovered-shop-products) article > div:first-child:has(> span) {
  display: none;
}

:is(#adpick-live-results, #discovered-shop-products) article > div + div {
  min-width: 0;
}

:is(#adpick-live-results, #discovered-shop-products) article:has(> div:first-child > span) > div + div {
  grid-column: 1 / -1;
}

@media (max-width: 639px) {
  #discovered-shop-products ul:has(> li article a[rel~="sponsored"]) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ps-home-featured-grid .ps-product-surface > div > p:first-child {
  font-size: .875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

:is(.ps-home-featured-grid, .ps-price-context-card) strong.ps-card-price {
  font-size: 1.125rem;
}

.ps-price-context-card > a > div:nth-child(2) > p {
  font-size: .875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

:is(.ps-home-featured-grid, .ps-price-context-card) :is(span.ps-card-price, .ps-card-signal + span, time, [aria-label="상품 옵션·수량"]) {
  font-size: .75rem;
}

.ps-price-context-card > a > div:nth-child(2) > div:last-child {
  min-height: 44px;
  font-size: .8125rem;
}

#root :is(header, main) :is(a, button):focus-visible {
  outline: 2px solid #16449c;
  outline-offset: 3px;
}

#root header a[href^="/login"],
#root a.text-xs.text-ink-soft.hover\:underline[href="/"],
#root a[href^="/login"].bg-trust {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
}

#root main:has(h1) button.mt-3.rounded-lg.bg-trust {
  min-height: 44px;
  font-size: .875rem;
}

.purchase-list header nav a,
.purchase-list .price-list-pagination a,
.purchase-list .price-list-toolbar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .625rem;
  font-size: .875rem;
}

.purchase-list .product-name {
  font-size: .9375rem;
  overflow-wrap: anywhere;
}

.purchase-list .product-body :is(.detected, .listing-check, .previous) {
  font-size: .8125rem;
}

.purchase-detail .cta-row :is(.cta, .cta-secondary),
.purchase-detail .action-card .cta {
  min-height: 44px;
  font-size: .875rem;
}

.purchase-affiliate article .button {
  font-weight: 700;
}

.purchase-affiliate article a[href*="travel-ticket-checklist"] {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 44px;
}

.purchase-guide .read-link,
.purchase-guide .actions .button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
}
