/*
 * Shain Store v1.0.99
 * Accessible three-tab product information box and mobile-only footer accordions.
 */

/* Product tabs: one shared card on desktop and mobile. */
html body.single-product .ss-product-content-sections > .ss-product-info-tabs {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #e5e8ee !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(20, 25, 35, .045) !important;
  box-sizing: border-box !important;
}

html body.single-product .ss-product-tabs-list {
  display: flex !important;
  align-items: stretch !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px !important;
  border: 0 !important;
  border-bottom: 1px solid #e9ecf1 !important;
  border-radius: 0 !important;
  background: #f7f8fa !important;
  box-sizing: border-box !important;
}

html body.single-product .ss-product-tabs-list .ss-product-tab {
  display: inline-flex !important;
  flex: 1 1 0 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  min-height: 43px !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #626a78 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.6 !important;
  text-align: center !important;
  white-space: normal !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease !important;
}

html body.single-product .ss-product-tabs-list .ss-product-tab:hover {
  color: #a70f20 !important;
  background: #fff !important;
}

html body.single-product .ss-product-tabs-list .ss-product-tab.is-active,
html body.single-product .ss-product-tabs-list .ss-product-tab[aria-selected="true"] {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #b5122a !important;
  border-color: #b5122a !important;
  box-shadow: 0 4px 12px rgba(181, 18, 42, .16) !important;
}

html body.single-product .ss-product-tab-panel {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: clamp(12px, 2vw, 22px) !important;
  box-sizing: border-box !important;
}

html body.single-product .ss-product-tab-panel[hidden] {
  display: none !important;
}

html body.single-product .ss-product-tab-panel > .ss-expert-review,
html body.single-product .ss-product-tab-panel > .ss-product-specifications,
html body.single-product .ss-product-tab-panel > .ss-reviews-section {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

html body.single-product .ss-product-tab-panel > .ss-reviews-section > .ss-reviews-heading {
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

html body.single-product .ss-product-tab-panel > .ss-reviews-section > .ss-reviews-heading > div:first-child {
  display: none !important;
}

html.ss-dark-mode body.single-product .ss-product-content-sections > .ss-product-info-tabs {
  background: #20232b !important;
  border-color: #383d49 !important;
  box-shadow: none !important;
}

html.ss-dark-mode body.single-product .ss-product-tabs-list {
  background: #292d37 !important;
  border-bottom-color: #383d49 !important;
}

html.ss-dark-mode body.single-product .ss-product-tabs-list .ss-product-tab {
  color: #c6cbd5 !important;
}

html.ss-dark-mode body.single-product .ss-product-tabs-list .ss-product-tab.is-active,
html.ss-dark-mode body.single-product .ss-product-tabs-list .ss-product-tab[aria-selected="true"] {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #b5122a !important;
  border-color: #b5122a !important;
}

html.ss-dark-mode body.single-product .ss-product-tab-panel {
  color: #e5e7ed !important;
}

/* Desktop footer accordion wrappers act as display:contents to preserve the current layout. */
footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
  text-align: right !important;
  box-shadow: none !important;
  cursor: default !important;
}

footer.site-footer.ss-footer-v13 .ss-footer-accordion-chevron {
  display: none !important;
}

footer.site-footer.ss-footer-v13 .ss-footer-accordion-panel {
  display: contents !important;
}

@media (max-width: 700px) {
  footer.site-footer.ss-footer-v13 > .container > .footer-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    align-items: stretch !important;
  }

  footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-brand {
    grid-column: 1 !important;
    padding: 0 0 17px !important;
    margin: 0 0 4px !important;
    border-bottom: 1px solid rgba(255,255,255,.14) !important;
  }

  footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-about {
    display: none !important;
  }

  footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-contact-details,
  footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-links {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.14) !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 49px !important;
    margin: 0 !important;
    padding: 12px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.7 !important;
    text-align: right !important;
    cursor: pointer !important;
    box-shadow: none !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle:focus-visible {
    outline: 2px solid #f3a0ad !important;
    outline-offset: -2px !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-chevron {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 26px !important;
    width: 26px !important;
    height: 26px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 50% !important;
    color: #e7e9ef !important;
    font-size: 17px !important;
    line-height: 1 !important;
    transition: transform .18s ease !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle[aria-expanded="true"] .ss-footer-accordion-chevron {
    transform: rotate(180deg) !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-panel {
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 2px 14px !important;
    box-sizing: border-box !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle[aria-expanded="true"] + .ss-footer-accordion-panel {
    display: block !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-panel p {
    margin: 0 0 8px !important;
    overflow-wrap: anywhere !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-panel a {
    display: block !important;
    margin: 0 0 7px !important;
    padding: 2px 0 !important;
    line-height: 1.9 !important;
    overflow-wrap: anywhere !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-panel .ss-footer-enamad,
  footer.site-footer.ss-footer-v13 .ss-footer-accordion-panel .ss-footer-enamad-placeholder {
    margin-top: 10px !important;
  }

  footer.site-footer.ss-footer-v13 .footer-bottom {
    margin-top: 16px !important;
    padding-top: 12px !important;
  }
}


/* v1.0.100: footer accordions are always stacked in one column on mobile/tablet. */
@media (max-width: 1099px) {
  footer.site-footer.ss-footer-v13 > .container > .footer-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 0 !important;
    align-items: stretch !important;
  }

  footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-brand,
  footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-contact-details,
  footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-links {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-about {
    display: none !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    cursor: pointer !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-chevron {
    display: inline-flex !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-panel {
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle[aria-expanded="true"] + .ss-footer-accordion-panel {
    display: block !important;
  }
}


/* Shain Store v1.0.102 — force footer sections to stack vertically on mobile/tablet. */
@media (max-width: 1099px) {
  html body footer.site-footer.ss-footer-v13 > .container > .footer-top {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
  }

  html body footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-brand,
  html body footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-contact-details,
  html body footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-links {
    display: block !important;
    position: relative !important;
    float: none !important;
    flex: 0 0 auto !important;
    order: initial !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  html body footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-brand {
    order: 0 !important;
    padding-bottom: 16px !important;
    margin-bottom: 4px !important;
    border-bottom: 1px solid rgba(255,255,255,.14) !important;
  }

  html body footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-contact-details {
    order: 1 !important;
  }

  html body footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-links:nth-of-type(3) {
    order: 2 !important;
  }

  html body footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-links:nth-of-type(4) {
    order: 3 !important;
  }

  html body footer.site-footer.ss-footer-v13 > .container > .footer-top > .footer-about {
    display: none !important;
  }

  html body footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    cursor: pointer !important;
  }

  html body footer.site-footer.ss-footer-v13 .ss-footer-accordion-panel {
    display: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
  }

  html body footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle[aria-expanded="true"] + .ss-footer-accordion-panel {
    display: block !important;
  }
}


/* Shain Store v1.0.106 — keep the accordion chevron on the right edge on mobile/tablet. */
@media (max-width: 1099px) {
  html body footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle {
    position: relative !important;
    direction: rtl !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: right !important;
    padding-right: 38px !important;
    padding-left: 4px !important;
  }

  html body footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle > span:first-child {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: right !important;
  }

  html body footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle > .ss-footer-accordion-chevron {
    position: absolute !important;
    top: 50% !important;
    right: 2px !important;
    left: auto !important;
    order: initial !important;
    flex: 0 0 26px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
  }

  html body footer.site-footer.ss-footer-v13 .ss-footer-accordion-toggle[aria-expanded="true"] > .ss-footer-accordion-chevron {
    transform: translateY(-50%) rotate(180deg) !important;
  }
}
