body.single-product { background: #12152a; color: #f5f5ff; }
.bm-product {
    --product-ink: #f5f5ff;
    --product-muted: #bdc3dd;
    --product-line: #393f62;
    --product-panel: #191d35;
    --product-accent: #c2c9ff;
    color: var(--product-ink);
    font-family: "Red Hat Display", Arial, sans-serif;
}
.bm-product__layout,
.bm-product__layout *,
.bm-product__layout *::before,
.bm-product__layout *::after { box-sizing: border-box; }
.bm-product :is(a, button, input, select, summary):focus-visible {
    outline: 3px solid var(--product-accent);
    outline-offset: 3px;
}
.bm-product [hidden] { display: none !important; }
.bm-product__layout {
    width: min(calc(100% - 3rem), 75rem);
    margin: 0 auto;
    padding-block: clamp(1.45rem, 2.6vw, 2.2rem) clamp(3rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(21rem, 33vw, 26rem);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro order" "details order";
    gap: 0 clamp(2.5rem, 5.6vw, 5.25rem);
    align-items: start;
}
.bm-product__crumbs { margin-bottom: 1.05rem; }
.bm-product__crumbs ol,
.bm-product__links { display: flex; flex-wrap: wrap; align-items: center; }
.bm-product__crumbs ol { gap: .2rem .65rem; margin: 0; padding: 0; list-style: none; }
.bm-product__crumbs li { display: flex; align-items: center; gap: .65rem; color: var(--product-muted); font-size: .84rem; }
.bm-product__crumbs li + li::before { content: "›"; color: #9ca5cb; }
.bm-product__crumbs li:last-child:not(:first-child) { display: none; }
.bm-product__crumbs a,
.bm-product__links a { color: var(--product-muted); text-decoration: none; }
.bm-product__crumbs a:hover,
.bm-product__links a:hover { color: white; text-decoration: underline; text-underline-offset: .2em; }
.bm-product__intro { grid-area: intro; min-width: 0; }
.bm-product__title { display: flex; align-items: flex-start; gap: .9rem; }
.bm-product .bm-product__title img { flex: none; width: 3rem; height: 3rem; border-radius: .55rem; object-fit: cover; }
.bm-product .bm-product__title h1 {
    align-self: center;
    margin: 0;
    color: var(--product-ink);
    font: 730 clamp(1.75rem, 2.7vw, 2.35rem)/1.12 "Red Hat Display", Arial, sans-serif;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.bm-product__links { gap: .3rem 1rem; margin-top: .65rem; }
.bm-product__links a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; font-size: .875rem; font-weight: 550; }
.bm-product__links .dashicons { width: 1rem; height: 1rem; font-size: 1rem; color: #aeb5d4; }
.bm-product__rating img { width: 4.8rem; height: auto; }
@media (min-width: 768px) { .bm-product__links .bm-product__rating--mobile { display: none; } }

.bm-product__details { grid-area: details; min-width: 0; }
.bm-product__section { margin-top: clamp(1.5rem, 2.7vw, 2.4rem); }
.bm-product__section > h2 {
    margin: 0 0 1rem;
    color: var(--product-ink);
    font: 700 clamp(1.25rem, 1.8vw, 1.55rem)/1.2 "Red Hat Display", Arial, sans-serif;
    letter-spacing: -.035em;
}
.bm-product__copy {
    max-width: 69ch;
    color: #d8dcee;
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.bm-product__lead { margin-top: 1rem; color: var(--product-ink); font-size: 1.07rem; }
.bm-product__copy > :first-child { margin-top: 0; }
.bm-product__copy > :last-child { margin-bottom: 0; }
.bm-product__copy :is(p, ul, ol, blockquote) { margin: 0 0 .8em; color: inherit; font: inherit; }
.bm-product__copy :is(ul, ol) { padding-inline-start: 1.4em; }
.bm-product__copy :is(h2, h3, h4) { margin: 1.3em 0 .5em; color: var(--product-ink); font-size: 1.15em; line-height: 1.3; }
.bm-product__copy :is(b, strong) { color: #f4f4ff; }
.bm-product__copy a, .bm-order__fallback a { color: var(--product-accent); text-decoration: underline; text-underline-offset: .2em; }
.bm-product__copy img, .bm-product__copy iframe { max-width: 100%; }
.bm-product__copy img { height: auto; }
.bm-product__copy table { display: block; max-width: 100%; overflow-x: auto; }
.bm-product__photos { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.bm-product__photos a { display: inline-flex; align-items: center; gap: .75rem; color: var(--product-muted); font-size: .875rem; font-weight: 600; text-decoration: none; }
.bm-product .bm-product__photos img { display: block; width: 3.5rem; height: 3.5rem; border: 1px solid var(--product-line); border-radius: .45rem; object-fit: cover; }
.bm-product__photos a:hover img { border-color: var(--product-accent); }
.bm-product__faq { scroll-margin-top: 6rem; }
.bm-product__faq details { border-top: 1px solid var(--product-line); }
.bm-product__faq details:last-child { border-bottom: 1px solid var(--product-line); }
.bm-product__faq summary::-webkit-details-marker,
.bm-extras__help summary::-webkit-details-marker { display: none; }
.bm-product__faq summary { display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; padding-block: .85rem; color: var(--product-ink); font-size: 1rem; font-weight: 650; list-style: none; cursor: pointer; }
.bm-product__faq summary::after {
    content: "";
    flex: none;
    width: .52rem;
    height: .52rem;
    margin-inline: auto .35rem;
    border: solid var(--product-accent);
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-.12rem) rotate(45deg);
}
.bm-product__faq [open] > summary::after { transform: translateY(.12rem) rotate(225deg); }
.bm-product__faq details > div { padding: 0 1.75rem 1.15rem 0; }

.bm-order {
    grid-area: order;
    min-width: 0;
    border: 1px solid var(--product-line);
    border-radius: .85rem;
    background: var(--product-panel);
    scroll-margin-top: 1rem;
}
.bm-order.is-sticky { position: sticky; top: var(--bm-order-top, 1rem); }
.bm-order__art { position: relative; height: clamp(5.5rem, 8vw, 7.25rem); overflow: hidden; border-radius: .8rem .8rem 0 0; }
.bm-product .bm-order__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.bm-order__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--product-panel), rgb(25 29 53 / 10%) 60%); }
.bm-order__body { padding: clamp(1rem, 1.8vw, 1.5rem); }
.bm-order__art + .bm-order__body { padding-top: .15rem; }
.bm-order .bm-order__form { display: grid; gap: 1.1rem; margin: 0; }
.bm-order__choices, .bm-order__field { min-width: 0; margin: 0; padding: 0; border: 0; }
.bm-order .bm-order__field label,
.bm-order__choices legend,
.bm-order__native .variations label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 .55rem;
    padding: 0;
    color: var(--product-ink);
    font: 650 .96rem/1.35 "Red Hat Display", Arial, sans-serif;
    letter-spacing: 0;
}
.bm-order select,
.bm-order .bm-order__native .variations select {
    display: block !important;
    appearance: none;
    width: 100%;
    max-width: 100%;
    min-height: 3rem;
    padding: .7rem 2.55rem .7rem .9rem;
    border: 1px solid #5b638a;
    border-radius: .55rem;
    background: #121732 url("../assets/img/tre.svg") no-repeat right .9rem center / .75rem;
    color: var(--product-ink);
    color-scheme: dark;
    font: 550 .9375rem/1.35 "Red Hat Display", Arial, sans-serif;
    text-overflow: ellipsis;
    cursor: pointer;
}
.bm-order .nice-select { display: none !important; }
.bm-order__tiles { display: flex; flex-wrap: wrap; gap: .5rem; }
.bm-order .bm-order__tile {
    position: relative;
    display: grid;
    flex: 1 0 auto;
    align-content: center;
    min-height: 3.8rem;
    gap: .2rem;
    margin: 0;
    padding: .55rem .7rem;
    border: 1px solid #505978;
    border-radius: .45rem;
    background: #141a35;
    color: var(--product-ink);
    font-size: .975rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.bm-order__tile > span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bm-order__tiles:has(> :nth-child(4)) .bm-order__tile { flex-basis: 40%; }
.bm-order__tile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bm-order__tile small { color: var(--product-muted); font-size: .82rem; font-weight: 500; }
.bm-order .bm-order__tile:has(:checked) { border-color: var(--product-accent); background: #30365b; }
.bm-order__tile:has(:focus-visible) { outline: 3px solid var(--product-accent); outline-offset: 3px; }

.bm-extras { min-width: 0; border-block: 1px solid var(--product-line); }
.bm-extras__heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3.2rem; padding-block: .55rem; }
.bm-extras__heading h2 { margin: 0; color: var(--product-ink); font: 650 1rem/1.35 "Red Hat Display", Arial, sans-serif; }
.bm-extras__heading small { color: var(--product-muted); font-size: .82rem; font-weight: 500; }
.bm-extras__context { margin: 0 0 .5rem; color: var(--product-muted); font-size: .875rem; }
.bm-extras__list { margin: -.15rem 0 .45rem; padding: 0; list-style: none; }
.bm-extras__row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .5rem;
    border-top: 1px solid #333958;
}
.bm-extras__row:first-child { border: 0; }
.bm-order .bm-extras__option {
    display: flex;
    gap: .65rem;
    align-items: center;
    min-height: 2.8rem;
    margin: 0;
    padding-block: .5rem;
    color: #e4e6f6;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.bm-extras__option input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--product-accent); color-scheme: dark; cursor: pointer; }
.bm-extras__name small { display: block; color: var(--product-muted); font-size: .8rem; }
.bm-extras__price { grid-column: 3; font-variant-numeric: tabular-nums; font-size: .92rem; font-weight: 650; white-space: nowrap; }
.bm-extras__help { grid-column: 2; }
.bm-extras__help summary { display: grid; width: 2rem; min-height: 2.75rem; place-items: center; list-style: none; cursor: pointer; }
.bm-extras__help summary span { width: 1rem; border: 1px solid #868fb2; border-radius: 100%; color: var(--product-muted); font: 650 .75rem/.95rem Arial, sans-serif; text-align: center; }
.bm-extras__help p { position: absolute; z-index: 2; inset: auto 0 90%; margin: 0; padding: .75rem; border: 1px solid #69749a; border-radius: .5rem; background: #12172c; color: var(--product-ink); font-size: .875rem; line-height: 1.45; }

.bm-order__total { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding-top: .9rem; border-top: 1px solid var(--product-line); }
.bm-extras + .bm-order__total { padding-top: 0; border: 0; }
.bm-order__total > span { color: var(--product-muted); font-weight: 600; }
.bm-order__total strong { font-size: clamp(1.65rem, 2.3vw, 2.05rem); line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.bm-order bdi { display: inline; }
.bm-product .bm-order .bm-order__submit,
.bm-product .bm-order .single_add_to_cart_button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .7rem;
    width: 100%;
    min-height: 3.2rem;
    margin: 0;
    padding: .75rem 1rem;
    border: 0;
    border-radius: .55rem;
    background: #5042cd;
    color: #fff !important;
    font: 750 1rem/1.3 "Red Hat Display", Arial, sans-serif;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
}
.bm-order__submit span[aria-hidden] { font-family: Arial, sans-serif; font-size: 1.15em; }
.bm-product .bm-order .bm-order__submit:hover,
.bm-product .bm-order .single_add_to_cart_button:hover { background: #5e50db; }
.bm-product .bm-order .single_add_to_cart_button.disabled { opacity: .55; }
.bm-order__unavailable { margin: 0; padding-top: .85rem; border-top: 1px solid var(--product-line); color: var(--product-muted); }
.bm-order__payments { display: flex; align-items: center; justify-content: center; gap: .85rem; margin-top: .9rem; }
.bm-product .bm-order__payments img { display: block; flex: 0 0 auto; width: 2.25rem; max-width: 2.25rem; height: 1.05rem; object-fit: contain; opacity: .77; }
.bm-order__fallback { display: grid; gap: .8rem; }
.bm-order__native .product_meta { margin-top: 1rem; font-size: .84rem; color: var(--product-muted); }
.bm-order__native .product_meta a { color: var(--product-accent); }
.bm-order__native .price { color: var(--product-ink) !important; }
.bm-order__native:has(.woocommerce-variation-add-to-cart-enabled):has(.woocommerce-variation-price:not(:empty)) > .price { display: none; }
.woocommerce .bm-order__native form.cart { margin: 0; }
.bm-order__native .variations :is(tr, th, td) { display: block; width: 100%; }
.bm-order__native .variations .reset_variations { color: var(--product-accent); }
.bm-order__native .woocommerce-variation-price { margin: .9rem 0; text-align: end; }
.bm-order__native .woocommerce-variation-price span { display: inline; }
.bm-order__native .variations_form .quantity { display: none; }

.bm-photo-viewer { width: fit-content; max-width: 94vw; max-height: 94dvh; margin: auto; padding: .85rem; overflow: auto; border: 1px solid #525a7c; border-radius: .75rem; background: #13172e; color: var(--product-ink); }
.bm-photo-viewer::backdrop { background: rgb(5 7 18 / 88%); }
.bm-photo-viewer img { display: block; width: auto; max-width: min(82vw, 65rem); height: auto; max-height: 70dvh; margin: 0 auto; object-fit: contain; }
.bm-photo-viewer__bar, .bm-photo-viewer__controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bm-photo-viewer__bar { padding-bottom: .5rem; }
.bm-photo-viewer button { min-height: 2.75rem; padding: .35rem .65rem; border: 0; border-radius: .4rem; background: transparent; color: var(--product-ink); font: inherit; cursor: pointer; }
.bm-photo-viewer button:hover { background: #303657; }
.bm-product__return { display: none; }

@media (max-width: 899px) {
    .bm-product__layout { width: min(calc(100% - 2rem), 43rem); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "intro" "order" "details"; padding-top: 1rem; }
    .bm-product__crumbs { margin-bottom: .65rem; }
    .bm-product__title { gap: .65rem; }
    .bm-product .bm-product__title img { width: 2.5rem; height: 2.5rem; }
    .bm-product .bm-product__title h1 { font-size: clamp(1.52rem, 5vw, 2rem); }
    .bm-product__links { gap: .25rem .9rem; margin: .35rem 0 .7rem; }
    .bm-product__links a { min-height: 2.75rem; }
    .bm-order__art { height: 5.25rem; }
    .bm-order, .bm-order.is-sticky { position: static; }
    .bm-product__return {
        position: fixed;
        z-index: 12;
        bottom: max(.8rem, env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        display: inline-flex;
        align-items: center;
        gap: .7rem;
        min-height: 2.75rem;
        padding: .55rem 1rem;
        border: 1px solid #858db7;
        border-radius: 2rem;
        background: #202743;
        box-shadow: 0 .2rem 1rem #06082080;
        color: var(--product-ink);
        font-weight: 650;
        text-decoration: none;
        white-space: nowrap;
    }
}
@media (max-width: 399px) {
    .bm-product__layout { width: calc(100% - 1.5rem); }
    .bm-product__links { column-gap: .75rem; }
    .bm-product__links .dashicons { display: none; }
    .bm-order .bm-order__tile { padding-inline: .45rem; }
    .bm-extras__row { gap: .3rem; }
}
