/* KFK controlled PDP-tab pilot. Targets KFK's Bootstrap tab markup, not RFK's markup. */

/*
 * Long Descriptions are product-specific HTML. KFK's theme currently removes
 * list markers and compresses the text rhythm, so restore readable prose and
 * conventional bullets only for products enabled by this controlled plugin.
 */
body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > #tab-description > p {
  margin: 0 0 14px !important;
  line-height: 1.65 !important;
}

body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > #tab-description > h1,
body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > #tab-description > h2,
body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > #tab-description > h3,
body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > #tab-description > h4,
body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > #tab-description > h5,
body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > #tab-description > h6 {
  margin: 20px 0 10px !important;
  line-height: 1.3 !important;
}

body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > #tab-description > ul {
  margin: 0 0 16px 1.35em !important;
  padding: 0 0 0 0.25em !important;
  list-style: disc outside !important;
}

body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > #tab-description > ul > li {
  display: list-item !important;
  margin: 0 0 6px !important;
  padding-left: 2px !important;
  background: none !important;
  list-style-type: disc !important;
  line-height: 1.55 !important;
}

body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > #tab-description > ul > li::marker {
  color: #173f86;
}

@media (max-width: 767px) {
  /* KFK's theme wraps tabs in a padded card. RFK's approved mobile layout is edge-to-edge. */
  body.kfk-pdp-tabs-active.single-product .woocommerce-tabs.wc-tabs-wrapper {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.kfk-pdp-tabs-active.single-product .woocommerce-tabs ul.nav.nav-tabs.xs-nav-tab {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid #d9dfe7 !important;
  }

  body.kfk-pdp-tabs-active.single-product .woocommerce-tabs ul.nav.nav-tabs.xs-nav-tab > li.nav-item {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #d9dfe7 !important;
  }

  body.kfk-pdp-tabs-active.single-product .woocommerce-tabs ul.nav.nav-tabs.xs-nav-tab > li.nav-item > a.nav-link {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 44px 12px 12px !important;
    color: #173f86 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
  }

  body.kfk-pdp-tabs-active.single-product .woocommerce-tabs ul.nav.nav-tabs.xs-nav-tab > li.nav-item > a.nav-link::after {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    content: "+" !important;
    transform: translateY(-50%) !important;
    color: #173f86 !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
  }

  body.kfk-pdp-tabs-active.single-product .woocommerce-tabs ul.nav.nav-tabs.xs-nav-tab > li.nav-item > a.nav-link.active {
    background: #fff5cf !important;
    border-left: 4px solid #f1b500 !important;
  }

  body.kfk-pdp-tabs-active.single-product .woocommerce-tabs ul.nav.nav-tabs.xs-nav-tab > li.nav-item > a.nav-link.active::after {
    content: "−" !important;
  }

  body.kfk-pdp-tabs-active.single-product .woocommerce-tabs .tab-content > .tab-pane {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0 !important;
    padding-top: 24px !important;
    border-top: 2px solid #f1b500 !important;
  }
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-size-table-wrap {
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid #d9dfe7;
  -webkit-overflow-scrolling: touch;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-size-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  color: #173f86;
  font-size: 14px;
  line-height: 1.4;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-size-table caption {
  padding: 10px 12px;
  color: #173f86;
  background: #f4f7fa;
  font-weight: 700;
  text-align: left;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-size-table th,
body.kfk-pdp-tabs-active .kfk-pdp-tabs-size-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #d9dfe7;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-size-table thead th {
  color: #fff !important;
  background: #173f86 !important;
  font-weight: 700;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-size-table tbody th {
  color: #173f86;
  background: #f8fafc;
  font-weight: 700;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-delivery-callout,
body.kfk-pdp-tabs-active .kfk-pdp-tabs-returns-callout {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #173f86;
  background: #fff5cf;
  border-left: 4px solid #f1b500;
  line-height: 1.45;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-delivery-callout strong,
body.kfk-pdp-tabs-active .kfk-pdp-tabs-returns-callout strong {
  color: #173f86;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-returns-callout span {
  flex-basis: 100%;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-delivery-grid {
  margin: 0 0 18px;
  border-top: 1px solid #d9dfe7;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-delivery-grid > div {
  padding: 12px 0;
  border-bottom: 1px solid #d9dfe7;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-delivery-grid dt {
  margin: 0 0 3px;
  color: #173f86;
  font-weight: 700;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-delivery-grid dd {
  margin: 0;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-policy-list {
  margin: 0 0 18px 1.35em;
  padding: 0 0 0 0.25em;
  list-style: disc outside;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-policy-list > li {
  display: list-item;
  margin: 0 0 9px;
  padding-left: 2px;
  list-style-type: disc;
  line-height: 1.55;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-policy-list > li::marker {
  color: #173f86;
}

/* 0.5.0 Materials & Care tab: matches the approved KFK washing-instructions card. */
body.kfk-pdp-tabs-active .kfk-pdp-tabs-care-material {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin: 0 0 18px;
  padding: 12px 14px;
  color: #173f86;
  background: #fff5cf;
  border-left: 4px solid #f1b500;
  line-height: 1.45;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-care-title {
  margin: 0 0 12px !important;
  color: #173f86;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-care-title::after {
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 8px;
  background: #f1b500;
  content: "";
}

body.kfk-pdp-tabs-active ul.kfk-pdp-tabs-care-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.kfk-pdp-tabs-active ul.kfk-pdp-tabs-care-grid > li {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 10px 12px !important;
  color: #173f86;
  background: #fff !important;
  border: 1px solid #d9dfe7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  list-style: none !important;
}

body.kfk-pdp-tabs-active ul.kfk-pdp-tabs-care-grid > li::marker {
  content: none;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-care-icon {
  flex: 0 0 34px;
  color: #173f86;
}

@media (max-width: 360px) {
  body.kfk-pdp-tabs-active ul.kfk-pdp-tabs-care-grid {
    grid-template-columns: 1fr;
  }
}

/* 0.6.0 Care icon fix: the KFK theme fills SVG shapes, turning the line icons into solid blocks. */
body.kfk-pdp-tabs-active .kfk-pdp-tabs-care-icon,
body.kfk-pdp-tabs-active .kfk-pdp-tabs-care-icon path,
body.kfk-pdp-tabs-active .kfk-pdp-tabs-care-icon rect,
body.kfk-pdp-tabs-active .kfk-pdp-tabs-care-icon circle {
  fill: none !important;
  stroke: currentColor !important;
}

body.kfk-pdp-tabs-active .kfk-pdp-tabs-care-icon circle[fill="currentColor"] {
  fill: currentColor !important;
  stroke: none !important;
}
