/*
 * Unified Share/QR (X28) — one visual for every surface.
 * Markup: kotlyars/share.twig only. Placement: footer auto-slot or
 * product buybox (JS adds --product + anchors before rating).
 */

/* Anti-CLS: hide footer park copy on product until JS anchors it. */
html.route-product-product .container.kotlyars-share-slot:not(.kotlyars-share-slot--product),
html.route-product-product .kotlyars-share-slot.container.v6-page:not(.is-anchored),
.site-wrapper.auctionpage .container.kotlyars-share-slot:not(.kotlyars-share-slot--product),
.site-wrapper.auctionpage .kotlyars-share-slot.container.v6-page:not(.is-anchored) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Page-level slot chrome (home, listings, stubs) — no pale full-bleed card. */
.kotlyars-share-slot.container,
.kotlyars-share-slot.v6-page {
  margin: 1rem auto 1.25rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: var(--v6-content-max, 1200px);
}

/* Product buybox placement. */
.kotlyars-share-slot--product {
  margin: 0.55rem 0 0.75rem;
  padding: 0;
  max-width: 100%;
  min-height: 6.25rem;
  background: transparent !important;
  border: 0 !important;
}
.kotlyars-share-slot--product:not(.is-anchored) {
  opacity: 0;
}
.kotlyars-share-slot--product.is-anchored {
  opacity: 1;
  transition: opacity 0.12s ease;
}

/*
 * Canon card — same on page slot and product.
 * Overrides legacy kotlyars_v5_override gold-border / large padding.
 */
html.skin-2 .kotlyars-share,
.kotlyars-share-slot .kotlyars-share,
.kotlyars-share-slot--product .kotlyars-share {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.55rem 0.65rem !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 0.45rem 0.6rem !important;
  border: 1px solid rgba(26, 35, 50, 0.12) !important;
  border-radius: 10px !important;
  background: #fffef9 !important;
  box-shadow: none !important;
}

/* QR = two rows (input + channels) ≈ 5.55rem / 89px. */
html.skin-2 .kotlyars-share-qr,
.kotlyars-share-slot .kotlyars-share-qr,
.kotlyars-share-slot--product .kotlyars-share-qr {
  display: block !important;
  width: 5.55rem !important;
  height: 5.55rem !important;
  max-width: 5.55rem !important;
  max-height: 5.55rem !important;
  min-width: 5.55rem !important;
  min-height: 5.55rem !important;
  flex: 0 0 5.55rem !important;
  object-fit: contain !important;
  background: #fff;
  align-self: flex-start !important;
}

html.skin-2 .kotlyars-share-body,
.kotlyars-share-slot .kotlyars-share-body,
.kotlyars-share-slot--product .kotlyars-share-body {
  flex: 1 1 12rem !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
  gap: 0.35rem !important;
}

/* Heading + URL + copy on one row. */
html.skin-2 .kotlyars-share-linkrow,
.kotlyars-share-slot .kotlyars-share-linkrow,
.kotlyars-share-slot--product .kotlyars-share-linkrow {
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  margin: 0 !important;
  min-width: 0;
  width: 100%;
}

html.skin-2 .kotlyars-share-heading,
.kotlyars-share-slot .kotlyars-share-heading,
.kotlyars-share-slot--product .kotlyars-share-heading {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--v6-ui, Manrope, "Segoe UI", system-ui, sans-serif) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--navy, #0b1726) !important;
  white-space: nowrap;
  flex: 0 0 auto;
  align-self: center;
}

html.skin-2 .kotlyars-share-link,
.kotlyars-share-slot .kotlyars-share-link,
.kotlyars-share-slot--product .kotlyars-share-link {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  height: 2.6rem !important;
  margin: 0 !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  border-radius: 6px !important;
}

html.skin-2 .kotlyars-share-linkrow > .kotlyars-share-btn,
html.skin-2 .kotlyars-share-copy,
.kotlyars-share-slot .kotlyars-share-copy {
  flex: 0 0 2.6rem !important;
  width: 2.6rem !important;
  height: 2.6rem !important;
  min-width: 2.6rem !important;
  border-radius: 6px !important;
}

html.skin-2 .kotlyars-share-channels,
.kotlyars-share-slot .kotlyars-share-channels,
.kotlyars-share-slot--product .kotlyars-share-channels {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.35rem 0.4rem;
  margin: 0 !important;
  padding-left: 0 !important;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

html.skin-2 .kotlyars-share-btn {
  border-radius: 6px !important;
}

/* PNG / SVG as share-row buttons. */
html.skin-2 .kotlyars-share-btn.kotlyars-share-file {
  width: auto !important;
  min-width: 2.6rem !important;
  height: 2.6rem !important;
  padding: 0 0.7rem !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  color: #fffef9 !important;
  border-radius: 6px !important;
}
html.skin-2 .kotlyars-share-btn.kotlyars-share-file:hover,
html.skin-2 .kotlyars-share-btn.kotlyars-share-file:focus {
  color: #fffef9 !important;
}
html.skin-2 .kotlyars-share-btn.kotlyars-share-file .kotlyars-share-file-label {
  line-height: 1;
  color: inherit !important;
  font-size: inherit !important;
}
html.skin-2 .kotlyars-share-files,
.kotlyars-share-slot .kotlyars-share-files {
  display: none !important;
}

/* Mobile: stack QR above actions. */
@media (max-width: 560px) {
  html.skin-2 .kotlyars-share,
  .kotlyars-share-slot .kotlyars-share,
  .kotlyars-share-slot--product .kotlyars-share {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
  }
  html.skin-2 .kotlyars-share-qr,
  .kotlyars-share-slot .kotlyars-share-qr,
  .kotlyars-share-slot--product .kotlyars-share-qr {
    width: 5.55rem !important;
    height: 5.55rem !important;
    max-width: 5.55rem !important;
    max-height: 5.55rem !important;
    min-width: 5.55rem !important;
    min-height: 5.55rem !important;
    flex: 0 0 5.55rem !important;
    align-self: flex-start !important;
  }
  html.skin-2 .kotlyars-share-body,
  .kotlyars-share-slot .kotlyars-share-body {
    flex: 1 1 auto !important;
    width: 100% !important;
  }
  html.skin-2 .kotlyars-share-channels {
    flex-wrap: nowrap !important;
  }
}

html.skin-2 body.v6.v6-dark .kotlyars-share,
html.skin-2 body.v6.v6-dark .kotlyars-share-slot .kotlyars-share,
html.skin-2 body.v6.v6-dark .kotlyars-share-slot--product .kotlyars-share {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html.skin-2 body.v6.v6-dark .kotlyars-share-heading {
  color: #f3eee3 !important;
}
