/* Responsive presentation for shared edge tools, header and product sharing. */

@media (width > 760px) {
  .site-header .site-nav.aj-pill-nav > .nav-dropdown.aj-collections-open > .aj-collections-link,
  .site-header .site-nav.aj-pill-nav > .nav-dropdown.is-open > .aj-collections-link,
  .site-header .site-nav.aj-pill-nav > .nav-dropdown:has(> .nav-trigger[aria-expanded="true"]) > .aj-collections-link {
    color: var(--oxblood, #5d2024) !important;
    font-weight: 500;
  }
}

html.aj-fallback-overlay-open,
html.aj-fallback-overlay-open body {
  overflow: hidden !important;
}

.aj-fallback-collections-backdrop,
.aj-fallback-search-backdrop {
  isolation: isolate;
}

.aj-fallback-collections-drawer {
  color: var(--charcoal, #2f2925);
}

.aj-fallback-collections-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line, #d8cfc1);
}

.aj-fallback-collection-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 24px 22px 28px;
}

.aj-fallback-collection-group:first-child {
  padding-left: 0;
}

.aj-fallback-collection-group:last-child {
  padding-right: 0;
}

.aj-fallback-collection-group + .aj-fallback-collection-group {
  border-left: 1px solid var(--line, #d8cfc1);
}

.aj-fallback-collection-group h3 {
  margin: 0 0 8px;
  color: var(--oxblood, #5d2024);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.1;
}

.aj-fallback-collection-group a {
  color: var(--charcoal, #2f2925);
  font-size: 13px;
  line-height: 1.45;
}

.aj-fallback-collection-group a:hover,
.aj-fallback-collection-group a:focus-visible {
  color: var(--oxblood, #5d2024);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aj-fallback-search-backdrop .site-search-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aj-fallback-search-result {
  grid-template-columns: minmax(0, 1fr) 20px;
  min-height: 88px;
}

.aj-fallback-search-result .site-search-result-identity {
  gap: 8px;
}

.aj-fallback-search-result .site-search-result-copy {
  font-family: var(--serif, Georgia, serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.16;
}

.product-share[data-aj-share-signature] {
  display: grid;
  gap: 16px;
  padding-top: 25px;
}

.product-share[data-aj-share-signature] .product-share-heading,
.ajpg-share[data-aj-share-signature] .ajpg-share-label {
  margin: 0;
  color: var(--oxblood, #5d2024);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.product-share[data-aj-share-signature] .product-share-row,
.ajpg-share[data-aj-share-signature] .ajpg-share-row {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 12px !important;
}

.product-share[data-aj-share-signature] .aj-share-button,
.ajpg-share[data-aj-share-signature] .aj-share-button {
  position: relative !important;
  inset: auto !important;
  box-sizing: border-box !important;
  width: auto !important;
  inline-size: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  margin: 0 !important;
  border: 1px solid #d8cfc1 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--oxblood, #5d2024) !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px !important;
  font: inherit;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  text-decoration: none;
  text-transform: none;
  letter-spacing: .02em;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.product-share[data-aj-share-signature] .aj-share-button[data-ga-share-method="whatsapp"],
.ajpg-share[data-aj-share-signature] .aj-share-button[data-ga-share-method="whatsapp"] {
  min-width: 118px !important;
}

.product-share[data-aj-share-signature] .aj-share-button[data-ga-share-method="instagram"],
.ajpg-share[data-aj-share-signature] .aj-share-button[data-ga-share-method="instagram"] {
  min-width: 116px !important;
}

.product-share[data-aj-share-signature] .aj-share-button[data-ga-share-method="copy_link"],
.ajpg-share[data-aj-share-signature] .aj-share-button[data-ga-share-method="copy_link"] {
  min-width: 105px !important;
}

.product-share[data-aj-share-signature] .aj-share-button-label,
.ajpg-share[data-aj-share-signature] .aj-share-button-label {
  position: static !important;
  inset: auto !important;
  display: inline-block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.product-share[data-aj-share-signature] .aj-share-button:hover,
.product-share[data-aj-share-signature] .aj-share-button:focus-visible,
.ajpg-share[data-aj-share-signature] .aj-share-button:hover,
.ajpg-share[data-aj-share-signature] .aj-share-button:focus-visible {
  border-color: var(--oxblood, #5d2024) !important;
  background: var(--oxblood, #5d2024) !important;
  color: var(--ivory, #f6f1e8) !important;
}

.product-share[data-aj-share-signature] .aj-share-button::before,
.product-share[data-aj-share-signature] .aj-share-button::after,
.ajpg-share[data-aj-share-signature] .aj-share-button::before,
.ajpg-share[data-aj-share-signature] .aj-share-button::after {
  display: none !important;
}

.product-share[data-aj-share-signature] .aj-share-button svg,
.ajpg-share[data-aj-share-signature] .aj-share-button svg {
  position: static !important;
  inset: auto !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
  margin: 0 !important;
  transform: none !important;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-share[data-aj-share-signature] .aj-share-status {
  min-height: 18px;
  color: var(--taupe, #746960);
  font-size: 11px;
  line-height: 1.5;
}

.ajpg-share[data-aj-share-signature] {
  display: grid;
  gap: 13px;
}

/* The product photograph is the visual frame. Remove the extra arch outline
   that sits outside it on the Home featured cards, especially on phones. */
#main-content > .featured-section .product-image {
  aspect-ratio: auto !important;
  background: transparent !important;
}

#main-content > .featured-section .product-image img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

#main-content > .featured-section .product-image::before {
  content: none !important;
  display: none !important;
}

@media (width <= 760px) {
  .aj-fallback-collections-list,
  .aj-fallback-search-backdrop .site-search-results {
    grid-template-columns: 1fr;
  }

  .aj-fallback-collection-group,
  .aj-fallback-collection-group:first-child,
  .aj-fallback-collection-group:last-child {
    padding: 20px 0;
  }

  .aj-fallback-collection-group + .aj-fallback-collection-group {
    border-top: 1px solid var(--line, #d8cfc1);
    border-left: 0;
  }

  .product-share[data-aj-share-signature] .product-share-row,
  .ajpg-share[data-aj-share-signature] .ajpg-share-row {
    align-items: stretch;
  }

  .product-share[data-aj-share-signature] .aj-share-button,
  .ajpg-share[data-aj-share-signature] .aj-share-button {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-share[data-aj-share-signature] .aj-share-button,
  .ajpg-share[data-aj-share-signature] .aj-share-button {
    transition: none;
  }
}
