/*
Theme Name: Greenshift-child
Theme URI:
Author:
Author URI:
Description:
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: greenshift
Text Domain: greenshift-child
Tags:
*/

.easy-footnotes-wrapper,
.easy-footnote-single,
.easy-footnote-single span,
.easy-footnote-single a {
  font-size: 10px !important;
  line-height: 1.4 !important;
}
.easy-footnote > a > sup {
    font-size: 70% !important;
    vertical-align: super !important;
    position: relative;
    top: -0.5px;
    margin-left: 1px;
}

/* Shared styles for all boxes */
.custom-myth-buster-box,
.custom-did-you-know-box,
.custom-top-tip-box,
.custom-verified-review-box {
    border: 1px solid #ccc !important;
    padding: 15px !important;
    margin: 20px 0 !important;
    font-family: 'Special Elite', cursive !important;
}

.custom-myth-buster-box .myth-buster-header,
.custom-did-you-know-box .did-you-know-header,
.custom-top-tip-box .top-tip-header,
.custom-verified-review-box .verified-review-header {
    display: flex !important;
    align-items: center !important;
}

.custom-myth-buster-box .myth-buster-header h3,
.custom-did-you-know-box .did-you-know-header h3,
.custom-top-tip-box .top-tip-header h3,
.custom-verified-review-box .verified-review-header h3 {
    margin: 0 !important;
    color: #333 !important;
}

.custom-myth-buster-box .myth-buster-header img,
.custom-did-you-know-box .did-you-know-header img,
.custom-top-tip-box .top-tip-header img,
.custom-verified-review-box .verified-review-header img {
    margin-right: 15px !important;
    width: 75px !important;
    height: 75px !important;
}

.custom-myth-buster-box .myth-buster-content,
.custom-did-you-know-box .did-you-know-content,
.custom-top-tip-box .top-tip-content,
.custom-verified-review-box .verified-review-content {
    color: #666 !important;
}

@media screen and (max-width: 600px) {
    .custom-myth-buster-box .myth-buster-header img,
    .custom-did-you-know-box .did-you-know-header img,
    .custom-top-tip-box .top-tip-header img,
    .custom-verified-review-box .verified-review-header img {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Ensure table only scrolls horizontally on small screens */
.table-container {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.table-container th, .table-container td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
  word-wrap: break-word;
  white-space: normal;
}

.table-container th {
  background-color: #f4f4f4;
  font-weight: bold;
}

@media (max-width: 768px) {
  .table-container th, .table-container td {
    font-size: 14px;
  }
}

/* Smooth hash scrolling */
html { scroll-behavior: smooth; }

/* Full-bleed Greenshift pattern injected via shortcode on shop & category */
.gs-full-bleed {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.icons-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

.icons-left {
    display: flex !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.icons-right {
    display: flex !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

@media (max-width:640px) {
    .icons-row {
        flex-wrap: wrap !important;
    }
    .icons-right {
        margin-left: 0 !important;
        order: 2 !important;
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

/* Inner shadow overlay */
.tld-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.tld-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 9999;
  box-shadow:
    inset 0 40px 40px rgba(0,0,0,.08),
    inset 0 -12px 20px rgba(0,0,0,.05),
    inset 12px 0 16px rgba(0,0,0,.05),
    inset -12px 0 16px rgba(0,0,0,.05);
  mix-blend-mode: multiply;
}

/* ICONS ON PRODUCT CARD */
.wp-block-greenshift-blocks-query-loop-builder > div {
  position: relative !important;
}
.tld-wishicon a.wishicon,
.tld-wishicon button.wishicon,
.tld-wishicon .wishicon,
.tld-wishicon.added a.wishicon,
.tld-wishicon.added button.wishicon,
.tld-wishicon.added .wishicon,
.tld-wishicon .wishicon.is-active,
.tld-wishicon .wishicon.active { }
.tld-wishicon a.wishicon > *,
.tld-wishicon button.wishicon > *,
.tld-wishicon .wishicon > *,
.tld-wishicon.added a.wishicon > *,
.tld-wishicon.added button.wishicon > *,
.tld-wishicon.added .wishicon > * { display:none!important; }

/* Keep the two halves side-by-side */
.icons-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.icons-row .icons-left,
.icons-row .icons-right {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

/* Force repeaters to render icons in a single row */
.left-icon-repeat .gspbgrid_list_builder,
.left-icon-repeat .wp-block-repeater-template,
.left-icon-repeat .swiper-wrapper,
.right-icon-repeat .gspbgrid_list_builder,
.right-icon-repeat .wp-block-repeater-template,
.right-icon-repeat .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 10px !important;
  min-height: 55px !important;
}

/* Each icon slot stays centred and uniform */
.left-icon-repeat .gspbgrid_item,
.left-icon-repeat .swiper-slide,
.right-icon-repeat .gspbgrid_item,
.right-icon-repeat .swiper-slide {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 55px !important;
}

/* Icon sizing locked */
.left-icon-repeat img,
.left-icon-repeat svg,
.right-icon-repeat img,
.right-icon-repeat svg {
  max-height: 55px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Product Page */
.tld-sticky-wrap { align-items: flex-start; }

.tld-sticky {
  position: sticky;
  top: calc(var(--scroll-margin-top-offset, 50px) + 16px) !important;
  z-index: 1;
  align-self: flex-start;
}

/* Lenis fix */
html.lenis.lenis-stopped,
body.lenis-stopped {
  overflow: visible !important;
}

/* Product page gallery */
.tld-stagger-gallery .gspb_gallery_grid > * {
  grid-column: 1 / -1;
}

.tld-stagger-gallery .gspb_gallery_grid > *:nth-child(4n + 2),
.tld-stagger-gallery .gspb_gallery_grid > *:nth-child(4n + 3) {
  grid-column: span 1;
}

@media (max-width: 640px) {
  .tld-stagger-gallery .gspb_gallery_grid > * {
    grid-column: 1 / -1;
  }
}
