/* ==========================================================================
   1. IMPORTS & VARIABLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Roboto:wght@400;500;700;800;900&display=swap');

:root {
  --lg-bg: #ffffff;
  --lg-ink: #1c1d20;
  --lg-stage: #000000;
  --lg-accent: #fc8329;
  --lg-amber: #fcb525;
  --lg-green: #acd588;
  --lg-teal: #48c1bb;
  --lg-tick: #1d6f25;
  --lg-muted: #8a8d92;
  --lg-line: #e3e3e3;
  --lg-track: #ededed;
  --lg-tile: #fafafa;
  --lg-body: #3a3a40;
  --lg-disabled: #b9bcc0;
  --lg-scroll: #c9cacd;
  --lg-grad: transparent;

  --lg-radius-btn: 9px;
  --lg-radius-card: 14px;
  --lg-radius-panel: 16px;
  --lg-radius-img: 11px;

  /* Shared dimensions for product ADD and quantity controls */
  --lg-product-control-height: 36px;
  --lg-product-control-radius: 4px;

  --lg-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  --lg-shadow-lift: 0 10px 24px rgba(0, 0, 0, .10);
  --lg-ease: cubic-bezier(.2, .7, .3, 1);

  --loop-bundle-bg-color: transparent;
  --loop-bundle-bg-padding-top: 0px;
  --loop-bundle-bg-padding-bottom: 40px;

  --loop-bundle-heading-color: var(--lg-stage);
  --loop-bundle-body-color: var(--lg-body);
  --loop-bundle-name-color: var(--lg-stage);
  --loop-card-body-text-color: var(--lg-ink);
  --loop-bundle-view-border-color: var(--lg-line);
  --loop-bundle-checkbox-selected-color: var(--lg-accent);
  --loop-bundle-show-more-less-text-color: var(--lg-accent);
  --loop-bundle-discount-text-color: var(--lg-tick);

  --loop-bundle-image-width: 100%;
  --loop-bundle-image-height: 100px;
  --loop-bundle-image-border-radius: var(--lg-radius-img);
  --loop-bundle-image-bg-color: var(--lg-tile);

  --loop-bundle-box-size-selector-display: flex;
  --loop-bundle-frequency-size-selector-display: flex;
  --loop-bundle-outline-button-border-radius: var(--lg-radius-btn);
  --loop-bundle-outline-button-text-color: var(--lg-stage);
  --loop-bundle-selected-button-bg-color: var(--lg-stage);
  --loop-bundle-selected-button-text-color: #ffffff;
  --loop-bundle-selected-button-border-radius: var(--lg-radius-btn);

  --loop-bundle-product_price_display: flex;
  --loop-product-card-bg-color: #ffffff;
  --loop-product-card-border-color: var(--lg-line);
  --loop-product-card-border-size: 1.5px;
  --loop-product-card-border-radius: var(--lg-radius-card);
  --loop-product-card-image-height: 100px;
  --loop-product-card-title-color: var(--lg-stage);
  --loop-product-card-discounted-price-color: var(--lg-stage);
  --loop-product-card-product-price-color: var(--lg-muted);
  --loop-product-card-header-border-color: transparent;
  --loop-card-header-footer-border-color: transparent;

  --loop-product-card-add-product-button-bg-color: #fc8329;
  --loop-product-card-add-product-button-text-color: #ffffff;
  --loop-product-card-add-product-button-border-color: transparent;
  --loop-product-card-add-product-button-border-radius: var(--lg-product-control-radius);

  --loop-bundle-number-of-cards-desktop-view: 4;
  --loop-bundle-number-of-cards-laptop-view: 4;
  --loop-bundle-number-of-cards-tablet-view: 2;
  --loop-bundle-number-of-cards-mobile-view: 2;

  --loop-product-card-input-button-bg-color: transparent;
  --loop-product-card-input-button-text-color: var(--lg-stage);
  --loop-bundle-input-bg-color: transparent;
  --loop-bundle-input-text-color: var(--lg-stage);
  --loop-bundle-input-border-color: transparent;
  --loop-bundle-input-left-border-size: 0px;
  --loop-bundle-input-right-border-size: 0px;
  --loop-bundle-input-button-border-color: transparent;
  --loop-bundle-input-button-border-radius: 0%;
  --loop-bundle-input-button-border-top-radius: 0px;
  --loop-bundle-input-button-border-bottom-radius: 0px;

  --loop-bundle-footer-bg-color: #ffffff;
  --loop-selected-product-card-bg-color: #ffffff;
  --loop-selected-product-card-border-color: var(--lg-line);
  --loop-selected-product-card-border-radius: var(--lg-radius-btn);
  --loop-bundle-display-saved-label: block;
  --loop-bundle-total-label-color: var(--lg-stage);
  --loop-bundle-saved-label-color: var(--lg-tick);

  --loop-bundle-progress-bar-bg-color: var(--lg-accent);
  --loop-bundle-progress-bar-container-bg-color: var(--lg-track);
  --loop-bundle-progress-bar-container-border-color: transparent;
  --loop-bundle-progress-bar-label-color: #ffffff;
  --loop-bundle-new-progress-bar-container-bg-color: var(--lg-track);
  --loop-bundle-new-progress-bar-container-border-color: transparent;

  --loop-bundle-add-to-cart-button-bg-color: #fc8329;
  --loop-bundle-add-to-cart-button-text-color: #ffffff;
  --loop-bundle-add-to-cart-button-border-color: #fc8329;
  --loop-bundle-add-to-cart-button-border-radius: var(--lg-radius-btn);

  --loop-drawer-bg-color: #ffffff;
  --loop-drawer-separator-color: var(--lg-line);
  --loop-drawer-product-title-color: var(--lg-stage);
  --loop-drawer-product-discounted-price-color: var(--lg-stage);
  --loop-drawer-product-price-color: var(--lg-muted);
  --loop-drawer-go-back-btn-color: var(--lg-stage);

  --loop-bottom-sheet-header-bg-color: #ffffff;
  --loop-bottom-sheet-body-bg-color: #ffffff;
  --loop-bottom-sheet-footer-bg-color: #ffffff;
  --loop-bottom-sheet-border-color: var(--lg-line);

  --loop-bundle-widget-container-background: transparent;
  --loop-bundle-widget-container-border-width: 0px;
  --loop-bundle-widget-container-border-color: transparent;
  --loop-bundle-widget-container-border-radius: var(--lg-radius-btn);
  --loop-bundle-widget-selected-selling-plan-background: #ffffff;
  --loop-bundle-widget-selected-selling-plan-border-color: var(--lg-stage);
  --loop-bundle-widget-selling-plan-container-background-color: #ffffff;
  --loop-bundle-widget-selling-plan-container-border-width: 1.5px;
  --loop-bundle-widget-selling-plan-container-border-color: var(--lg-line);
  --loop-bundle-widget-selling-plan-container-border-radius: var(--lg-radius-btn);
  --loop-bundle-widget-discount-badge-color: #ffffff;
  --loop-bundle-widget-discount-badge-background: var(--lg-accent);
  --loop-bundle-widget-discount-badge-border-radius: 999px;
  --loop-bundle-widget-discount-badge-font-size: 10px;
  --loop-bundle-widget-discount-badge-line-height: 14px;
  --loop-bundle-widget-discount-badge-font-weight: 800;
  --loop-bundle-widget-plan-description-color: var(--lg-muted);
  --loop-bundle-widget-plan-description-font-size: 13px;
  --loop-bundle-widget-plan-description-line-height: 18px;
  --loop-bundle-widget-plan-description-font-weight: 500;
  --loop-bundle-widget-plan-description-opacity: 1;
  --loop-bundle-widget-plan-description-text-transform: none;
  --loop-bundle-widget-plan-description-font-style: normal;

  --loop-purchase-plan-border-color: var(--lg-line);
  --loop-toast-success-bg-color: var(--lg-tick);
  --loop-toast-failure-bg-color: var(--lg-accent);
  --loop-toast-default-bg-color: var(--lg-stage);
}

