:root {
  --fluentlywp-stock-color-medium: #ffd000;
  --fluentlywp-stock-color-low: #f12424;
  --fluentlywp-stock-color-out: #a3b0c2;
  --fluentlywp-stock-color-normal: #2e7d32;
  --fluentlywp-stock-notice-bg: #f5f7fb;
  --fluentlywp-stock-notice-text: #1f2933;
  --fluentlywp-stock-notice-border: #d4dbe7;
  --fluentlywp-stock-badge-text: #ffffff;
  --fluentlywp-stock-meter-track-bg: #e5e9f2;
}

.fluentlywp-stock-notice {
  width: fit-content;
  margin-top: 0.75em;
  padding: 0.6em 0.85em;
  border-radius: 4px;
  border: 1px solid var(--fluentlywp-stock-notice-border);
  background-color: color-mix(
    in srgb,
    var(--fluentlywp-stock-color-low) 10%,
    transparent
  );
  color: var(--fluentlywp-stock-notice-text);
  font-size: 14.4px;
  line-height: 1.5;
  font-weight: 500;
  padding: 8.64px 12.24px;
}

.fluentlywp-stock-notice p {
  margin-bottom: 0px;
  font-size: 14.4px;
}

.fluentlywp-stock-notice--normal {
  border-color: var(--fluentlywp-stock-color-normal);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--fluentlywp-stock-color-normal) 15%, transparent);
}

.fluentlywp-stock-notice--medium {
  border-color: var(--fluentlywp-stock-color-medium);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--fluentlywp-stock-color-medium) 15%, transparent);
}

.fluentlywp-stock-notice--low {
  border-color: var(--fluentlywp-stock-color-low);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--fluentlywp-stock-color-low) 15%, transparent);
}

.fluentlywp-stock-notice--out {
  border-color: var(--fluentlywp-stock-color-out);
  background-color: #f9fafb;
  color: var(--fluentlywp-stock-color-out);
}

.fluentlywp-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-bottom: 0.35em;
  margin-top: 0;
}

.fluentlywp-stock-badge--low {
  background-color: var(--fluentlywp-stock-color-low);
  color: var(--fluentlywp-stock-badge-text);
}

.fluentlywp-stock-badge--out {
  background-color: var(--fluentlywp-stock-color-out);
  color: #1f2933;
}

.fluentlywp-stock-badge::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-radius: 999px;
  background-color: currentColor;
  opacity: 0.7;
  margin-right: 0.35em;
}

body .fluentlywp-stock-meter-label {
  width: fit-content;
  margin-top: 0.75em;
  margin-bottom: 0.4em !important;
  font-size: 0.85em;
  line-height: 1.5;
  color: #000;
  font-weight: 500;
}

.fluentlywp-stock-meter-label p {
  margin-bottom: 0px;
}

.fluentlywp-stock-meter-label--low {
  color: var(--fluentlywp-stock-color-low);
}

.fluentlywp-stock-meter-label--medium {
  color: var(--fluentlywp-stock-color-medium);
}

.fluentlywp-stock-meter-label--out {
  color: var(--fluentlywp-stock-color-out);
}

.fluentlywp-stock-meter {
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  width: 100%;
}

.fluentlywp-stock-meter__track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background-color: #fff;
  padding: 1.6px;
  border: 2px solid #000;
  overflow: hidden;
  box-sizing: border-box;
  line-height: 0;
}

.fluentlywp-stock-meter__fill {
  position: relative;
  height: 100%;
  width: 0;
  max-width: 100%;
  border-radius: inherit;
  transition: width 0.3s ease-out;
  background-color: var(--fluentlywp-stock-color-normal);
}

.fluentlywp-stock-meter--normal .fluentlywp-stock-meter__fill {
  background-color: var(--fluentlywp-stock-color-normal);
  color: var(--fluentlywp-stock-color-normal);
}

.fluentlywp-stock-meter--medium .fluentlywp-stock-meter__fill {
  background-color: var(--fluentlywp-stock-color-medium);
  color: var(--fluentlywp-stock-color-medium);
}

.fluentlywp-stock-meter--low .fluentlywp-stock-meter__fill {
  background-color: var(--fluentlywp-stock-color-low);
  color: var(--fluentlywp-stock-color-low);
}

.fluentlywp-stock-meter--out .fluentlywp-stock-meter__fill {
  background-color: var(--fluentlywp-stock-color-out);
  color: var(--fluentlywp-stock-color-out);
}

