.bgs-mix-match {
    background: var(--bgs-mix-match-bg, #f8fafc);
    border: 1px solid var(--bgs-mix-match-border, #eef1f5);
    border-radius: 16px;
    box-sizing: border-box;
    clear: both;
    color: var(--bgs-mix-match-text, #334155);
    display: flow-root;
    height: auto !important;
    margin: 22px 0;
    max-height: none !important;
    min-height: 0;
    overflow: visible;
    padding: 24px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.single-product div.product .bgs-mix-match {
    flex: 0 0 auto;
}

.bgs-mix-match__head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 22px;
    min-height: 36px;
}

.bgs-mix-match__head > div {
    min-width: 0;
}

.bgs-mix-match__head span,
.bgs-mix-match__subhead {
    color: #9aa4b2;
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bgs-mix-match__head-title {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.bgs-mix-match__head strong {
    color: var(--bgs-mix-match-accent, #111827);
    display: block;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 1.15;
    margin-top: 0;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.bgs-mix-match__toggle {
    background: none;
    border: none;
    color: #9aa4b2;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0;
    text-decoration: underline;
    text-transform: uppercase;
    transition: color 0.15s;
}

.bgs-mix-match__toggle:hover {
    color: #050505;
}

.bgs-mix-match__head em {
    align-items: center;
    background: #050505;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 28px;
    min-width: 68px;
    padding: 5px 11px;
    text-transform: uppercase;
}

.bgs-mix-match__head em small {
    font-size: 8px;
    font-weight: 800;
    margin-top: 2px;
}

/* Progress bar — two-row layout matching the HTML mockup */
.bgs-mix-match__progress {
    margin: 0 0 24px;
}

/* Row 1: track + dots */
.bgs-mix-match__progress-bar {
    height: 12px;
    margin-bottom: 10px;
    overflow: visible;
    position: relative;
}

.bgs-mix-match__progress-bar::before {
    background: #e5e7eb;
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 4px;
}

.bgs-mix-match__progress-fill {
    background: #050505;
    border-radius: 999px;
    height: 4px;
    left: 0;
    position: absolute;
    top: 4px;
    transition: width 0.5s ease;
    width: 0;
    z-index: 1;
}

/* Each span is a dot, absolutely positioned at left: X% (calculated by PHP).
   translateX(-50%) mirrors the mockup's -translate-x-1/2 to centre each dot on its position. */
.bgs-mix-match__progress span {
    background: #fff;
    border: 2px solid #d9dde5;
    border-radius: 999px;
    box-shadow: 0 0 0 2px #fff;
    display: block;
    height: 12px;
    position: absolute;
    transform: translateX(-50%);
    width: 12px;
    z-index: 2;
}

.bgs-mix-match__progress span.is-active {
    background: #050505;
    border-color: #050505;
}

/* Row 2: labels — justify-content: space-between keeps first/last inside the container */
.bgs-mix-match__progress-labels {
    display: flex;
    justify-content: space-between;
}

.bgs-mix-match__progress-labels b {
    color: #9aa4b2;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bgs-mix-match__progress-labels b.is-active {
    color: #050505;
}

.bgs-mix-match__nudge {
    align-items: center;
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    color: var(--bgs-mix-match-text, #374151);
    display: flex;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 22px;
    min-height: 48px;
    padding: 10px 12px;
}

.bgs-mix-match__nudge strong,
.bgs-mix-match__nudge b {
    color: #050505;
    display: inline-block;
    font-weight: 800;
    margin: 0 2px;
}

.bgs-mix-match__nudge strong:first-of-type,
.bgs-mix-match__nudge b:first-of-type {
    margin-left: 0;
}

.bgs-mix-match__nudge.is-qualified {
    border-color: #eef1f5;
    color: var(--bgs-mix-match-text, #374151);
    font-weight: 500;
}

.bgs-mix-match__companions {
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.bgs-mix-match__companions.is-collapsed {
    max-height: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.bgs-mix-match__subhead {
    border-bottom: 1px solid #e9edf2;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

.bgs-mix-match__items {
    display: grid;
    gap: 12px;
}

.bgs-mix-match__empty {
    background: #fff;
    border: 1px dashed #d7dde6;
    border-radius: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    padding: 14px;
}

.bgs-mix-match__item {
    align-items: center;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 20px 46px minmax(0, 1fr) auto;
    min-height: 74px;
    padding: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bgs-mix-match__item:hover,
.bgs-mix-match__item:has(input:checked) {
    border-color: #050505;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.bgs-mix-match__item input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.bgs-mix-match__check {
    border: 1px solid #a5afbd;
    border-radius: 2px;
    display: block;
    height: 16px;
    position: relative;
    width: 16px;
}

.bgs-mix-match__item input:checked + .bgs-mix-match__check {
    background: #050505;
    border-color: #050505;
}

.bgs-mix-match__item input:checked + .bgs-mix-match__check::after {
    color: #fff;
    content: "✓";
    font-size: 12px;
    font-weight: 800;
    left: 2px;
    line-height: 1;
    position: absolute;
    top: 1px;
}

.bgs-mix-match__image {
    background: #f1f1f1;
    border-radius: 4px;
    display: block;
    height: 46px;
    overflow: hidden;
    width: 46px;
}

.bgs-mix-match__thumb {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.bgs-mix-match__meta {
    min-width: 0;
}

.bgs-mix-match__meta strong {
    color: var(--bgs-mix-match-accent, #111827);
    display: block;
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.bgs-mix-match__meta small {
    color: #9aa4b2;
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin-top: 5px;
    text-transform: uppercase;
}

.bgs-mix-match__price {
    color: #050505;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.bgs-mix-match__recap {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    display: grid;
    gap: 9px;
    margin-top: 16px;
    padding-top: 14px;
}

.bgs-mix-match__recap div {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
}

.bgs-mix-match__recap span {
    font-weight: 600;
}

.bgs-mix-match__recap strong {
    color: #334155;
    font-weight: 800;
}

.bgs-mix-match__discount,
.bgs-mix-match__discount strong {
    color: #047857 !important;
}

.bgs-mix-match__discount[hidden] {
    display: none;
}

.bgs-mix-match__recap .bgs-mix-match__total {
    border-top: 1px solid #edf0f4;
    color: #050505;
    margin-top: 2px;
    padding-top: 12px;
    text-transform: uppercase;
}

.bgs-mix-match__total span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.bgs-mix-match__total strong {
    color: #050505;
    font-size: 18px;
    font-weight: 900;
}

.bgs-mix-match__button {
    background: #050505;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    height: 42px;
    margin-top: 16px;
    padding: 0 16px;
    text-transform: uppercase;
    width: 100%;
}

.bgs-mix-match__button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.bgs-mix-match__button.is-success {
    background: #16a34a;
    color: #fff;
    opacity: 1;
}

.bgs-mix-match__status {
    color: #64748b;
    font-size: 12px;
    margin-top: 10px;
    min-height: 16px;
}

.bgs-mix-match__status.is-success {
    align-items: center;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 999px;
    color: #166534;
    display: inline-flex;
    font-weight: 800;
    min-height: 26px;
    padding: 5px 11px;
}

.bgs-mix-match--cart {
    margin: 0 0 18px;
    padding: 0;
}

.bgs-mix-match--cart .bgs-mix-match__nudge {
    margin: 0;
}

.bgs-mix-match-float {
    bottom: 32px;
    left: 50%;
    opacity: 1;
    pointer-events: auto;
    position: fixed;
    transform: translate(-50%, 0);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9997;
}

.bgs-mix-match-float.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 36px);
}

.bgs-mix-match-float__pill {
    align-items: center;
    animation: bgs-mix-match-float-pulse 4.5s ease-in-out infinite;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.26);
    color: #fff;
    cursor: pointer;
    display: flex;
    gap: 20px;
    min-height: 58px;
    padding: 14px 24px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.bgs-mix-match-float__pill::after {
    animation: bgs-mix-match-glare 6s infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    content: "";
    height: 100%;
    left: -60%;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: skewX(-24deg);
    width: 34%;
}

.bgs-mix-match-float__pill:hover {
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.32);
    transform: translateY(-2px);
}

.bgs-mix-match-float__avatars {
    display: flex;
    margin-right: 2px;
}

.bgs-mix-match-float__avatars span {
    align-items: center;
    background: #f8fafc;
    border: 2px solid #050505;
    border-radius: 999px;
    color: #050505;
    display: flex;
    font-size: 8px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    margin-left: -8px;
    overflow: hidden;
    width: 24px;
}

.bgs-mix-match-float__avatars span:first-child {
    margin-left: 0;
}

.bgs-mix-match-float__avatars span:last-child {
    background: #222;
    color: #fff;
}

.bgs-mix-match-float__thumb {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.bgs-mix-match-float__copy {
    display: grid;
    gap: 3px;
    text-align: left;
}

.bgs-mix-match-float__copy p {
    margin: 0;
}

.bgs-mix-match-float__copy strong {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.bgs-mix-match-float__copy small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1;
    text-transform: uppercase;
}

.bgs-mix-match-float__arrow {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: #050505;
    display: flex;
    font-weight: 500;
    height: 24px;
    justify-content: center;
    line-height: 1;
    margin-left: 8px;
    width: 24px;
}

.bgs-mix-match-float__arrow svg,
.bgs-mix-match-float__close svg {
    display: block;
}

.bgs-mix-match-float__close {
    align-items: center;
    background: #222;
    border: 1px solid #050505;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    height: 20px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: -5px;
    top: -7px;
    transition: background 0.18s ease;
    width: 20px;
}

.bgs-mix-match-float__close:hover {
    background: #ef4444;
}

.bgs-mix-match-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 26px;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.28s ease;
    z-index: 10000;
}

.bgs-mix-match-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.bgs-mix-match-modal-open {
    overflow: hidden;
}

.bgs-mix-match-modal-open #bgs-store-spending-goal-widget,
.bgs-mix-match-modal-open #bgs-store-free-gift-widget,
.bgs-mix-match-modal-open #bgs-store-spending-goal-anchor,
.bgs-mix-match-modal-open #bgs-store-free-gifts-anchor {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.bgs-mix-match-modal__overlay {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(16px);
    inset: 0;
    position: absolute;
}

.bgs-mix-match-modal__panel {
    background: #f8f8f8;
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
    max-height: min(86vh, 820px);
    max-height: min(86dvh, 820px);
    max-width: 1080px;
    overflow: hidden;
    position: relative;
    transform: scale(0.96) translateY(18px);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    width: min(100%, 1080px);
}

.bgs-mix-match-modal.is-open .bgs-mix-match-modal__panel {
    transform: scale(1) translateY(0);
}

.bgs-mix-match-modal__close {
    align-items: center;
    background: #050505;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 20px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 34px;
    z-index: 4;
}

.bgs-mix-match--builder {
    background: #f8f8f8;
    border: 0;
    border-radius: 0;
    display: block;
    margin: 0;
    max-height: min(86vh, 820px) !important;
    max-height: min(86dvh, 820px) !important;
    overflow: auto;
    padding: clamp(20px, 3vw, 34px) clamp(18px, 3vw, 34px) 0;
    scroll-padding-bottom: 124px;
    -webkit-overflow-scrolling: touch;
}

.bgs-mix-match-builder__hero {
    margin: 0 auto 20px;
    max-width: 620px;
    text-align: center;
}

.bgs-mix-match-builder__hero h2 {
    color: #050505;
    font-size: clamp(1.15rem, 1.6vw, 1.65rem);
    font-weight: 900;
    letter-spacing: 0.22em;
    line-height: 1;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.bgs-mix-match-builder__hero p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.bgs-mix-match-builder__progress {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
    margin: 0 auto 22px;
    max-width: 920px;
    padding: 14px 18px 12px;
    position: sticky;
    top: 0;
    z-index: 3;
}

.bgs-mix-match-builder__progress .bgs-mix-match__nudge {
    box-shadow: none;
    margin-bottom: 12px;
    min-height: 0;
    padding: 8px 10px;
}

.bgs-mix-match-builder__progress .bgs-mix-match__progress {
    margin-bottom: 0;
}

.bgs-mix-match-builder__toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bgs-mix-match-builder__toolbar h3 {
    color: #050505;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0;
}

.bgs-mix-match-builder__toolbar span {
    background: #050505;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 7px 13px;
}

.bgs-mix-match-builder__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 24px;
}

.bgs-mix-match-builder__card.bgs-mix-match__item {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 0;
    padding: 9px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.bgs-mix-match-builder__card.bgs-mix-match__item:hover {
    border-color: #d8dde6;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.bgs-mix-match-builder__card.bgs-mix-match__item:has(input:checked) {
    background: #fff;
    border-color: #050505;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

.bgs-mix-match-builder__selected {
    align-items: center;
    background: #050505;
    border-radius: 999px;
    color: #fff;
    display: flex;
    font-size: 11px;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    left: 13px;
    opacity: 0;
    position: absolute;
    top: 13px;
    transform: scale(0.6);
    transition: opacity 0.18s ease, transform 0.18s ease;
    width: 20px;
    z-index: 2;
}

.bgs-mix-match-builder__card input:checked + .bgs-mix-match-builder__selected {
    opacity: 1;
    transform: scale(1);
}

.bgs-mix-match-builder__image {
    background: #eef1f5;
    border-radius: 9px;
    display: block;
    height: 54px;
    margin: 0;
    overflow: hidden;
    width: 54px;
}

.bgs-mix-match-builder__thumb {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    width: 100%;
}

.bgs-mix-match-builder__card:hover .bgs-mix-match-builder__thumb {
    transform: scale(1.04);
}

.bgs-mix-match-builder__meta {
    display: block;
    min-height: 0;
    min-width: 0;
}

.bgs-mix-match-builder__meta strong {
    color: #050505;
    display: block;
    font-size: 11.5px;
    font-weight: 850;
    line-height: 1.18;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bgs-mix-match-builder__meta small {
    color: #8b95a5;
    display: block;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.25;
    text-transform: uppercase;
}

.bgs-mix-match-builder__price {
    color: #050505;
    display: block;
    font-size: 11.5px;
    font-weight: 850;
    grid-column: 2;
    margin-top: -16px;
}

.bgs-mix-match-builder__bar {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5e7eb;
    bottom: 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 calc(clamp(18px, 3vw, 34px) * -1);
    padding: 18px clamp(32px, 4vw, 48px);
    position: sticky;
    width: calc(100% + (clamp(18px, 3vw, 34px) * 2));
    z-index: 4;
}

.bgs-mix-match-builder__totals {
    align-items: center;
    display: flex;
    gap: 18px;
}

.bgs-mix-match-builder__totals > div {
    display: grid;
    gap: 3px;
}

.bgs-mix-match-builder__totals > div:not(:first-child) {
    border-left: 1px solid #e5e7eb;
    padding-left: 18px;
}

.bgs-mix-match-builder__totals span {
    color: #8b95a5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bgs-mix-match-builder__totals strong {
    color: #050505;
    font-size: 15px;
    font-weight: 850;
}

.bgs-mix-match-builder__total strong {
    font-size: 22px;
    font-weight: 900;
}

.bgs-mix-match-builder__bar .bgs-mix-match__button {
    border-radius: 999px;
    flex: 0 0 auto;
    height: 48px;
    margin: 0;
    padding: 0 38px;
    width: auto;
}

.bgs-mix-match-builder__bar .bgs-mix-match__status {
    bottom: 5px;
    position: absolute;
    right: clamp(24px, 4vw, 46px);
}

@keyframes bgs-mix-match-glare {
    0% { left: -60%; }
    24% { left: 130%; }
    100% { left: 130%; }
}

@keyframes bgs-mix-match-float-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (max-width: 520px) {
    .bgs-mix-match {
        padding: 18px;
    }

    .bgs-mix-match__item {
        grid-template-columns: 20px 42px minmax(0, 1fr);
    }

    .bgs-mix-match__price {
        grid-column: 3;
    }

    .bgs-mix-match-builder__card.bgs-mix-match__item {
        grid-template-columns: 54px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .bgs-mix-match-builder__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bgs-mix-match-builder__bar {
        align-items: stretch;
        flex-direction: column;
    }

    .bgs-mix-match-builder__bar .bgs-mix-match__button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .bgs-mix-match-float {
        bottom: 18px;
        width: auto;
        max-width: calc(100vw - 72px);
    }

    .bgs-mix-match-float__pill {
        gap: 8px;
        justify-content: center;
        min-height: 48px;
        padding: 8px 10px;
        width: auto;
    }

    .bgs-mix-match-float__avatars span {
        height: 20px;
        width: 20px;
    }

    .bgs-mix-match-float__copy strong {
        font-size: 9px;
    }

    .bgs-mix-match-float__copy small {
        font-size: 7px;
        letter-spacing: 0.12em;
    }

    .bgs-mix-match-float__arrow {
        height: 22px;
        margin-left: 2px;
        width: 22px;
    }

    .bgs-mix-match-modal {
        align-items: flex-end;
        padding: 8px;
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        padding-top: max(8px, env(safe-area-inset-top));
    }

    .bgs-mix-match-modal__panel {
        border-radius: 16px 16px 0 0;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }

    .bgs-mix-match--builder {
        max-height: calc(100vh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;
        padding: 18px 14px 0;
        scroll-padding-bottom: 148px;
    }

    .bgs-mix-match-modal__close {
        height: 28px;
        right: 10px;
        top: 10px;
        width: 28px;
    }

    .bgs-mix-match-builder__hero {
        margin-bottom: 14px;
        padding: 0 28px;
    }

    .bgs-mix-match-builder__hero h2 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .bgs-mix-match-builder__hero p {
        font-size: 12px;
    }

    .bgs-mix-match-builder__progress {
        border-radius: 13px;
        margin-bottom: 18px;
        padding: 12px 12px 10px;
    }

    .bgs-mix-match-builder__grid {
        grid-template-columns: 1fr;
        padding-bottom: 152px;
    }

    .bgs-mix-match-builder__toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .bgs-mix-match-builder__totals {
        align-items: stretch;
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .bgs-mix-match-builder__totals > div:not(:first-child) {
        border-left: 1px solid #e5e7eb;
        border-top: 0;
        padding-left: 8px;
        padding-top: 0;
    }

    .bgs-mix-match-builder__totals span {
        font-size: 8px;
        letter-spacing: 0.1em;
        line-height: 1.15;
    }

    .bgs-mix-match-builder__totals strong {
        font-size: 13px;
        line-height: 1.1;
    }

    .bgs-mix-match-builder__total strong {
        font-size: 16px;
    }

    .bgs-mix-match-builder__bar {
        margin: 0 -14px;
        padding: 12px 14px max(14px, env(safe-area-inset-bottom));
        width: calc(100% + 28px);
    }

    .bgs-mix-match-builder__bar .bgs-mix-match__button {
        height: 44px;
    }
}