/* ==========================================================================
   2. STRUCTURAL FIXES
   ========================================================================== */

@media (min-width: 1024px) {
  body:has(.loop-actions-container) .loop-bundle-footer {
    display: none !important;
  }
}

.loop-body-footer-wrapper {
  display: block;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.loop-background {
  background: transparent;
  min-width: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.loop-container,
.loop-bs-container {
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: 28px;
  color: var(--lg-ink);
  font-family: 'Roboto', sans-serif;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

@media (min-width: 1024px) {
  .loop-bundle-products-section-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .loop-products-available-new {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding-inline: 0px !important;
  }

  .loop-actions-container {
    flex: 0 0 360px;
    width: 360px;
    align-self: flex-start;
    position: sticky;
    top: var(--actions-top-offset, 96px);
    min-height: 0 !important;
    max-height: calc(100vh - var(--actions-top-offset, 96px) - 24px) !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .loop-actions-container > * {
    flex: 0 0 auto;
    min-height: 0;
  }

  .loop-actions-container > .loop-selected-bundle {
    flex: 0 1 auto;
    min-height: 0;
  }

  .loop-products-available,
  .loop-products-available-new {
    margin-bottom: 0 !important;
  }

  .loop-bundle-products-wrapper {
    padding-bottom: 40px;
  }

  .loop-products-align,
  .loop-products-align-new {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .loop-products-align > *,
  .loop-products-align-new > * {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}

@media (max-width: 1023.98px) {
  .loop-bundle-footer {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    z-index: 1000 !important;
    isolation: isolate;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid var(--lg-line);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .10);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
  }

  .loop-bundle-footer > * {
    max-width: 1220px;
    margin-inline: auto;
    width: 100%;
  }
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

.loop-container,
.loop-container button,
.loop-container input,
.loop-container select {
  font-family: 'Roboto', sans-serif;
}

.loop-h1,
.loop-bundle-title {
  font-weight: 900;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #000000;
  white-space: nowrap;
  margin-top: 0 !important;
}

.loop-h2,
.loop-h3 {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--lg-stage);
}

.loop-bundle-select-product-title,
.loop-bundle-select-product-title-new {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lg-muted);
}

.loop-bundle-select-product-title::before,
.loop-bundle-select-product-title-new::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lg-accent);
}

.loop-bundle-description,
.loop-bundle-new-description,
.loop-bundle-footer-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--lg-body);
}

