.tww-bmsm-loop-badge,
.tww-bmsm-dom-badge {
    position: absolute;
    z-index: 8;
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffca28, #ff8a2a);
    color: #162033;
    box-shadow: 0 7px 18px rgba(255, 138, 42, .28);
    font: 800 10px/1.1 "Open Sans", sans-serif;
    letter-spacing: .035em;
    text-transform: uppercase;
}

li.product,
.tww-product-card { position: relative; }

.tww-product-card .tww-bmsm-dom-badge {
    top: 10px;
    right: 10px;
}

.tww-bmsm-offer {
    margin: 14px 0 16px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, .38);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 251, 235, .95), rgba(255, 237, 213, .9));
    box-shadow: 0 12px 30px rgba(245, 158, 11, .1);
}

.tww-bmsm-kicker {
    color: #b45309;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.tww-bmsm-offer h3 {
    margin: 3px 0 5px;
    color: #172142;
    font-size: 22px;
    line-height: 1.15;
}

.tww-bmsm-offer p { margin: 0 0 12px; color: #526079; font-size: 13px; }

.tww-bmsm-offer__status {
    display: block;
    margin-top: 9px;
    color: #047857;
    font-size: 11px;
    font-weight: 800;
}

.tww-purchase-highlights details .tww-bmsm-offer.is-in-special-offers {
    margin: 12px 0 0;
    padding: 13px 0 2px;
    border: 0;
    border-top: 1px solid #d9e2ef;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
}

.tww-purchase-highlights details .tww-bmsm-offer h3 {
    margin: 2px 0 4px;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.25;
}

.tww-purchase-highlights details .tww-bmsm-offer p {
    margin-bottom: 10px;
    font-family: inherit;
    font-size: 12px;
}

.tww-purchase-highlights details .tww-bmsm-choices a {
    min-height: 58px;
    padding: 7px 5px;
}

.tww-bmsm-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tww-bmsm-choices button,
.tww-bmsm-choices a {
    position: relative;
    min-height: 65px;
    padding: 9px 7px;
    border: 1px solid #d9dfeb;
    border-radius: 13px;
    background: #fff;
    color: #172142;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tww-bmsm-choices button:hover,
.tww-bmsm-choices button.is-active,
.tww-bmsm-choices a:hover,
.tww-bmsm-choices a.is-active {
    transform: translateY(-2px);
    border-color: #ff9d22;
    box-shadow: 0 8px 20px rgba(245, 158, 11, .16);
}

.tww-bmsm-choices strong,
.tww-bmsm-choices span { display: block; }
.tww-bmsm-choices strong { font-size: 18px; }
.tww-bmsm-choices span { font-size: 12px; font-weight: 800; }
.tww-bmsm-choices em { display: inline-block; margin-top: 3px; color: #047857; font-size: 10px; font-style: normal; font-weight: 800; }

.tww-bmsm-more {
    width: 100%;
    max-width: none;
    margin: 18px 0 28px;
    padding: 24px;
    border: 1px solid #d9e2ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(23, 33, 66, .07);
    font-family: inherit;
}

.single-product div.product > .tww-bmsm-more {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
}

.tww-bmsm-more__heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 16px;
}

.tww-bmsm-more__heading h2 { margin: 2px 0 0; font-size: clamp(24px, 3vw, 36px); color: #172142; }
.tww-bmsm-more__heading p { max-width: 460px; margin: 0; color: #5b6880; }

.tww-bmsm-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.tww-bmsm-card {
    position: relative;
    min-width: 0;
    padding: 9px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(23, 33, 66, .06);
}

.tww-bmsm-card__image { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 11px; background: #f2f5fa; }
.tww-bmsm-card__image img { width: 100%; height: 100%; object-fit: cover; }
.tww-bmsm-card__badge { display: inline-block; margin: 8px 0 5px; padding: 3px 6px; border-radius: 999px; background: #fff1c2; color: #9a5300; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.tww-bmsm-card__title { display: -webkit-box; min-height: 39px; overflow: hidden; color: #172142; font-size: 12px; font-weight: 800; line-height: 1.35; text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tww-bmsm-card > strong { display: block; margin: 6px 0; color: #08bfd9; font-size: 18px; }
.tww-bmsm-card__actions { display: grid; gap: 5px; }
.tww-bmsm-card__actions .button { min-height: 34px; padding: 8px 6px !important; border-radius: 9px !important; font-size: 10px !important; text-align: center; }
.tww-bmsm-cart-note,
.tww-bmsm-savings small { display: block; margin-top: 3px; color: #047857; font-size: 11px; font-weight: 700; }
.tww-bmsm-savings strong { color: #047857; }

.tww-bmsm-fee-breakdown {
    display: grid;
    gap: 3px;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: #52617a;
    white-space: normal;
}

.tww-bmsm-fee-line {
    display: block;
}

.tww-bmsm-block-description {
    display: grid !important;
    flex-basis: 100%;
    grid-column: 1 / -1;
    gap: 3px;
    margin-top: 5px !important;
    color: #52617a;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

.tww-bmsm-fee-line::before {
    content: "\2713";
    margin-right: 5px;
    color: #079c71;
    font-weight: 800;
}

.fee th:has(+ td .tww-bmsm-fee-breakdown) {
    font-weight: 800;
}

body.single-product.tww-product-first div.product {
    width: min(calc(100% - 32px), 1500px) !important;
    margin-inline: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
}

body.single-product.tww-product-first div.product > * {
    min-width: 0;
}

body.single-product.tww-product-first div.product > .tww-key-features,
body.single-product.tww-product-first div.product > .tww-recommended,
body.single-product.tww-product-first div.product > .woocommerce-tabs,
body.single-product.tww-product-first div.product > .related.products {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
}

@media (min-width: 1024px) {
    body.single-product .site-main > .wrap {
        width: 100% !important;
        max-width: none !important;
        margin-inline: 0 !important;
        padding-inline: clamp(16px, 2vw, 32px) !important;
    }

    body.single-product.tww-product-first div.product {
        grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) !important;
        gap: clamp(18px, 2vw, 30px) !important;
    }

    body.single-product.tww-product-first div.product > .summary.entry-summary {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        justify-self: stretch !important;
        grid-row: 1 !important;
    }

    body.single-product.tww-product-first div.product > .tww-key-features {
        margin-top: clamp(18px, 2vw, 26px) !important;
    }

}

@media (max-width: 1180px) { .tww-bmsm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    .tww-bmsm-more { padding: 16px; border-radius: 18px; }
    .tww-bmsm-more__heading { display: block; }
    .tww-bmsm-more__heading p { margin-top: 6px; }
    .tww-bmsm-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
    .tww-bmsm-card { flex: 0 0 47%; scroll-snap-align: start; }
    .tww-bmsm-choices { gap: 6px; }
}
