/* Homepage surfaces and illustrations are independent of the product pages. */
.cf-market-home #marketHome {
  --home-ink: #18181b;
  --home-muted: #55555b;
  --home-line: #e4e4e7;
  --home-stage: #f2f2f4;
  --home-radius: 16px;
  color: var(--home-ink);
  padding-block: clamp(12px, 2.2vw, 28px) clamp(20px, 4vw, 48px);
}
.cf-market-home #marketHome .market-campaign-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 300px;
  background: #17171a;
  border-radius: var(--home-radius);
  overflow: hidden;
}
.cf-market-home #marketHome .market-campaign-copy { width: auto; max-width: none; }
.cf-market-home #marketHome .market-campaign-main .market-hero-art {
  position: relative;
  min-height: 0;
  height: clamp(280px, 25vw, 348px);
  opacity: 1;
}
.cf-market-home #marketHome .market-hero-art img {
  position: absolute;
  display: block;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 12px 25px #0004;
}
.cf-market-home #marketHome .market-hero-shirt {
  width: 63%;
  right: 7%;
  top: 9%;
  transform: rotate(7deg);
}
.cf-market-home #marketHome .market-hero-mug {
  width: 52%;
  left: 1%;
  top: auto;
  bottom: 8%;
  transform: rotate(-8deg);
}
.cf-market-home #marketHome .market-task {
  border-radius: var(--home-radius);
  border-color: var(--home-line);
  color: var(--home-ink);
}
.cf-market-home #marketHome .market-task-docs {
  background: #fff6f7;
  border-color: #edbec8;
}
.cf-market-home #marketHome .market-task:not(.market-task-docs) svg {
  background: var(--home-stage);
  color: #27272b;
}
.cf-market-home #marketHome .market-task small { color: var(--home-muted); }
.cf-market-home #marketHome .market-section-heading { margin: 0 0 14px; gap: 12px; }
.cf-market-home #marketHome .market-section-heading h2,
.cf-market-home #marketHome #catalogTitle {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.13;
  letter-spacing: -.045em;
}
.cf-market-home #marketHome .market-section-heading a {
  padding: 8px 0 8px 4px;
  font-weight: 750;
  line-height: 1.35;
}
.cf-market-home #marketHome :is(.market-popular, .market-selection, .market-occasions) {
  margin: clamp(24px, 3.7vw, 46px) 0 0;
}
.cf-market-home #marketHome .market-categories {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  overflow: visible;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.cf-market-home #marketHome .market-category {
  gap: 0;
  border: 1px solid var(--home-line);
  border-radius: 13px;
  padding: 0 4px 9px;
  background: white;
}
.cf-market-home #marketHome .market-category .market-category-art {
  height: 78px;
  min-height: 0;
  border-radius: 8px;
  margin: 4px 0 6px;
  background: #f3eee6;
  transform: none;
}
.cf-market-home #marketHome .market-category-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
}
.cf-market-home #marketHome .market-category b { font-size: clamp(11px, 1.15vw, 14px); line-height: 1.25; }
.cf-market-home #marketHome .market-category:hover { border-color: #c3b9bb; background: #faf7f7; }
.cf-market-home #marketHome > #catalog { padding: 0; margin: clamp(28px, 4vw, 48px) 0 0; }
.cf-market-home #marketHome #catalog :is(.section-heading,.product-grid) { margin-top: 14px; }
.cf-market-home #marketHome #catalog .section-heading { margin-bottom: 12px; }
.cf-market-home #marketHome #catalogText { margin: 6px 0 0; color: var(--home-muted); }
.cf-market-home #marketHome #catalog #filters:has(> :only-child) { display: none; }
.cf-market-home #marketHome #catalog .product-card,
.cf-market-home #marketHome #catalog .custom-order-card {
  padding: 10px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: white;
}
.cf-market-home #marketHome #catalog :is(.product-card,.custom-order-card):hover {
  border-color: #c3b9bb;
}
.cf-market-home #marketHome #catalog .product-art,
.cf-market-home #marketHome #catalog .custom-order-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  margin: 0;
  min-height: 0;
  border: 0;
  border-radius: 11px;
  background: #f4f4f5;
  overflow: hidden;
}
.cf-market-home #marketHome #catalog .product-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cf-market-home #marketHome #catalog :is(.product-card,.custom-order-card) h3 {
  margin: 12px 2px 10px;
  font-size: clamp(15px, 1.75vw, 22px);
  line-height: 1.23;
  overflow-wrap: anywhere;
}
.cf-market-home #marketHome #catalog .product-card .card-bottom,
.cf-market-home #marketHome #catalog .custom-order-card > b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 42px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #fdf0f2;
  color: #b90928;
  font-size: 14px;
}
.cf-market-home #marketHome #catalog .card-bottom :is(.from,b) {
  color: inherit;
  font-size: inherit;
}
.cf-market-home #marketHome #catalog .card-bottom .arrow {
  width: auto;
  height: auto;
  border: 0;
  padding: 4px;
  color: inherit;
  background: transparent;
  font-size: 18px;
}
.cf-market-home #marketHome .custom-all-products { margin-top: 14px; }
.cf-market-home #marketHome .market-grid { min-height: 0; }
.cf-market-home #marketHome .market-grid .ready-card {
  border-color: var(--home-line);
  border-radius: var(--home-radius);
}
.cf-market-home #marketHome .market-grid .ready-mockup {
  margin: 8px 8px 0;
  border-radius: 10px;
  background: var(--home-stage);
}
.cf-market-home #marketHome .market-grid .ready-mockup img { mix-blend-mode: multiply; }
.cf-market-home #marketHome .market-grid .ready-card-copy > small { color: var(--home-muted); font-size: 11px; }
.cf-market-home #marketHome .market-grid .ready-card-copy h3 { font-size: 14px; }
.cf-market-home #marketHome .market-filters { margin: 0 0 12px; }
.cf-market-home #marketHome .market-occasion-grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 14px;
  min-height: 116px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: white;
}
.cf-market-home #marketHome .market-occasion-grid a:hover { border-color: #c3b9bb; }
.cf-market-home #marketHome .market-occasion-grid h3 { font-size: clamp(16px, 2vw, 22px); margin: 0 0 5px; }
.cf-market-home #marketHome .market-occasion-grid p { color: var(--home-muted); margin: 0 0 8px; }
.cf-market-home #marketHome .market-occasion-grid b { color: #b90928; }
.cf-market-home #marketHome .market-help {
  background: #17171a;
  border-radius: var(--home-radius);
  color: white;
}
.cf-market-home #marketHome .market-help div span { color: #e0e7f5; font-size: 14px; }
.cf-market-home #marketHome .market-help a span { display: inline; color: inherit; }
.cf-market-home #marketHome .market-secondary-service { border-color: var(--home-line); }
.cf-market-home #marketHome #cf-retention-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin: 18px 0 0;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: white;
}
.cf-market-home #marketHome #cf-retention-home h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.025em;
}
.cf-market-home #marketHome #cf-retention-home .cf-retention-actions { margin: 0; }
.cf-market-home #marketHome #cf-retention-home button { border-radius: 10px; padding: 8px 12px; }
.cf-market-home #trusted,
.cf-market-home #faq {
  width: min(calc(100% - 48px), 1360px);
  margin: 0 auto 18px;
  padding: clamp(16px, 3vw, 34px);
  box-sizing: border-box;
  background: white;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
}
.cf-market-home #trusted img { opacity: 1; }
.cf-market-home #faq :is(summary,p) { color: #3d475c; }
/* Documents and support already have dedicated links in the page. */
html body.cf-market-home .support-dock:not(.support-full) .support-launch { display: none; }
@media (max-width: 900px) {
  .cf-market-home #marketHome .market-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cf-market-home #marketHome .market-campaign-main { min-height: 232px; }
  .cf-market-home #marketHome .market-campaign-main .market-hero-art { height: 245px; }
  .cf-market-home #trusted, .cf-market-home #faq { width: calc(100% - 32px); }
}
@media (max-width: 600px) {
  .cf-market-home #marketHome .market-campaign-main {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .cf-market-home #marketHome .market-campaign-copy { padding: 16px; }
  .cf-market-home #marketHome .market-campaign-main p {
    display: block;
    margin-bottom: 10px;
    max-width: 39ch;
  }
  .cf-market-home #marketHome .market-campaign-main .market-hero-art { height: 126px; }
  .cf-market-home #marketHome .market-hero-shirt { width: 135px; right: 20%; top: -10px; }
  .cf-market-home #marketHome .market-hero-mug { width: 107px; left: 20%; bottom: 11px; }
  .cf-market-home #marketHome .market-task strong { font-size: 14px; }
  .cf-market-home #marketHome .market-task-docs strong { font-size: 16px; }
  .cf-market-home #marketHome .market-category .market-category-art { height: 51px; }
  .cf-market-home #marketHome .market-occasion-grid { grid-template-columns: 1fr; }
  .cf-market-home #marketHome .market-occasion-grid a { min-height: 86px; padding: 10px 12px; }
  .cf-market-home #marketHome .market-help { display: grid; gap: 12px; padding: 16px; }
  .cf-market-home #marketHome .market-help a { width: fit-content; }
  .cf-market-home #marketHome .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-market-home #marketHome .market-grid .ready-card-copy { padding: 8px; }
  .cf-market-home #marketHome #catalog .product-card { min-height: 0; }
  .cf-market-home #marketHome #catalog .product-card .card-bottom { font-size: 12px; }
  .cf-market-home #marketHome #cf-retention-home .cf-retention-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cf-market-home #marketHome :is(a,.market-category-art) { transition: none; }
}