/* ==========================================================================
   5. PRODUCT CARD
   ========================================================================== */

.loop-products-align,
.loop-products-align-new {
  gap: 20px;
}

.loop-card,
.loop-bundle-product-card {
  background: #ffffff;
  border: 1.5px solid var(--lg-line);
  border-radius: var(--lg-radius-card);
  overflow: hidden;
  transition:
    transform 0.18s var(--lg-ease),
    box-shadow 0.18s var(--lg-ease),
    border-color 0.18s var(--lg-ease);
}

.loop-card:hover,
.loop-bundle-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lg-shadow-lift);
  border-color: #d0d0d0;
}

.loop-card-header {
  border: 0;
  background: transparent;
}

.loop-bundle-product-image-container {
  padding: 14px 14px 0;
}

.loop-image-product-lg {
  background: var(--lg-tile);
  border-radius: var(--lg-radius-img);
  width: 100% !important;
  height: 100px !important;
  min-height: 0 !important;
  max-height: 100px !important;
  aspect-ratio: auto !important;
  overflow: hidden;
  box-sizing: border-box;
}

.loop-image-product-lg img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 100px !important;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.3s var(--lg-ease);
}

img.loop-image-product-lg {
  object-fit: contain;
  padding: 10px;
}

.loop-card:hover .loop-image-product-lg img {
  transform: scale(1.04);
}

.loop-card-body {
  padding: 14px 14px 0 !important;
  text-align: center;
}

