.bm-pack { margin-block: 1rem; }
.bm-pack-item { border: 0; border-bottom: 1px solid #ddd; margin: 0 0 .75rem; padding: 0 0 .75rem; min-width: 0; }
.bm-pack-item legend { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.bm-pack-item-body { display: flex; gap: .75rem; align-items: flex-start; }
.bm-pack-item-body img { object-fit: contain; width: 70px; height: 70px; }
.bm-pack-gallery { flex: 0 0 80px; min-width: 0; }
.bm-pack-thumbnails { display: flex; flex-wrap: wrap; gap: .2rem; }
.bm-pack-thumbnails button { padding: 0; border: 1px solid #ddd; background: #fff; }
.bm-pack-thumbnails img, .bm-pack-simple .bm-pack-thumbnails img { width: 32px; height: 32px; }
.bm-pack-item-controls { flex: 1; min-width: 0; }
.bm-pack-item-controls label { display: block; float: none; width: auto; text-align: left; margin: 0 0 .25rem; }
.bm-pack-item-controls input[type=number] { width: 6rem; }
.bm-pack-item-controls .form-control { margin-bottom: .5rem; font-size: 1rem; }
.bm-pack-component-price { margin-inline-start: .5rem; }
.bm-pack-error { color: #9d1b22; }
.bm-pack-edit { display: block; margin-block: .5rem; text-decoration: underline; }
.bm-pack-description { font-size: .9rem; margin-block: .5rem; }
.bm-pack-description img { max-width: 100%; height: auto; }
.bm-pack-stock { display: block; font-size: .9rem; }
.bm-pack-simple .bm-pack-item legend { font-size: .9rem; }
.bm-pack-simple .bm-pack-item-body img { width: 45px; height: 45px; }
.bm-pack-related ul { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 1rem; list-style: none; padding: 0; }
.bm-pack-related img { width: 100%; height: 160px; object-fit: contain; }
.bm-pack-related a, .bm-pack-related span { display: block; }
.product-miniature .bm-pack-configure { display: block; margin-right: 40px; padding-inline: .4rem; font-size: 1rem; white-space: normal; }

.bm-pack [hidden] { display: none !important; }
.bm-pack-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: 1rem; }
.bm-pack-tabs button { border: 1px solid #ddd; background: #fff; color: inherit; padding: .5rem; min-height: 44px; text-align: start; flex: 1 1 120px; }
.bm-pack-tabs button[aria-selected=true] { background: var(--bm-tabActiveBackgroundColor,#f2f2f2); color: var(--bm-tabActiveFontColor,inherit); border-color: var(--bm-tabActiveBorderColor,#555); }
.bm-pack-tabs button:focus-visible, .bm-pack-thumbnails button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.bm-pack-component-price { background: var(--bm-ribbonBackgroundColor,transparent); color: var(--bm-ribbonFontColor,inherit); border: 1px solid var(--bm-ribbonBorderColor,transparent); padding: .15rem .3rem; display: inline-block; }
.bm-pack-remove { color: var(--bm-iconRemoveFontColor,inherit); }
.bm-pack-remove:has(input:checked) { color: var(--bm-iconCheckFontColor,inherit); }
.bm-pack-simple .bm-pack-item + .bm-pack-item::before { content: '+'; display: block; color: var(--bm-iconPlusFontColor,inherit); margin-bottom: .5rem; }
.bm-pack-view { background: var(--bm-viewThisPackButtonBackgroundColor,#f2f2f2); color: var(--bm-viewThisPackButtonFontColor,inherit); }
.bm-pack-buy { background: var(--bm-buyThisPackButtonBackgroundColor,#447f20); color: var(--bm-buyThisPackButtonFontColor,#fff); }
@media (max-width: 767px) { .bm-pack-tabs button { flex-basis: 100px; } .bm-pack-item-body { flex-wrap: wrap; } .bm-pack-item-controls { flex-basis: 180px; } }
@media (max-width: 767px) {
  body#product:has(.bm-pack) #wrapper > .container { min-width: 0; width: 100%; }
  body#product:has(.bm-pack) #main, body#product:has(.bm-pack) .product-container { grid-template-columns: minmax(0,1fr); }
  .bm-pack-tabs button { min-width: 0; overflow-wrap: anywhere; }
}

.bm-pack-open { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid currentColor; border-radius: 4px; background: #fff; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.bm-pack-dialog { width: min(640px,calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 8px; color: inherit; background: #fff; overscroll-behavior: contain; }
.bm-pack-dialog::backdrop { background: rgb(0 0 0 / 45%); overflow: hidden; overscroll-behavior: contain; }
.bm-pack-dialog > [data-bm-dialog-content] { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.bm-pack-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bm-pack-dialog .bm-pack-dialog-header { padding: 16px 24px; border-bottom: 1px solid #e5e5e5; flex: 0 0 auto; }
.bm-pack-dialog-header h2 { margin: 0; }
.bm-pack-dialog-close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 4px; background: #fff; color: inherit; font-size: 28px; cursor: pointer; }
.bm-pack-dialog .bm-pack-dialog-body { padding: 24px; overflow: auto; overscroll-behavior: contain; min-height: 0; }
.bm-pack-dialog .bm-pack-item:last-of-type { margin-bottom: 0; }
.bm-pack-dialog-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 24px; border-top: 1px solid #e5e5e5; }
.bm-pack-dialog-footer > span { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.bm-pack-dialog-footer strong { font-size: 18px; }
.bm-pack-open:focus-visible, .bm-pack-dialog-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 767px) {
  .bm-pack-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .bm-pack-dialog > [data-bm-dialog-content] { max-height: calc(100dvh - 24px); }
  .bm-pack-dialog .bm-pack-dialog-header, .bm-pack-dialog .bm-pack-dialog-body, .bm-pack-dialog-footer { padding: 16px; }
  .bm-pack-dialog-footer .btn { min-height: 44px; padding: 12px 16px; font-size: 14px; }
}
