/*
 * A compact, horizontally scrollable comparison for the shared shop layout.
 * Keep the real table, row/column headers, all product data and destinations.
 * The same selectors cover both legacy and visual-editor comparison sections.
 */
body.zcu-shared-shop .shop-products-intro h2 .zcu-catalog-all-products {
  color: inherit;
  font: inherit;
  text-decoration: none;
}
body.zcu-shared-shop .shop-products-intro h2 .zcu-catalog-all-products:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}
body.zcu-shared-shop .shop-products-intro h2 .zcu-catalog-all-products:focus-visible {
  outline: 2px solid var(--zomu-green, #456356);
  outline-offset: 5px;
}

@media (max-width: 782px) {
  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison {
    color: var(--zomu-ink, #233c46);
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison > h2 {
    padding: 26px 20px 22px;
    font-size: clamp(24px, 6vw, 28px);
    line-height: 1.2;
    letter-spacing: -.02em;
    text-wrap: balance;
    overflow-wrap: break-word;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison__background {
    padding: 14px 0 18px;
    background: var(--zomu-paper, #f7f6f2);
  }

  /* The scroll region already has a matching accessible name in both templates. */
  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison__background::before {
    content: "Karşılaştırmak için yana kaydırın →";
    display: block;
    width: calc(100% - 32px);
    margin: 0 auto 10px;
    color: var(--zomu-muted, #606e68);
    font-family: var(--zomu-sans, sans-serif);
    font-size: 12px;
    line-height: 1.45;
    text-align: end;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison__scroll {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 100%;
    margin-inline: auto;
    border: 1px solid var(--zomu-line, #dce2dc);
    border-radius: 14px;
    background: #fff;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--zomu-green, #456356) var(--zomu-paper, #f7f6f2);
    scroll-padding-inline: 96px 12px;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison__scroll:focus-visible {
    outline: 2px solid var(--zomu-green, #456356);
    outline-offset: 3px;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison table {
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison :is(th, td) {
    box-sizing: border-box;
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    padding: 11px 10px;
    border: 0;
    border-bottom: 1px solid var(--zomu-line, #dce2dc);
    color: var(--zomu-ink, #233c46);
    font-size: 13px;
    line-height: 1.45;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* A visible row label keeps each specification meaningful while swiping. */
  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison tr > :first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    width: 88px;
    min-width: 88px;
    max-width: 88px;
    padding-inline: 10px;
    background: var(--zomu-paper, #f7f6f2);
    box-shadow: 3px 0 6px rgb(35 60 70 / 5%);
    font-family: var(--zomu-sans, sans-serif);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    text-align: start;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison thead th {
    padding-block: 15px 12px;
    vertical-align: bottom;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison__name {
    min-height: 42px;
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.1;
    letter-spacing: -.01em;
    overflow-wrap: break-word;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison__photo {
    display: block;
    width: 100%;
    height: 112px;
    margin: 0 auto;
    object-fit: contain;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison__shape {
    display: block;
    width: 38px;
    height: 38px;
    margin: 0 auto;
    object-fit: contain;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison .reference-comparison__actions :is(th, td) {
    border-bottom: 0;
    padding-block: 12px;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison .button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 9px 8px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .015em;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison .button:focus-visible {
    outline: 2px solid var(--zomu-ink, #233c46);
    outline-offset: 3px;
  }

  body.zomu-motion-theme.zcu-drawer-ui .reference-comparison__note {
    max-width: 58ch;
    margin: 0 auto;
    padding: 12px 20px 0;
    font-size: 11px;
    line-height: 1.55;
    text-align: start;
  }
}
