/*
    Target: Weight-Loss
    Description: Styles for TFC weight-loss and overrides
    Version: 1.0.1
    License:         	TFC 2026
    License URI:     	TFC 2026
*/

.tfc-marquee-grid {
  --gap: 12px;
  --radius: 14px;
  --speed-y: 20s;
  --speed-x: 20s;
  --card-bg: #ece8e5;
  --olive: #778064;
  --soft: #d9dab8;
  width: 600px;
  max-width: 600px;
  height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  overflow: hidden;
}
.tfc-wl-cards-bg-gray {
  background: var(--card-bg);
}
.tfc-wl-cards-bg-olive {
  background: var(--olive);
}
.tfc-wl-cards-bg-softgreen {
  background: var(--soft);
}
.marquee-col {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.marquee-track {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  will-change: transform;
}
.marquee-col-left .marquee-track {
  animation: scrollDown var(--speed-y) linear infinite;
}
.marquee-col-right .marquee-track {
  animation: scrollUp var(--speed-y) linear infinite;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 371px;
  min-height: 371px;
  max-height: 371px;
  width: 291px;
  min-width: 291px;
  max-width: 291px;
}
.card > .col {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.aicenter {
  align-items: center;
}
.jusify-end {
  justify-content: flex-end;
}
.jusify-start {
  justify-content: flex-start;
}
.card img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.tfc-wl-cards-bg-olive img {
  width: 300px;
  max-width: 300px;
  margin-left: -10px;
  margin-top: auto;
}
.tfc-wl-cards-bg-gray img {
  width: 200px;
  max-width: 200px;
  margin-top: auto;
}
.tfc-wl-cards-bg-softgreen img {
  width: 220px;
  max-width: 80%;
  margin-top: 30px;
}
.card-title-gray {
  color: black;
  font-weight: 500 !important;
  text-align: left;
  font-size: 25px !important;
  margin: 20px;
  line-height: 26px;
}

.card-title-green {
  color: white;
  font-weight: 700;
  text-align: right;
  font-size: 30px !important;
  width: 60%;
  align-self: flex-end;
  margin-right: 20px;
  margin-top: 30px;
  line-height: 33px;
  margin-bottom: 25px;
}

.card-title-lgreen {
  color: black;
  font-size: 25px !important;
  align-self: flex-start;
  margin-left: 20px;
  margin-top: 30px;
  line-height: 26px;
  font-weight: 600 !important;
  margin-bottom: 30px;
  margin-right: 20px;
}

@keyframes scrollDown {
  from {
    transform: translateY(calc(-50% - var(--gap) / 2));
  }
  to {
    transform: translateY(0);
  }
}

@keyframes scrollUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-50% - var(--gap) / 2));
  }
}

.tfc-marquee-grid:hover .marquee-track {
  animation-play-state: paused;
}