.loop-product-title,
.loop-bundle-product-card-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--lg-stage);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.loop-product-description {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--lg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loop-display-product-price {
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.loop-discounted-price {
  font-weight: 900;
  font-size: 17px;
  color: var(--lg-stage);
  padding: 6px 0 !important;
}

.loop-product-price.strike-through {
  font-weight: 500;
  font-size: 13px;
  color: var(--lg-muted);
  text-decoration: line-through;
  padding: 6px 0 !important;
}

.loop-card:has(.loop-product-price.strike-through:not(.hidden)) .loop-discounted-price {
  color: var(--lg-accent);
}

.loop-card-footer {
  border: 0;
  padding: 12px 14px 14px !important;
}

select.loop-select-variant {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1.5px solid var(--lg-line);
  border-radius: var(--lg-radius-btn);
  padding: 11px 34px 11px 14px;
  font: 500 13px/1.2 'Roboto', sans-serif;
  color: var(--lg-ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8d92' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: border-color 0.15s var(--lg-ease);
}

select.loop-select-variant:hover {
  border-color: #b0b0b0;
}

select.loop-select-variant:focus {
  outline: none;
  border-color: var(--lg-stage);
}

.loop-add-product-btn {
  margin-top: 10px;
}

.loop-btn-add-product {
  display: block;
  width: 140px;
  max-width: 100%;
  height: var(--lg-product-control-height);
  margin-inline: auto;
  padding: 0 16px;
  background: #fc8329 !important;
  color: #ffffff;
  border: 0;
  border-radius: var(--lg-product-control-radius);
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.15s var(--lg-ease),
    filter 0.15s var(--lg-ease);
}

.loop-btn-add-product:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.loop-btn-add-product:active {
  transform: translateY(0);
}

/* Product quantity selector: same height and corners as ADD button */
.loop-bundle-product-quantity-controls {
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  height: var(--lg-product-control-height) !important;
  min-height: 0 !important;
  box-sizing: border-box;
  margin-top: 10px;
  border: 1.5px solid var(--lg-stage);
  border-radius: var(--lg-product-control-radius) !important;
  overflow: hidden;
  background: #fff;
}

.loop-bundle-product-quantity-controls > button {
  flex: 0 0 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: var(--lg-stage) !important;
  -webkit-text-fill-color: var(--lg-stage) !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  opacity: 1 !important;
  cursor: pointer;
  transition: background 0.12s var(--lg-ease);
}

.loop-bundle-product-quantity-controls > button:hover:not(:disabled) {
  background: #f4f4f5 !important;
}

.loop-bundle-product-quantity-controls > button:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed;
}

.loop-bundle-product-quantity-controls > input {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--lg-stage) !important;
  -webkit-text-fill-color: var(--lg-stage) !important;
  opacity: 1 !important;
  text-align: center !important;
  font-weight: 900 !important;
  font-size: 15px !important;
}

.loop-bundle-product-quantity-controls > input:focus {
  outline: none;
}

.loop-bundle-product-quantity-controls > input:disabled {
  opacity: 1 !important;
}

.loop-max-items-added {
  opacity: 0.45;
  pointer-events: none;
}

/* ==========================================================================
   6. YOUR BUNDLE PANEL
   ========================================================================== */

.loop-selected-bundle {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
  border: 1.5px solid var(--lg-line) !important;
  border-radius: var(--lg-radius-panel) !important;
  padding: 18px 18px 16px;
  overflow: hidden;
  box-shadow: var(--lg-shadow);
}

.loop-selected-bundle-header {
  padding-top: 4px;
}

.loop-selected-bundle-title {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--lg-stage);
}

.loop-selected-bundle-info,
.loop-higher-discount-rate {
  font-size: 13px;
  line-height: 1.5;
  color: var(--lg-muted);
  margin-top: 4px;
}

.loop-higher-discount-rate strong,
.loop-higher-discount-rate b {
  color: var(--lg-accent);
  font-weight: 800;
}

.loop-selected-bundle-items-count {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-muted);
  margin-top: 10px;
}

.loop-selected-bundle-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--lg-scroll) transparent;
  margin-top: 6px;
  padding-right: 6px;
}

.loop-selected-bundle-items::-webkit-scrollbar {
  width: 6px;
}

.loop-selected-bundle-items::-webkit-scrollbar-track {
  background: transparent;
}

.loop-selected-bundle-items::-webkit-scrollbar-thumb {
  background: var(--lg-scroll);
  border-radius: 999px;
}

.loop-selected-bundle-items::-webkit-scrollbar-thumb:hover {
  background: #a9abaf;
}

.loop-selected-bundle:has(.loop-selected-bundle-items.is-scrollable:not(.is-at-end))::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 36px;
  border-radius: 0 0 var(--lg-radius-panel) var(--lg-radius-panel);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 78%);
  pointer-events: none;
}

.loop-selected-variant-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius-btn);
  background: #fff;
}

.loop-selected-variant-container img,
.loop-image-product-sm img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--lg-tile);
  object-fit: contain;
  flex: none;
}

.loop-selected-variant-info,
.loop-selected-variant-info-container {
  min-width: 0;
}

.loop-selected-variant-title {
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--lg-stage);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loop-selected-variant-price-container {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
}

.loop-selected-variant-price-discount {
  font-weight: 900;
  font-size: 13px;
  color: var(--lg-accent);
}

.loop-selected-variant-price-actual {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--lg-muted);
  text-decoration: line-through;
}

.loop-selected-variant-actions-container {
  flex: 0 0 auto !important;
  max-width: none !important;
}

.loop-selected-variant-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  height: 30px;
  border: 1.5px solid var(--lg-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.loop-selected-variant-actions > button {
  flex: 0 0 28px !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: var(--lg-stage) !important;
  -webkit-text-fill-color: var(--lg-stage) !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  opacity: 1 !important;
  cursor: pointer;
}

.loop-selected-variant-actions > button:hover:not(:disabled) {
  background: #f4f4f5 !important;
}

.loop-selected-variant-actions > button:disabled {
  opacity: 0.3 !important;
}

.loop-selected-variant-actions > input,
.loop-selected-variant-actions-input,
.loop-form-input-small {
  flex: 0 0 30px !important;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--lg-stage) !important;
  -webkit-text-fill-color: var(--lg-stage) !important;
  opacity: 1 !important;
  text-align: center !important;
  font-weight: 900;
  font-size: 12px;
  border-radius: 0 !important;
}

