/* Keep checkout and the owned footer's shared contacts readable and tappable. */
.pv-r18-contact { line-height: 1.55; overflow-wrap: anywhere; }
.pv-r18-contact a { display: inline-block; }
.pv-r18-contact a[href^="tel:"] { white-space: nowrap; }
.pv-rb2-footer .pv-r18-contact a { color: inherit; text-decoration: underline; }
.pv-r18-brand { font-family: 'Nunito', sans-serif !important; }
/* WooCommerce's replacement gallery supplies a plain thumbnail list. Match the
   existing ready-made rail without re-initializing the theme's page-load Slick instance. */
html:root:root body:is(.postid-282,.postid-378) #page .woocommerce-product-gallery > ol.flex-control-thumbs:not(.slick-initialized) > li {
  float: none !important; width: auto !important; margin: 0 !important;
}
@media (min-width:1025px) {
  html:root:root body:is(.postid-282,.postid-378) #page .woocommerce-product-gallery > ol.flex-control-thumbs:not(.slick-initialized) {
    display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px;
  }
}
@media (max-width:1024px) {
  html:root:root body:is(.postid-282,.postid-378) #page .woocommerce-product-gallery > ol.flex-control-thumbs:not(.slick-initialized) {
    display: flex !important; overflow-x: auto !important; overflow-y: hidden !important; gap: 8px;
    scroll-snap-type: x mandatory;
  }
  html:root:root body:is(.postid-282,.postid-378) #page .woocommerce-product-gallery > ol.flex-control-thumbs:not(.slick-initialized) > li {
    flex: 0 0 64px; scroll-snap-align: start;
  }
}

/* Both sides of the What's Divine? row move with the document. */
html:root:root body.page-id-73 #page #primary .pv-r15-answer-row > :is(#shared,#submit) {
  position: relative !important; top: auto !important; translate: none !important;
  transform: none !important;
}
html:root body.page-id-73 #page #primary #submit .pv-wd-submit__h {
  scroll-margin-top: calc(var(--bx-header-height, 86px) + 18px);
}
@media (min-width: 901px) {
  html:root:root body.page-id-73 #page #primary .pv-r15-answer-row > #shared {
    padding-block-start: var(--pv-r18-heading-inset, 14px) !important;
  }
  html:root:root body.page-id-73 #page #primary #shared .pv-r39-stack {
    margin-block-start: var(--pv-r18-card-inset, 35px) !important;
  }
}
@media (max-width: 900px) {
  html:root:root body.page-id-73 #page #primary .pv-r15-answer-row > :is(#shared,#submit) {
    position: static !important;
  }
}


/* On phone widths the marketplace controls scroll out with the catalog. */
@media (max-width: 768px) {
  html body .pv-rb1-market #market-bar {
    position: static;
    inset: auto;
  }

  html body .pv-rb1-market #market-bar #filter-panel:not([hidden]) {
    position: static;
    inset: auto;
    flex: 1 0 100%;
    width: 100%;
    max-height: none;
    overflow: visible;
  }
}

/* Let each artwork picture fill the phone-width card. */
@media (max-width: 600px) {
  html body :is(.pv-rb1-market, .pv-rb1-gifts) .art-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html body :is(.pv-rb1-market, .pv-rb1-gifts) .art-grid .art-link img {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* The theme draws the close icon with two pseudo-elements. */
:is(html[data-bx-mode="light"], html:not([data-bx-mode]) body:is(.light-mode,.buddyx-light-theme)) #masthead .buddyx-mobile-menu .mobile-menu-heading {
  background: #faf7f0 !important;
  color: #1e1c19 !important;
}
:is(html[data-bx-mode="light"], html:not([data-bx-mode]) body:is(.light-mode,.buddyx-light-theme)) #masthead .buddyx-mobile-menu .mobile-menu-heading :is(.menu-title,.menu-close) {
  color: #1e1c19 !important;
}
:is(html[data-bx-mode="light"], html:not([data-bx-mode]) body:is(.light-mode,.buddyx-light-theme)) #masthead .buddyx-mobile-menu .mobile-menu-heading .menu-close::before,
:is(html[data-bx-mode="light"], html:not([data-bx-mode]) body:is(.light-mode,.buddyx-light-theme)) #masthead .buddyx-mobile-menu .mobile-menu-heading .menu-close::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 50% 0 auto auto !important;
  margin: -1px 0 0 !important;
  width: 15px !important;
  height: 2px !important;
  padding: 0 !important;
  border: 0 !important;
  background: currentColor !important;
  transform-origin: center !important;
}
:is(html[data-bx-mode="light"], html:not([data-bx-mode]) body:is(.light-mode,.buddyx-light-theme)) #masthead .buddyx-mobile-menu .mobile-menu-heading .menu-close::before {
  transform: rotate(45deg);
}
:is(html[data-bx-mode="light"], html:not([data-bx-mode]) body:is(.light-mode,.buddyx-light-theme)) #masthead .buddyx-mobile-menu .mobile-menu-heading .menu-close::after {
  transform: rotate(-45deg);
}

/* Phone full-size viewer: the image clips to its own pan area above the controls. */
.pv-r19-zoom .pv-r19-photo-surface { display: contents; }
.pv-r19-gallery .pv-r19-slides .pv-r19-slide a:focus:not(:focus-visible),
.pv-r19-gallery .pv-r19-slides .pv-r19-slide a[data-pv-pointer-return]:focus {
  outline: none !important;
  box-shadow: none !important;
}
.pv-r19-gallery .pv-r19-slides .pv-r19-slide a:focus-visible:not([data-pv-pointer-return]) {
  outline: 3px solid Highlight !important;
  outline-offset: -4px;
}
@media (max-width:767px), (hover:none) and (pointer:coarse) {
  .pv-r19-gallery .pv-r19-zoom[open] {
    box-sizing: border-box;
    display: grid;
    grid-template: minmax(0,1fr) auto / repeat(3,minmax(0,1fr));
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: 100vw;
    max-height: none;
    inset: 0;
    margin: 0;
    padding: env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
  }
  .pv-r19-zoom[open] .pv-r19-photo-surface {
    display: grid;
    grid-template: minmax(0,1fr) / minmax(0,1fr);
    place-items: center;
    grid-area: 1 / 1 / 2 / -1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
  .pv-r19-zoom[open] .pv-r19-photo-surface img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    pointer-events: none;
    transform-origin: center;
  }
  .pv-r19-gallery .pv-r19-zoom[open] button {
    grid-row: 2;
    position: static;
    transform: none;
    justify-self: center;
    margin: 8px 0;
  }
  .pv-r19-zoom .pv-r19-zoom-previous { grid-column: 1; }
  .pv-r19-zoom .pv-r19-zoom-close { grid-column: 2; }
  .pv-r19-zoom .pv-r19-zoom-next { grid-column: 3; }
}