.fluentlywp-stock-meter--solid .fluentlywp-stock-meter__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 0.35),
    transparent 60%
  );
  pointer-events: none;
}

.fluentlywp-stock-meter--thin .fluentlywp-stock-meter__track {
  height: 10px;
}

.fluentlywp-stock-meter--medium .fluentlywp-stock-meter__track,
.fluentlywp-stock-meter:not(.fluentlywp-stock-meter--thin):not(
    .fluentlywp-stock-meter--thick
  )
  .fluentlywp-stock-meter__track {
  height: 17px;
}

.fluentlywp-stock-meter--thick .fluentlywp-stock-meter__track {
  height: 20px;
}

.fluentlywp-stock-meter--striped .fluentlywp-stock-meter__fill {
  position: relative;
  background-color: currentColor;
  overflow: hidden;
}

.fluentlywp-stock-meter--striped .fluentlywp-stock-meter__fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgb(255 255 255 / 0.45) 0,
    rgb(255 255 255 / 0.45) 8px,
    transparent 8px,
    transparent 16px
  );
  background-size: 24px 24px;
  pointer-events: none;
}

@keyframes fluentlywpStripeMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 24px 0;
  }
}

.fluentlywp-stock-meter--continuous.fluentlywp-stock-meter--striped
  .fluentlywp-stock-meter__fill::before {
  animation: fluentlywpStripeMove 2.5s linear infinite;
}

.fluentlywp-stock-meter--gradient .fluentlywp-stock-meter__fill {
  position: relative;
  background-color: currentColor;
  background-image: linear-gradient(
    to right,
    color-mix(in srgb, currentColor 40%, white),
    currentColor
  );
}

@keyframes fluentlywpGradientShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.fluentlywp-stock-meter--continuous.fluentlywp-stock-meter--gradient
  .fluentlywp-stock-meter__fill {
  background-size: 200% 100%;
  animation: fluentlywpGradientShift 5s linear infinite alternate;
}

.fluentlywp-stock-meter--animate-on-load .fluentlywp-stock-meter__fill {
  animation: fluentlywpMeterFill 0.7s ease-out;
}

@keyframes fluentlywpMeterFill {
  from {
    width: 0;
  }

  to {
    width: var(--fluentlywp-meter-percentage);
  }
}

.fluentlywp-stock-notice + .fluentlywp-stock-meter,
.fluentlywp-stock-badge + .fluentlywp-stock-notice,
.fluentlywp-stock-badge + .fluentlywp-stock-meter {
  margin-top: 0.35em;
}

.fluentlywp-stock-badge.shop-page-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.fluentlywp-stock-meter.fluentlywp-stock-meter--no-label {
  margin-top: 20px !important;
}


 /* FLUENTLYWP STOCK – CHECKOUT ONLY STYLING */


/* Target only FluentCart checkout */
.fct_checkout .fluentlywp-stock-notice,
.fct_checkout .fluentlywp-stock-badge,
.fct_checkout .fluentlywp-stock-meter-wrapper {
    display: block;
    width: 100%;
    margin: 0px ;
}

/* Prevent layout jump if element missing */
.fct_checkout .fluentlywp-stock-notice:empty,
.fct_checkout .fluentlywp-stock-meter-wrapper:empty {
    display: none;
    margin: 0;
}

/* ---------------- NOTICE ---------------- */

.fct_checkout .fluentlywp-stock-notice {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

/* ---------------- BADGE ---------------- */

.fct_checkout .fluentlywp-stock-badge {
    display: inline-block;
    width: auto;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 6px;
}

/* ---------------- METER WRAPPER ---------------- */

.fct_checkout .fluentlywp-stock-meter-wrapper {
    margin-top: -10px;
}

/* Meter Track */
.fct_checkout .fluentlywp-stock-meter__track {
    background: #e5e5e5;
    border-radius: 20px;
    overflow: hidden;
}

/* Meter Fill */
.fct_checkout .fluentlywp-stock-meter__fill {
    border-radius: 20px;
    transition: width 0.4s ease;
}

/* Remove extra gap when multiple stock blocks render */
.fct_checkout .fluentlywp-stock-notice + .fluentlywp-stock-notice,
.fct_checkout .fluentlywp-stock-meter-wrapper + .fluentlywp-stock-meter-wrapper {
    margin-top: 0px;
}

.fct_checkout 
.fct_checkout_form_items
.fluentlywp-stock-notice

{
    margin-top: 10px;
}