/* ==========================================================================
   7. PROGRESS BAR + MILESTONES
   ========================================================================== */

.loop-bundle-progress-bar-container,
.loop-bundle-progress-bar-new-container {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 26px !important;
}

.loop-progress-bar-container {
  height: 10px;
  background: var(--lg-track);
  border: 0;
  border-radius: 999px;
  overflow: hidden;
}

.loop-progress-bar {
  height: 100%;
  background: var(--lg-accent);
  border-radius: 999px;
  transition: width 0.35s var(--lg-ease);
}

.loop-progress-bar-label {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loop-progress-range-bar .loop-progress-range-milestone-container {
  width: 100% !important;
  margin-inline: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  padding: 0 10px;
  position: relative;
}

.loop-progress-range-line-container {
  height: 8px;
  border-radius: 999px;
  overflow: visible;
}

.loop-progress-range-line {
  height: 8px;
  background: var(--lg-track) !important;
  border-radius: 999px;
}

.loop-progress-range-line.left,
.loop-new-progress-range-line.left {
  background: #1d6f25 !important;
  transition: width 0.35s var(--lg-ease);
}

.loop-progress-range-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--lg-track);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
  transition:
    background 0.2s var(--lg-ease),
    border-color 0.2s var(--lg-ease),
    transform 0.2s var(--lg-ease);
  position: relative;
  z-index: 2;
}

.loop-progress-range-dot.active-dots {
  background: #1d6f25 !important;
  border-color: #1d6f25 !important;
  transform: scale(1.08);
}

.loop-progress-range-milestone-container .label {
  font-weight: 800;
  font-size: 11px;
  color: var(--lg-muted);
  transition: color 0.2s var(--lg-ease);
  text-align: center;
  flex: 1;
}

.loop-progress-range-milestone-container .label.active-label {
  color: #1d6f25;
}

