/* rd-sun-v9: remaining annotation fixes */

/* Mobile banner: one viewport-wide frame, image visible, copy inside the frame. */
@media (max-width: 1023px) {
  #f-theme.rd-ref-site .mss-hero,
  #f-theme.rd-ref-site .section_id_rd-ref-hero,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero,
  #f-theme.rd-ref-site .mss-hero .swiper,
  #f-theme.rd-ref-site .mss-hero .swiper-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 460px !important;
    max-height: none !important;
    overflow: hidden !important;
  }
  #f-theme.rd-ref-site .mss-hero .swiper-slide,
  #f-theme.rd-ref-site .mss-hero .f-slide {
    width: 100% !important;
    max-width: 100% !important;
    height: 460px !important;
    min-height: 460px !important;
    max-height: 460px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background-color: #FBF7F1 !important;
    background-image: url("https://www.ratedecor.com/media/diy/365/image/2026/11/02/a74cdd55206bdfbd52399d3ef675d78e.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: 72% center !important;
    background-size: cover !important;
  }
  #f-theme.rd-ref-site .mss-hero .f-slide__media,
  #f-theme.rd-ref-site .mss-hero .f-slide__bg,
  #f-theme.rd-ref-site .mss-hero picture,
  #f-theme.rd-ref-site .mss-hero responsive-image {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    opacity: 1 !important;
  }
  #f-theme.rd-ref-site .mss-hero img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: 72% center !important;
    opacity: 1 !important;
  }
  #f-theme.rd-ref-site .mss-hero .f-slide__wrapper {
    position: absolute !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
    z-index: 8 !important;
    background: rgba(255,251,246,.94) !important;
    padding: 14px 16px !important;
  }
  #f-theme.rd-ref-site .mss-hero .f-slide__title {
    color: #3A2E24 !important;
    font-size: 28px !important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }
  #f-theme.rd-ref-site .mss-hero .f-slide__description {
    display: block !important;
  }
}

/* Shopping policies and department cards use the full content width. */
#f-theme.rd-ref-site #f-section--rd-ref-service .container-fluid,
#f-theme.rd-ref-site #f-section--rd-ref-products .container-fluid,
#f-theme.rd-ref-site .rd-ref-spaces .container-fluid,
#f-theme.rd-ref-site .rd-ref-spaces .f-collection-list__header-container,
#f-theme.rd-ref-site .rd-ref-spaces .f-collection-list__content-container {
  width: 100% !important;
  max-width: none !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}
#f-theme.rd-ref-site #f-section--rd-ref-service .f-mixed-layout__inner {
  width: 100% !important;
  max-width: none !important;
}
@media (min-width: 1024px) {
  #f-theme.rd-ref-site #f-section--rd-ref-service .f-mixed-layout__inner,
  #f-theme.rd-ref-site #f-section--rd-ref-products .f-product-tabs__content,
  #f-theme.rd-ref-site #f-section--rd-ref-products .swiper-wrapper,
  #f-theme.rd-ref-site .rd-ref-spaces .f-collection-list__content,
  #f-theme.rd-ref-site .rd-ref-spaces .f-grid,
  #f-theme.rd-ref-site .rd-ref-spaces .f-collection-list__items {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Mobile: policy cards, spaces and about services switch instead of squeezing. */
@media (max-width: 767px) {
  #f-theme.rd-ref-site #f-section--rd-ref-service .f-mixed-layout__inner,
  #f-theme.rd-ref-site .rd-ref-spaces .f-collection-list__content,
  #f-theme.rd-ref-site .rd-ref-spaces .f-grid,
  #f-theme.rd-ref-site .rd-about-layers .f-numbered-services__list {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 12px !important;
    width: 100% !important;
    padding-bottom: 8px !important;
  }
  #f-theme.rd-ref-site #f-section--rd-ref-service .f-mixed-layout__inner > *,
  #f-theme.rd-ref-site .rd-ref-spaces .f-collection-list__content > *,
  #f-theme.rd-ref-site .rd-ref-spaces .f-grid > *,
  #f-theme.rd-ref-site .rd-about-layers .f-numbered-services__item {
    flex: 0 0 84% !important;
    width: 84% !important;
    max-width: 84% !important;
    scroll-snap-align: start;
    grid-column: auto !important;
  }
}

/* FAQ copy is centered in the box, including vertically. */
#f-theme.rd-ref-site .rd-ref-faq h3.f-collapsible--button,
#f-theme.rd-ref-site .rd-ref-faq .f-collapsible--button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 64px !important;
  position: relative !important;
}
#f-theme.rd-ref-site .rd-ref-faq h3.f-collapsible--button > span,
#f-theme.rd-ref-site .rd-ref-faq .f-collapsible--button > span:first-child {
  width: 100% !important;
  text-align: center !important;
}
#f-theme.rd-ref-site .rd-ref-faq .f-collapsible--content__inner,
#f-theme.rd-ref-site .rd-ref-faq .f-collapsible__content-wrapper,
#f-theme.rd-ref-site .rd-ref-faq .rte {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 72px !important;
  text-align: center !important;
}
#f-theme.rd-ref-site .rd-ref-faq .rte p,
#f-theme.rd-ref-site .rd-ref-faq .f-collapsible--content,
#f-theme.rd-ref-site .rd-ref-faq .f-collapsible--content p {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* About arrows stay inside the tile. */
#f-theme.rd-ref-site .rd-about-layers .f-numbered-services__item,
#f-theme.rd-ref-site .rd-about-layers .f-numbered-services__link {
  overflow: hidden !important;
  max-width: 100% !important;
}
#f-theme.rd-ref-site .rd-about-layers .f-numbered-services__link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  padding-right: 8px !important;
}
#f-theme.rd-ref-site .rd-about-layers .f-numbered-services__title,
#f-theme.rd-ref-site .rd-about-layers .f-numbered-services__title-text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  min-width: 0 !important;
}
#f-theme.rd-ref-site .rd-about-layers .f-numbered-services__arrow {
  position: static !important;
  flex: 0 0 16px !important;
  margin: 0 !important;
  transform: none !important;
}

/* Delete the product-page shipping policy block. */
#f-theme.rd-ref-site .rd-purchase-trust {
  display: none !important;
}

/* Product description uses the full tab. No empty right column. */
#f-theme.rd-ref-site .f-tab-content--description,
#f-theme.rd-ref-site .f-tab-content--description .f-tab-content__inner,
#f-theme.rd-ref-site .f-tab-content--description .rte,
#f-theme.rd-ref-site .f-tab-content--description .body_html,
#f-theme.rd-ref-site .f-tab-content--description .body_html > div,
#f-theme.rd-ref-site .f-tab-content--description [class*="fecify-detail"] {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* description grid is owned by the product HTML */

/* Social icons sit directly under the payment icons. */
@media (min-width: 1100px) {
  #f-theme.rd-ref-site .f-footer--bottom-inner {
    align-items: center !important;
  }
  #f-theme.rd-ref-site .f-footer--bottom-right {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: min(560px, 48%) !important;
    row-gap: 8px !important;
  }
  #f-theme.rd-ref-site .f-footer--bottom-right .f-footer--currency-language {
    order: 1 !important;
  }
  #f-theme.rd-ref-site .f-footer--bottom-right .f-payment-icons,
  #f-theme.rd-ref-site .f-footer--bottom-right .f-list-payment {
    order: 2 !important;
    flex: 1 0 auto !important;
    justify-content: flex-end !important;
  }
  #f-theme.rd-ref-site .f-footer--bottom-right .social-media-links {
    order: 3 !important;
    flex: 1 0 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    margin: 0 !important;
  }
}