@media (max-width: 767px) {
  .tfc-marquee-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: 270px;
    gap: 8px;
    margin-left: -20px;
    margin-right: -20px;
    overflow: hidden;
    width: auto;
    max-width: none;
  }

  .marquee-col {
    overflow: hidden;
  }

  .marquee-track {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: max-content;
    height: 100%;
  }

  .card {
    flex: 0 0 220px;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 130px;
    min-height: 130px;
    max-height: 130px;
    border-radius: 12px;
    padding: 10px;
  }
  @keyframes scrollLeft {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-676px);
    }
  }

  @keyframes scrollRight {
    from {
      transform: translateX(-676px);
    }
    to {
      transform: translateX(0);
    }
  }
  .marquee-col-left .marquee-track {
    animation: scrollRight 20s linear infinite;
  }

  .marquee-col-right .marquee-track {
    animation: scrollLeft 20s linear infinite;
  }

  .mobile-reverse{
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
  }

  .card > .col {
    padding: 10px;
  }

  .card-title-gray,
  .card-title-green,
  .card-title-lgreen {
    width: 100%;
    margin: 0 0 8px 0;
    font-size: 14px !important;
    line-height: 1.15;
    text-align: left;
    align-self: flex-start;
  }

  .card-title-lgreen {
    font-size: 16px !important;
    line-height: 1.15;
    text-align: center !important;
    align-self: center !important;
  }

  .card-title-green{
    margin-top: 20px;
    font-size: 20px !important;
    margin-left: -30px !important;
    order: 2;
  }

  .tfc-wl-cards-bg-olive img {
    width: 150px;
    max-width: 150px;
    margin-left: -40px;
    margin-top: auto;
  }

  .tfc-wl-cards-bg-gray img {
    width: 100px;
    max-width: 100px;
    margin-left: 10px;
    margin-top: 10px;
  }

  .tfc-wl-cards-bg-softgreen img {
    width: 130px;
    max-width: 130px;
    margin: auto 0;
  }

  @keyframes scrollLeft {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(calc(-50% - 4px));
    }
  }

  @keyframes scrollRight {
    from {
      transform: translateX(calc(-50% - 4px));
    }
    to {
      transform: translateX(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
  }
}



/* Weight-Loss predications calculator */

.tfc-wl-prediction-calculator {
  position: relative;
  max-width: 620px;
  border-radius: 28px;
  padding: 32px 38px 36px;
  color: #1f1f1f;
  box-sizing: border-box;
}
.tfc-unit-switch {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.tfc-unit-switch {
  gap: 0;
}
.unit-btn {
  border: 1px solid #fff;
  background: transparent;
  color: #1f1f1f;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 6px 30px;
  cursor: pointer;
  min-width: 52px;
}
.unit-btn:first-child {
  border-radius: 50px;
  margin-right: -20px;
}
.unit-btn:last-child {
  border-radius: 50px;
  border-left: 0;
}
.unit-btn.active {
  background: #fff;
}
.tfc-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.tfc-weight-indicator,
.tfc-loss-prediction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #dfded8;
  border: 1.5px solid rgba(255,255,255,0.75);
  border-radius: 14px;
  min-height: 50px;
  padding: 0 18px;
  box-sizing: border-box;
}
.tfc-weight-indicator {
  min-width: 170px;
  margin-bottom: 20px;
}
.tfc-weight-indicator #weightValue,
.tfc-loss-prediction #lossValue {
  font-family: 'Work Sans';
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.tfc-weight-indicator #weightUnitTop,
.tfc-loss-prediction #lossUnit {
  font-size: 18px;
  font-weight: 500;
}
.tfc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  margin: 0 0 42px;
}
.tfc-range:focus {
  outline: none;
}
.tfc-range::-webkit-slider-runnable-track {
  height: 6px;
  background: #d9d28b;
  border-radius: 999px;
}
.tfc-range::-moz-range-track {
  height: 6px;
  background: #d9d28b;
  border-radius: 999px;
}
.tfc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #111;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  margin-top: -14px;
  cursor: pointer;
}
.tfc-range::-moz-range-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #111;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  cursor: pointer;
}
.tfc-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.tfc-copy {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  max-width: 280px;
}
.tfc-loss-prediction {
  min-width: 170px;
}
@media (max-width: 640px) {
  .tfcStickyBar__button{
    width: 100%;
    text-align: center;
    padding: 10px;
  }
  .tfcStickyBar__text{
    display: none;
  }
  .tfcStickyBarElement{
    padding: 0px;
    background: transparent;
    border-radius: 50px;
    padding: 0px !important;
  }
  .tfc-weight-input{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .tfc-unit-switch{
    justify-content: center;
  }
  .tfc-wl-prediction-calculator {
    padding: 24px 20px 28px;
  }
  .tfc-bottom-row {
    flex-direction: column;
    align-items: center;
  }
  .tfc-loss-prediction {
    min-width: 150px;
  }
}

/* price table */

.tfc-product-pricing-wrap {
    width: 100%;
    overflow-x: auto;
}
.tfc-product-pricing-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    font-family: inherit;
}
.tfc-product-pricing-table th,
.tfc-product-pricing-table td {
    border: 1px solid #e3e3e3;
    padding: 22px 14px;
    text-align: left;
    vertical-align: middle;
    color: #222;
}
.tfc-product-pricing-table th {
    font-size: 15px;
    font-weight: 700;
    background: #fff;
}
.tfc-product-pricing-table td {
    font-size: 15px;
    font-weight: 600;
    background: #fff;
}
.tfc-product-pricing-table tbody tr:nth-child(even) td,
.tfc-product-pricing-table tbody tr:nth-child(odd) td {
    background: #fff;
}
.tfc-product-pricing-table .price-old {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #6f6f6f;
    text-decoration: line-through;
    margin-bottom: 6px;
    opacity: 0.9;
}
.tfc-product-pricing-table .price-current {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}
@media (max-width: 767px) {
    .tfc-product-pricing-table th,
    .tfc-product-pricing-table td {
      padding: 16px 10px;
      font-size: 14px;
    }
    .tfc-product-pricing-table .price-current {
      font-size: 16px;
    }
    .tfc-product-pricing-table .price-old {
      font-size: 14px;
    }
}
