#my-custom-bundle[template-id="test-template-53254"] {
  --egm-text: #442B25;
  --egm-brown: #4F2C1D;
  --egm-orange: #D9731A;
  --egm-panel: #F6F4F4;
  --egm-border: #DAD5D3;
  --egm-line: #E3DFDE;
  --egm-muted: #8C7C77;
  --egm-disabled: #B6AAA6;

  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: "FoundersGroteskRegular", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--egm-text);

  & *,
  & *::before,
  & *::after { box-sizing: inherit; }

  /* Reset theme headings, paragraphs and controls */
  & h2, & h3, & p {
    margin: 0;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    color: var(--egm-text);
    line-height: 1.25;
  }
  & button, & select {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    color: inherit;
  }
  & button:focus-visible,
  & select:focus-visible {
    outline: 2px solid var(--egm-brown);
    outline-offset: 2px;
  }
  & [hidden] { display: none !important; }

  /* Phone-only parts, hidden on desktop */
  & .bundle__bar,
  & .bundle__backdrop,
  & .bundle__sheet-close { display: none; }
  & .bundle__side-actions { display: flex; align-items: center; gap: 8px; }

  /* Banner */
  & .bundle__banner,
  & .bundle__banner img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Hero with live text, when no banner image is uploaded */
  & .bundle__hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 230px;
    padding: 36px 32px 28px;
    background: var(--egm-hero, #E2685A);
  }
  & .bundle__hero-title {
    max-width: 780px;
    font-size: clamp(36px, 4.6vw, 72px);
    font-weight: 400;
    line-height: 1.05;
    color: #fff;
  }
  & .bundle__hero-line {
    display: block;
    width: 1px;
    height: 72px;
    margin-left: 16px;
    background: rgba(255, 255, 255, 0.6);
  }
  & .bundle__hero-text {
    max-width: 520px;
    font-size: 15px;
    line-height: 1.4;
    color: #fff;
  }

  /* Banner or hero shown on one screen size only */
  @media (min-width: 800px) {
    & .is-mobile-only { display: none; }
  }
  @media (max-width: 799px) {
    & .is-desktop-only { display: none; }
  }

  /* Page column */
  & .bundle__inner {
    max-width: 1232px;
    margin: 0 auto;
    padding: 80px 24px 64px;
  }

  /* Create a Bundle intro */
  & .bundle__intro-heading {
    font-size: 36px;
    font-weight: 700;
    line-height: 37.8px;
  }
  & .bundle__intro-text {
    margin: 10px 0 24px;
    font-size: 17px;
    font-weight: 400;
    line-height: 22.95px;
  }

  /* Box size cards */
  & .bundle__boxes {
    scroll-margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 307px));
    gap: 12px;
    margin-bottom: 40px;
  }
  & .bundle__boxcard {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 86px;
    padding: 12px 16px;
    border: 1px solid var(--egm-border);
    border-radius: 16px;
    background: #fff;
    text-align: left;
    cursor: pointer;
  }
  & .bundle__boxcard.is-active {
    padding: 11px 15px;
    border: 1.2px solid var(--egm-brown);
    border-radius: 16px;
    background: var(--egm-panel);
  }
  & .bundle__boxcard-radio {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--egm-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
  }
  & .bundle__boxcard.is-active .bundle__boxcard-radio { border-color: var(--egm-brown); }
  & .bundle__boxcard.is-active .bundle__boxcard-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--egm-brown);
  }
  /* Gift box picture on a box card */
  & .bundle__boxcard-thumb {
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
  }
  & .bundle__boxcard-thumb.is-empty { background: var(--egm-line); }
  & .bundle__boxcard-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  & .bundle__boxcard-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
  & .bundle__boxcard-label { font-size: 20px; font-weight: 700; line-height: 27px; }
  & .bundle__boxcard-sub { font-size: 14.5px; font-weight: 400; line-height: 19.575px; color: var(--egm-muted); }
  & .bundle__boxcard-tag { font-size: 12.5px; font-weight: 700; line-height: 16.875px; letter-spacing: 0.25px; color: var(--egm-orange); }

  /* Products + panel columns */
  & .bundle__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
  }
  & .bundle__main { min-width: 0; }

  /* Range tabs */
  & .bundle__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0 14px;
    border-bottom: 1px solid var(--egm-line);
    overflow: visible;
  }
  & .bundle__tabs::-webkit-scrollbar { display: none; }
  & .bundle__tab {
    flex: 0 0 auto;
    padding: 11px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: none;
    color: var(--egm-brown);
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }
  & .bundle__tab.is-active { border-color: var(--egm-brown); }

  /* Category title */
  & .bundle__cat-title {
    margin: 28px 0 20px;
    font-size: 26px;
    font-weight: 700;
    line-height: 35.1px;
    color: var(--egm-orange);
  }

  /* Product grid */
  & .bundle__products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 18px;
  }
  & .bundle__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  & .bundle__card-badge {
    align-self: flex-start;
    margin-left: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--egm-panel);
    color: var(--egm-text);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 16.875px;
  }
  & .bundle__card-badge.is-empty { visibility: hidden; }
  & .bundle__card-img-wrap {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
  }
  & .bundle__card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  & .bundle__card-title {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--egm-line);
    font-size: 18px;
    font-weight: 700;
    line-height: 24.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  & .bundle__card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: auto 0 8px;
    font-size: 16px;
    font-weight: 500;
  }
  & .bundle__card-price s { font-size: 14px; color: var(--egm-muted); font-weight: 400; }
  & .bundle__card-select {
    width: 100%;
    height: 40px;
    margin-bottom: 8px;
    padding: 0 10px;
    border: 1px solid var(--egm-border);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
  }

  /* Add To Box button and stepper */
  & .bundle__add-btn {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 999px;
    border-radius: 50px;
    background: var(--egm-brown);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 24.3px;
    cursor: pointer;
  }
  & .bundle__add-btn:disabled { background: #CFC6C3; cursor: not-allowed; }
  & .bundle__stepper {
    display: flex;
    align-items: stretch;
    height: 40px;
    border: 2px solid var(--egm-brown);
    border-radius: 999px;
    overflow: hidden;
  }
  & .bundle__stepper-btn {
    flex: 0 0 48px;
    border: 0;
    background: none;
    color: var(--egm-brown);
    font-size: 20px;
    cursor: pointer;
  }
  & .bundle__stepper-btn:disabled { color: #CFC6C3; cursor: not-allowed; }
  & .bundle__stepper-qty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
  }

  /* Bundle panel */
  & .bundle__side {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--egm-border);
    border-radius: 16px;
    background: var(--egm-panel);
    min-width: 0;
  }
  & .bundle__side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  & .bundle__side-title { font-size: 25px; font-weight: 700; line-height: 27.5px; }
  & .bundle__clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 0;
    border-radius: 50px;
    background: #FDECEA;
    color: #D13D54;
    font-size: 16px;
    font-weight: 400;
    line-height: 21.6px;
    cursor: pointer;
  }
  & .bundle__clear svg { width: 13px; height: 13px; }
  & .bundle__side-desc { font-size: 15px; font-weight: 400; line-height: 20.25px; }
  & .bundle__side-count { font-size: 13px; color: var(--egm-muted); }

  /* Jar slots */
  /* Jar list scrolls once it holds more than about 4 jars */
  & .bundle__slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 262px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--egm-disabled) transparent;
  }
  & .bundle__slots::-webkit-scrollbar { width: 4px; }
  & .bundle__slots::-webkit-scrollbar-thumb { background: var(--egm-disabled); border-radius: 4px; }
  & .bundle__slot { flex: 0 0 auto; }
  & .bundle__slot {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  & .bundle__slot-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--egm-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  & .bundle__slot-thumb img { width: 100%; height: 100%; object-fit: contain; }
  & .bundle__slot-thumb.is-empty {
    border: 1px dashed var(--egm-disabled);
    color: #A39793;
    font-size: 22px;
    font-weight: 400;
    line-height: 29.7px;
  }
  & .bundle__slot-info { flex: 1 1 auto; min-width: 0; font-size: 13px; }
  & .bundle__slot-info.is-empty { font-size: 15px; font-weight: 400; line-height: 18px; color: var(--egm-muted); }
  & .bundle__slot-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  & .bundle__slot-price { margin-top: 2px; font-weight: 500; }
  & .bundle__slot-remove {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--egm-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  & .bundle__slot-remove:hover { color: var(--egm-text); }

  /* Free giftbox */
  & .bundle__gift { display: flex; flex-direction: column; gap: 10px; }
  & .bundle__gift-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
  }
  & .bundle__gift-head::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--egm-border);
  }
  & .bundle__gift-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 14px;
    border: 1px dashed var(--egm-border);
    border-radius: 12px;
    background: #fff;
  }
  /* Unlocked gift row: solid brown outline, gift name and a bold Free */
  & .bundle__gift-row.is-unlocked {
    gap: 14px;
    min-height: 58px;
    padding: 9px 14px;
    border: 1.2px solid var(--egm-brown);
    border-radius: 12px;
    background: #fff;
  }
  & .bundle__gift-img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
  & .bundle__gift-row.is-unlocked .bundle__gift-img { flex: 0 0 48px; width: 48px; height: 40px; }
  & .bundle__gift-text { flex: 1 1 auto; min-width: 0; font-size: 13px; }
  & .bundle__gift-row.is-unlocked .bundle__gift-text {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 19.575px;
    color: var(--egm-text);
  }
  & .bundle__gift-lock { display: inline-flex; color: var(--egm-text); }
  & .bundle__gift-free {
    flex: 0 0 auto;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 19.575px;
    color: var(--egm-text);
  }

  /* Total and Add To Cart */
  & .bundle__side-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--egm-line);
  }
  & .bundle__total { display: flex; flex-direction: column; gap: 2px; }
  & .bundle__total-label { font-size: 16px; font-weight: 400; line-height: 21.6px; color: var(--egm-text); }
  & .bundle__total-amount { font-size: 22px; font-weight: 700; line-height: 29.7px; }
  & .bundle__total-amount s { margin-right: 6px; font-size: 14px; color: var(--egm-muted); font-weight: 400; }
  & .bundle__atc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--egm-brown);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
  }
  & .bundle__atc-btn:disabled { background: var(--egm-disabled); cursor: not-allowed; }
  & .bundle__atc-btn.is-loading { background: var(--egm-brown); opacity: 0.85; cursor: progress; }
  & .bundle__atc-btn.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: bundle-spin-test-template-53254 0.9s linear infinite;
  }
  & .bundle__validation { font-size: 12px; color: #b3261e; text-align: right; }

  /* Curated gift sets section */
  & .bundle__sets {
    margin-top: 64px;
    padding-top: 56px;
    border-top: 1px solid var(--egm-line);
  }
  & .bundle__sets-heading {
    max-width: 780px;
    margin-bottom: 32px;
    font-size: 44px;
    font-weight: 700;
    line-height: 47.52px;
    letter-spacing: -0.3px;
  }
  & .bundle__sets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  /* Set card */
  & .bundle__set {
    display: grid;
    grid-template-columns: 45% minmax(0, 1fr);
    min-width: 0;
    border: 1px solid var(--egm-border);
    border-radius: 16px;
    background: var(--egm-panel);
    overflow: hidden;
  }
  & .bundle__set.is-selected {
    border-color: var(--egm-brown);
    box-shadow: inset 0 0 0 1px var(--egm-brown);
  }
  & .bundle__set.is-skeleton {
    display: block;
    min-height: 320px;
    animation: egm-pulse-test-template-53254 1.4s ease-in-out infinite;
  }
  & .bundle__set-media {
    display: block;
    min-height: 100%;
    background: var(--egm-line);
  }
  & .bundle__set-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  & .bundle__set-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 22px;
  }
  & .bundle__set-name { font-size: 22px; font-weight: 700; }
  & .bundle__set-desc { font-size: 15.5px; font-weight: 400; line-height: 20.925px; }

  /* Set product rows */
  & .bundle__set-items { border-top: 1px solid var(--egm-line); }
  & .bundle__set-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--egm-line);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 19.575px;
  }
  & .bundle__set-item-thumb {
    flex: 0 0 32px;
    display: flex;
    width: 32px;
    height: 32px;
  }
  & .bundle__set-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
  & .bundle__set-item-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  & .bundle__set-item-price { flex: 0 0 auto; }

  /* Set footer and Choose set */
  & .bundle__set-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
  }
  & .bundle__set-meta { display: flex; flex-direction: column; gap: 2px; }
  & .bundle__set-count { font-size: 13px; }
  & .bundle__set-total { font-size: 21px; font-weight: 700; line-height: 28.35px; }
  & .bundle__set-choose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 22px;
    border: 1.2px solid var(--egm-brown);
    border-radius: 50px;
    background: transparent;
    color: var(--egm-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 22.95px;
    white-space: nowrap;
    cursor: pointer;
  }
  & .bundle__set-choose:hover:not(:disabled),
  & .bundle__set-choose.is-selected {
    background: var(--egm-brown);
    color: #fff;
  }
  & .bundle__set-choose:disabled { cursor: progress; opacity: 0.7; }
  & .bundle__set-choose.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: bundle-spin-test-template-53254 0.9s linear infinite;
  }

  /* Replace / options / error message under a set */
  & .bundle__set-prompt {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--egm-border);
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
  }
  & .bundle__set-prompt.is-error { border-color: #F3C5CC; }
  & .bundle__set-prompt.is-error p { color: #b3261e; }
  & .bundle__set-prompt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  & .bundle__set-replace,
  & .bundle__set-variants-confirm,
  & .bundle__set-cancel {
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }
  & .bundle__set-replace,
  & .bundle__set-variants-confirm {
    border: 0;
    background: var(--egm-brown);
    color: #fff;
  }
  & .bundle__set-cancel {
    border: 1px solid var(--egm-border);
    background: #fff;
  }
  & .bundle__set-variant-field { display: flex; flex-direction: column; gap: 4px; }
  & .bundle__set-variant {
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--egm-border);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
  }

  /* Empty and loading states */
  & .bundle__empty {
    grid-column: 1 / -1;
    padding: 32px;
    text-align: center;
    color: var(--egm-muted);
  }
  & .bundle__loader {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
  }
  & .bundle__loader::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid var(--egm-line);
    border-top-color: var(--egm-brown);
    border-radius: 50%;
    animation: bundle-spin-test-template-53254 0.9s linear infinite;
  }

  /* Tablet */
  @media (max-width: 1024px) {
    & .bundle__body { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
    & .bundle__sets-grid { grid-template-columns: 1fr; }
    & .bundle__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  /* Phones */
  @media (max-width: 799px) {
    /* Bottom padding keeps the fixed bar off the content */
    & .bundle__inner { padding: 40px 16px 130px; }
    /* Hero on phones */
    & .bundle__hero { min-height: 0; padding: 28px 16px 24px; gap: 16px; }
    & .bundle__hero-title { font-size: 36px; }
    & .bundle__hero-line { height: 48px; }
    & .bundle__hero-text { font-size: 14px; }
    & .bundle__intro-heading { font-size: 28px; line-height: 29.4px; }
    & .bundle__intro-text { margin-bottom: 0; font-size: 15.5px; line-height: 20.925px; }
    /* Box cards on phones: content in one column, radio top-right */
    & .bundle__boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 28px; }
    & .bundle__boxcard { flex-direction: column; align-items: stretch; gap: 6px; min-height: 0; padding: 12px; }
    & .bundle__boxcard.is-active { padding: 11px; }
    & .bundle__boxcard-radio { position: absolute; top: 10px; right: 10px; z-index: 1; }
    & .bundle__boxcard-thumb { flex: none; width: 100%; height: 70px; }
    & .bundle__boxcard-label { font-size: 17px; line-height: 22.95px; }
    & .bundle__boxcard-sub { font-size: 13px; line-height: 17.55px; }
    & .bundle__body { display: flex; flex-direction: column; gap: 28px; }
    & .bundle__main { width: 100%; }
    /* Tabs scroll sideways on phones, with room so the outline is never cut */
    /* Range tabs stick to the top of the screen */
    & .bundle__tabs {
      position: sticky;
      top: 0;
      z-index: 50;
      flex-wrap: nowrap;
      overflow-x: auto;
      margin: 0 -16px;
      padding: 6px 16px 12px;
      scroll-padding-inline: 16px;
      scrollbar-width: none;
      background: #fff;
    }
    & .bundle__tab { padding: 9px 16px; border-radius: 50px; font-size: 16.5px; font-weight: 700; color: var(--egm-brown); line-height: 1.1;}
    & .bundle__cat-title { margin: 18px 0 16px; font-size: 22px; line-height: 29.7px; }
    & .bundle__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    /* 48px of title text plus its 12px padding */
    & .bundle__card-title { min-height: 60px; margin-bottom: 12px; padding-bottom: 12px; font-size: 15.5px; line-height: 20.925px; }
    & .bundle__card-price { font-size: 16.5px; font-weight: 700; line-height: 22.275px; }
    & .bundle__add-btn,
    & .bundle__stepper,
    & .bundle__card-select { height: 44px; }
    & .bundle__add-btn { font-size: 16px; line-height: 21.6px; }
    & .bundle__card-select { font-size: 16px; }
    /* View box sheet */
    & .bundle__side {
      position: fixed;
      top: auto;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1001;
      width: 100%;
      max-height: 86vh;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: 28px 16px calc(20px + env(safe-area-inset-bottom));
      border-width: 1px 0 0;
      border-radius: 16px 16px 0 0;
      transform: translateY(100%);
      visibility: hidden;
      transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }
    & .bundle__side::before {
      content: "";
      position: absolute;
      top: 10px;
      left: 50%;
      width: 40px;
      height: 4px;
      margin-left: -20px;
      border-radius: 2px;
      background: var(--egm-border);
    }
    &.is-sheet-open .bundle__side {
      transform: none;
      visibility: visible;
      transition: transform 0.3s ease;
    }
    & .bundle__backdrop {
      display: block;
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: rgba(0, 0, 0, 0.4);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }
    &.is-sheet-open .bundle__backdrop { opacity: 1; pointer-events: auto; }
    & .bundle__sheet-close {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border: 0;
      background: none;
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
    }

    /* Bottom bar, fixed to the bottom of the screen */
    & .bundle__bar {
      display: block;
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 900;
      margin: 0;
      padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
      background: var(--egm-panel);
      border-top: 1px solid var(--egm-border);
    }
    & .bundle__bar-top {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    & .bundle__bar-thumbs {
      display: flex;
      gap: 5px;
      flex: 0 1 auto;
      max-width: 45%;
      overflow: hidden;
    }
    & .bundle__bar-thumb {
      flex: 0 0 40px;
      display: flex;
      width: 40px;
      height: 40px;
      border: 1px solid var(--egm-line);
      border-radius: 7px;
      background: #fff;
      overflow: hidden;
    }
    & .bundle__bar-thumb img { width: 100%; height: 100%; object-fit: contain; }
    & .bundle__bar-thumb.is-empty {
      border: 1.5px dashed #B9ACA8;
      background: #EFECEC;
    }
    & .bundle__bar-info {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    & .bundle__bar-count { font-size: 13.5px; font-weight: 400; line-height: 16.875px; color: var(--egm-text); }
    & .bundle__bar-total { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--egm-text); }
    & .bundle__bar-total s { margin-right: 4px; font-size: 13px; color: var(--egm-muted); font-weight: 400; }
    /* View box as an underlined link */
    & .bundle__bar-view {
      flex: 0 0 auto;
      min-height: 44px;
      padding: 0 4px;
      border: 0;
      background: none;
      color: var(--egm-text);
      font-size: 13.5px;
      font-weight: 400;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
    }
    & .bundle__bar-atc {
      width: 100%;
      height: 46px;
      margin-top: 10px;
      border-radius: 50px;
      font-size: 18px;
      font-weight: 700;
    }
    & .bundle__clear { min-height: 44px; }
    & .bundle__slot-remove { width: 44px; height: 44px; }
    /* Jar list in the View box sheet: scrolls within 40% of the screen */
    & .bundle__slots { max-height: 40vh; }
    /* Gift sets on phones: one column, photo on top */
    & .bundle__sets { margin-top: 56px; padding-top: 40px; }
    & .bundle__sets-heading { margin-bottom: 20px; font-size: 30px; line-height: 32.4px; letter-spacing: -0.3px; }
    & .bundle__sets-grid { grid-template-columns: 1fr; gap: 18px; }
    & .bundle__set { grid-template-columns: 1fr; }
    & .bundle__set-media { aspect-ratio: 16 / 10; min-height: 0; }
    & .bundle__set-body { padding: 18px 16px; }
    & .bundle__set-choose { height: 44px; }
    & .bundle__set-replace,
    & .bundle__set-variants-confirm,
    & .bundle__set-cancel { min-height: 44px; }
    & .bundle__set-variant { height: 44px; font-size: 16px; }
  }
}

/* Page scroll lock while the phone sheet is open */
@media (max-width: 799px) {
  body.gbb-bundle-scroll-lock { overflow: hidden; }
}

@keyframes egm-pulse-test-template-53254 {
  50% { opacity: 0.55; }
}

@keyframes bundle-spin-test-template-53254 {
  to { transform: rotate(360deg); }
}