.loop-bundle-footer-discount-section {
  background-color: color-mix(in srgb, var(--lg-tick) 12%, #fff) !important;
  border: 1px solid color-mix(in srgb, var(--lg-tick) 40%, #fff) !important;
  color: var(--lg-tick);
  border-radius: var(--lg-radius-btn);
  font-weight: 700;
  font-size: 12.5px;
}

/* ==========================================================================
   8. TOTALS + ADD TO CART
   ========================================================================== */

.loop-bundle-footer-progress-bar-add-to-cart {
  padding: 14px 0 0 !important;
}

.loop-btn-add-to-cart {
  width: 100%;
  height: 58px;
  padding: 0 14px;
  background: #fc8329 !important;
  color: #fff;
  border: 0;
  border-radius: var(--lg-radius-btn);
  cursor: pointer;
  transition:
    transform 0.15s var(--lg-ease),
    filter 0.15s var(--lg-ease);
}

.loop-btn-add-to-cart:hover:not([disabled]) {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.loop-btn-add-to-cart[disabled] {
  background: var(--lg-disabled) !important;
  border: 0 !important;
  color: #fff !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

.loop-bundle-cart-btn-text-container {
  gap: 8px !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

.loop-bundle-total-label,
.loop-btn-add-to-cart .total-label,
.loop-btn-add-to-cart .bundle_total_label,
.loop-btn-add-to-cart .bundle_total_label_mobile {
  color: #fff !important;
  font-weight: 900 !important;
  font-size: 15.5px !important;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-transform: none;
}

.loop-bundle-total-label-disabled,
.loop-btn-add-to-cart .total-label-disabled {
  color: rgba(255, 255, 255, 0.65) !important;
}

.loop-display-saved-total {
  flex: 0 0 auto;
}

.loop-bundle-saved-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.loop-bundle-saved-label-disabled {
  display: none;
}

.loop-bundle-add-to-cart-text {
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.loop-bundle-view-cart-btn {
  background: #e3e3e3 !important;
  color: #000000 !important;
  border: 1.5px solid #e3e3e3 !important;
  border-radius: var(--lg-radius-btn);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  height: 48px;
  transition:
    transform 0.15s var(--lg-ease),
    filter 0.15s var(--lg-ease);
}

.loop-bundle-view-cart-btn:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}

.loop-spinner-default {
  border-top-color: #fff;
}

/* ==========================================================================
   9. PURCHASE OPTIONS
   ========================================================================== */

.loop-bundle-widget-selling-plan-container {
  border-radius: var(--lg-radius-btn);
  padding: 14px;
}

.loop-bundle-widget-selling-plan {
  align-items: flex-start !important;
  gap: 12px !important;
}

.loop-bundle-widget-radio-btn-container {
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 26px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.loop-bundle-widget-radio-btn {
  border-color: var(--lg-line) !important;
}

.loop-bundle-widget-radio-btn.selected {
  background-color: var(--lg-stage) !important;
  border-color: var(--lg-stage) !important;
}

.loop-bundle-widget-radio-btn-inner {
  background-color: #fff !important;
}

.loop-bundle-widget-selling-plan-price-container {
  align-items: center;
  min-height: 26px;
}

.legit-onetime-badge {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: color-mix(in srgb, var(--lg-tick) 12%, #fff);
  color: var(--lg-tick);
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  padding: 4px 8px;
  border-radius: 999px;
}

.loop-bundle-widget-selling-plan-price-container:has([data-legit-onetime-badge]) {
  justify-content: flex-start;
  gap: 8px;
}

.loop-bundle-widget-selling-plan-price-container:has([data-legit-onetime-badge]) > .loop-bundle-widget-selling-plan-price {
  margin-left: auto;
}

.loop-bundle-widget-selling-plan-subscription {
  align-items: flex-start !important;
}

.loop-bundle-widget-selling-plan-subscription .loop-bundle-widget-selling-plan-info {
  width: auto !important;
  flex: 1 1 auto !important;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 26px;
}

.loop-bundle-widget-selling-plan-subscription > .loop-bundle-widget-selling-plan-price-container {
  flex: 0 0 auto !important;
}

.loop-bundle-widget-selling-plan-price-subscription {
  align-items: flex-end;
}

.loop-bundle-widget-discount-badge-container {
  flex: 0 0 auto !important;
  align-self: center;
  width: auto !important;
  height: auto !important;
  white-space: nowrap !important;
  padding: 4px 8px !important;
  line-height: 1.1 !important;
  font-weight: 800;
  font-size: 9.5px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.loop-bundle-widget-selling-plan-discount-price {
  font-weight: 900;
  color: var(--lg-stage);
}

.loop-bundle-widget-selling-plan-actual-price {
  color: var(--lg-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.loop-bundle-widget-selling-plan-text {
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--lg-stage);
  white-space: nowrap;
}

.loop-bundle-widget-frequency-interval-button {
  border: 1.5px solid var(--lg-line) !important;
  border-radius: var(--lg-radius-btn) !important;
  color: var(--lg-stage) !important;
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px 12px;
  transition: border-color 0.15s var(--lg-ease);
}

.loop-bundle-widget-frequency-interval-button:hover {
  border-color: var(--lg-stage) !important;
}

.loop-bundle-widget-frequency-interval-button.selected {
  background-color: var(--lg-stage) !important;
  border-color: var(--lg-stage) !important;
  color: #fff !important;
}

.loop-bundle-widget-radio-btn {
  border-color: var(--lg-line);
}

.loop-bundle-widget-radio-btn-inner {
  background: var(--lg-stage);
}

/* ==========================================================================
   10. FILTERS / CATEGORIES / GENERIC BUTTONS
   ========================================================================== */

.loop-btn-outline,
.loop-bundle-filter-btn-container,
.loop-category-title-as-text {
  background: #fff;
  border: 1.5px solid var(--lg-line);
  border-radius: var(--lg-radius-btn);
  color: var(--lg-stage);
  font-weight: 700;
  font-size: 12.5px;
  transition:
    border-color 0.15s var(--lg-ease),
    transform 0.15s var(--lg-ease);
}

.loop-btn-outline:hover,
.loop-bundle-filter-btn-container:hover {
  border-color: var(--lg-stage);
  transform: translateY(-1px);
}

.loop-btn-selected,
.loop-bundle-filter-btn-container-selected {
  background: var(--lg-stage);
  border-color: var(--lg-stage);
  color: #fff;
  font-weight: 800;
}

.loop-bundle-filters-selected-count-icon {
  background: var(--lg-accent);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
}

.loop-category-item {
  cursor: pointer;
}

.loop-category-rounded-image,
.loop-rounded-image {
  border-radius: 50%;
  border: 2px solid var(--lg-line);
}

.loop-category-header-content-left-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--lg-stage);
}

.loop-category-header-content-left-sub {
  color: var(--lg-muted);
  font-size: 13px;
}

.loop-checkbox {
  border: 1.5px solid var(--lg-line);
}

.loop-checkbox-selected,
.loop-checkbox:hover {
  border-color: var(--lg-accent);
}

.loop-checkbox-circle {
  background-color: var(--lg-accent);
}

.loop-show-more-less-text {
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   11. DRAWERS / BOTTOM SHEET / TOASTS
   ========================================================================== */

.loop-drawer-body,
.loop-bottom-sheet-body-products-container,
.loop-bottom-sheet-body-products-container-expanded,
.loop-selected-products-wrapper {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--lg-scroll) transparent;
}

.loop-drawer-body::-webkit-scrollbar,
.loop-bottom-sheet-body-products-container::-webkit-scrollbar,
.loop-bottom-sheet-body-products-container-expanded::-webkit-scrollbar,
.loop-selected-products-wrapper::-webkit-scrollbar {
  width: 6px;
}

.loop-drawer-body::-webkit-scrollbar-track,
.loop-bottom-sheet-body-products-container::-webkit-scrollbar-track,
.loop-bottom-sheet-body-products-container-expanded::-webkit-scrollbar-track,
.loop-selected-products-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.loop-drawer-body::-webkit-scrollbar-thumb,
.loop-bottom-sheet-body-products-container::-webkit-scrollbar-thumb,
.loop-bottom-sheet-body-products-container-expanded::-webkit-scrollbar-thumb,
.loop-selected-products-wrapper::-webkit-scrollbar-thumb {
  background: var(--lg-scroll);
  border-radius: 999px;
}

body:has(.loop-drawer-overlay.enter-done) {
  overflow: hidden;
}

@media (max-width: 1023.98px) {
  body:has(.loop-bottom-sheet-header-container) {
    overflow: hidden;
  }
}

.loop-bottom-sheet-wrapper,
.loop-bottom-sheet-body-container {
  overscroll-behavior: contain;
}

.loop-drawer-overlay {
  background: rgba(23, 24, 26, 0.55);
  backdrop-filter: blur(2px);
  overscroll-behavior: none;
}

.loop-drawer-content {
  border-radius: var(--lg-radius-panel) 0 0 var(--lg-radius-panel);
}

.loop-drawer-header,
.loop-drawer-footer {
  border-color: var(--lg-line);
}

.loop-drawer-product-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.loop-drawer-discounted-price {
  font-weight: 900;
}

.loop-drawer-product-price {
  text-decoration: line-through;
}

.loop-drawer-go-back-btn {
  border: 1.5px solid var(--lg-stage);
  border-radius: var(--lg-radius-btn);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loop-bottom-sheet-header-container,
.loop-bottom-sheet-purchase-options-container {
  border-color: var(--lg-line);
}

.loop-bottom-sheet-wrapper {
  border-radius: var(--lg-radius-panel) var(--lg-radius-panel) 0 0;
  overflow: hidden;
}

.loop-bottom-sheet-header-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--lg-stage);
}

.loop-toast {
  border-radius: var(--lg-radius-btn);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--lg-shadow-lift);
}

/* ==========================================================================
   12. SKELETONS + MOTION
   ========================================================================== */

.loop-skeleton,
.loop-skeleton-box {
  background: linear-gradient(
    90deg,
    #f2f2f3 25%,
    #e9e9eb 37%,
    #f2f2f3 63%
  );
  background-size: 400% 100%;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .loop-container *,
  .loop-bundle-footer * {
    transition: none !important;
    animation: none !important;
  }

  .loop-card:hover,
  .loop-btn-add-product:hover,
  .loop-btn-add-to-cart:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   13. MOBILE BOTTOM SHEET
   ========================================================================== */

@media (max-width: 767.98px) {
  .loop-bottom-sheet-body-container {
    padding: 10px 16px 0 !important;
  }

  .loop-bottom-sheet-body-info-text,
  .loop-higher-discount-rate {
    font-size: 12.5px !important;
    line-height: 1.4;
  }

  .loop-bundle-progress-bar-container,
  .loop-bundle-progress-bar-new-container {
    margin-bottom: 14px !important;
  }

  .loop-progress-range-dot {
    width: 18px;
    height: 18px;
  }

  .loop-bottom-sheet-body-products-container,
  .loop-bottom-sheet-body-products-container-expanded {
    flex: 1 1 auto !important;
    min-height: 30vh;
    padding: 0 16px !important;
    overflow: hidden !important;
  }

  .loop-bottom-sheet-products-inner-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--lg-scroll) transparent;
    padding-bottom: 4px !important;
  }

  .loop-bottom-sheet-products-inner-container::-webkit-scrollbar {
    width: 5px;
  }

  .loop-bottom-sheet-products-inner-container::-webkit-scrollbar-track {
    background: transparent;
  }

  .loop-bottom-sheet-products-inner-container::-webkit-scrollbar-thumb {
    background: var(--lg-scroll);
    border-radius: 999px;
  }

  .loop-bottom-sheet-body-products-container-expanded:has(.loop-bottom-sheet-products-inner-container.is-scrollable:not(.is-at-end)) {
    position: relative;
  }

  .loop-bottom-sheet-body-products-container-expanded:has(.loop-bottom-sheet-products-inner-container.is-scrollable:not(.is-at-end))::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 28px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0),
      #fff 80%
    );
    pointer-events: none;
  }

  .loop-bottom-sheet-purchase-options-container {
    flex: 0 1 auto !important;
    max-height: 44vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 16px 0 !important;
    border-top-width: 1px !important;
  }

  .loop-bundle-radio-widget-container {
    gap: 8px;
  }

  .loop-bundle-widget-selling-plan-container {
    padding: 12px;
  }

  .loop-selected-variant-container {
    margin-top: 8px;
    padding: 8px;
    gap: 10px;
  }

  .loop-selected-variant-container img,
  .loop-image-product-sm img {
    width: 40px;
    height: 40px;
  }

  .loop-selected-variant-title {
    font-size: 12px;
  }

  .loop-selected-variant-price-discount {
    font-size: 12.5px;
  }

  .loop-selected-variant-price-actual {
    font-size: 11px;
  }

  .loop-bottom-sheet-footer-container {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
  }
}

/* ==========================================================================
   14. SMALL SCREENS
   ========================================================================== */

@media (max-width: 600px) {
  :root {
    --lg-product-control-height: 44px;
  }

  .loop-container,
  .loop-bs-container {
    padding-inline: 16px;
  }

  .loop-h1,
  .loop-bundle-title {
    font-size: 32px;
    white-space: normal;
  }

  .loop-btn-add-to-cart {
    height: 54px;
    padding: 0 12px;
  }

  .loop-bundle-total-label {
    font-size: 14px;
  }

  .loop-bundle-add-to-cart-text {
    font-size: 12px;
  }

  .loop-bundle-saved-label {
    font-size: 8.5px;
    padding: 3px 7px;
  }

  .loop-selected-bundle {
    padding: 14px;
    border-radius: 12px !important;
  }

  .loop-bundle-footer .loop-selected-bundle-items {
    max-height: 132px;
  }

  .loop-bottom-sheet-header-container {
    border-color: #ffffff;
  }
}

/* ==========================================================================
   15. MOBILE TWO-COLUMN GRID
   ========================================================================== */

@media (max-width: 600px) {
  .loop-products-align,
  .loop-products-align-new {
    grid-template-columns: repeat(
      var(--loop-bundle-number-of-cards-mobile-view, 1),
      minmax(0, 1fr)
    ) !important;
    gap: 12px;
  }

  .loop-bundle-product-wrapper,
  .loop-bundle-product-container,
  .loop-card,
  .loop-bundle-product-card,
  .loop-image-product-lg {
    min-width: 0 !important;
  }

  .loop-products-align img,
  .loop-products-align-new img {
    max-width: 100%;
  }

  .loop-bundle-product-image-container {
    padding: 10px 10px 0;
  }

  .loop-card-body {
    padding: 10px 10px 0 !important;
  }

  .loop-card-footer {
    padding: 10px 10px 12px !important;
  }

  select.loop-select-variant {
    padding: 10px 28px 10px 12px;
    font-size: 12px;
  }

  .loop-btn-add-product {
    width: 140px;
    max-width: 100%;
    height: var(--lg-product-control-height);
    border-radius: var(--lg-product-control-radius);
    font-size: 11px;
    letter-spacing: 0;
  }
}

.loop-bundle-loop-bundle-view-cart-text {
  font-weight: 900 !important;
  font-size: 16px !important;
}

.loop-display-saved-total-view-cart {
  font-size: 16px !important;
}

@media only screen and (max-width: 600px) {
  .loop-bundle-description,
  .loop-bundle-new-description {
    width: 95%;
  }
}

/* ==========================================================================
   16. ORIGINAL USP BLOCK VISIBILITY
   ========================================================================== */

details.legit-usp,
.legit-usp,
summary.legit-usp__summary,
.legit-usp__summary,
.legit-usp__eyebrow,
.legit-usp__hint,
.legit-usp__list {
  display: none !important;
}
