/* rd-sun-v30: annotated fixes for spaces chrome, footer, collection, description, contact */
#f-theme #f-collection-list-rd-ref-spaces .f-collection-list__controls,
#f-theme #f-collection-list-rd-ref-spaces .f-slider-controls,
#f-theme #f-collection-list-rd-ref-spaces .f-slider-controls__wrapper,
#f-theme #f-collection-list-rd-ref-spaces .swiper-pagination,
#f-theme #f-collection-list-rd-ref-spaces .swiper-button-prev,
#f-theme #f-collection-list-rd-ref-spaces .swiper-button-next {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

#f-theme .f-footer--block-custom_text .social-media-links,
#f-theme .rd-brand-social {
  display: flex !important;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  margin: 16px 0 4px !important;
  gap: 8px !important;
}
#f-theme .f-footer--bottom .social-media-links {
  display: none !important;
}
#f-theme .f-footer--block-custom_text .social-media-links {
  display: flex !important;
}

/* Mobile footer accordion uses the theme toggle. rd-sun-v35 */

#f-theme .rd-collection-name {
  display: block !important;
  margin: 8px 0 22px !important;
  padding: 0 !important;
  color: #292824 !important;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif !important;
  font-size: clamp(32px, 3vw, 44px) !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}
#f-theme .rd-related-collections,
#f-theme .rd-related-collections__title,
#f-theme .rd-related-collections__links {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

body.template-collection #f-theme .f-collection-products responsive-image.f-image,
body.template-collection #f-theme .f-collection-products .f-product-card .f-image,
body.template-collection #f-theme .f-collection-products .f-product-card__media,
body.template-collection #f-theme .f-collection-products .f-product-card__image {
  --aspect-ratio: 1 !important;
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
}
body.template-collection #f-theme .f-collection-products responsive-image.f-image::before,
body.template-collection #f-theme .f-collection-products .f-image::before {
  padding-top: 100% !important;
}
body.template-collection #f-theme .f-collection-products responsive-image.f-image img,
body.template-collection #f-theme .f-collection-products .f-product-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Product description layout is owned by the product HTML. rd-sun-v34 */

html.rd-contact-page .f-info-box-left-img,
body.template-contacts .f-info-box-left-img,
html.rd-contact-page .rd-contact-form .f-info-box-left-img,
body.template-contacts .rd-contact-form .f-info-box-left-img,
#f-theme .rd-contact-form .f-info-box-left-img {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

@media (min-width: 1024px) {
  #f-theme .f-footer .f-accordion--item .f-accordion--item-content,
  #f-theme .f-footer .f-accordion--item .f-footer--block-content {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
  }
  #f-theme .f-footer .f-accordion--item .f-accordion--item-icon {
    display: none !important;
  }
}
