.mm-one-bundle {
    --mm-bg: #171b20;
    --mm-panel: #20262d;
    --mm-border: #6c8296;
    --mm-text: #f5f7f9;
    --mm-focus: #8bc9ff;
    color: var(--mm-text);
    background: var(--mm-bg);
    border: 1px solid #46505a;
    border-radius: 12px;
    padding: clamp(16px, 3vw, 32px);
    max-width: 1000px;
    margin: 1rem auto 2rem;
}

.mm-one-bundle h2 {
    color: inherit;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    margin: 0 0 .85rem;
}

.mm-one-bundle p { margin: .6rem 0; }
.mm-one-bundle :is(.mm-pack-options, .mm-category-options) {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.mm-one-bundle button,
.mm-one-bundle :is(input, select) {
    background: var(--mm-panel);
    border: 1px solid var(--mm-border);
    color: var(--mm-text);
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 44px;
    padding: .6rem .85rem;
    font: inherit;
}

.mm-one-bundle button { cursor: pointer; }
.mm-one-bundle button small,
.mm-one-bundle button span { display: block; }
.mm-one-bundle button small { color: #e4edf4; }

.mm-one-bundle button[aria-pressed="true"],
.mm-one-bundle button.mm-primary {
    background: #1463a6;
    border-color: #7cb9ed;
}

.mm-one-bundle button:not(:disabled):hover { border-color: #fff; }
.mm-one-bundle button:disabled { opacity: .65; cursor: default; }
.mm-one-bundle :is(button, input, select, summary):focus-visible {
    outline: 2px solid var(--mm-focus);
    outline-offset: 3px;
}

.mm-one-bundle .mm-name-styles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
    gap: .5rem;
}
.mm-name-styles button img {
    width: 100%;
    height: 82px;
    object-fit: contain;
    margin-bottom: .25rem;
}

.mm-one-bundle :is(.mm-engraving, .mm-filters) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: .7rem;
    margin-top: .85rem;
}
.mm-one-bundle label { display: block; color: inherit; }
.mm-one-bundle label :is(input, select) { display: block; width: 100%; margin-top: .25rem; }
.mm-one-bundle .mm-count { font-size: .9em; color: #c8d5e0; }
.mm-one-bundle .mm-tile { border-bottom: 1px solid #46505a; }
.mm-one-bundle .mm-tile summary { cursor: pointer; padding: .65rem .45rem; min-height: 44px; box-sizing: border-box; }
.mm-one-bundle .mm-tile[open] { background: var(--mm-panel); }
.mm-one-bundle .mm-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    align-items: start;
    gap: .7rem;
    padding: .7rem;
}
.mm-preview-image img { display: block; width: 100%; max-height: 230px; object-fit: contain; }
.mm-preview-image small { display: block; text-align: center; }
.mm-one-bundle .mm-preview .mm-engraving { grid-template-columns: 1fr; margin: 0; }

.mm-one-bundle .mm-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.mm-one-bundle .mm-chosen span { flex: 1 1 10rem; }
.mm-chosen img { width: 40px; height: 40px; object-fit: contain; }
.mm-one-bundle .mm-catalogue > button:not([hidden]) { margin-bottom: .75rem; }
.mm-one-bundle [hidden] { display: none; }
.mm-one-bundle .mm-status:empty { display: none; }

.mm-one-bundle .mm-step {
    border: 1px solid var(--mm-border);
    border-radius: 10px;
    margin: 0;
    padding: clamp(12px, 2.5vw, 24px);
    background: #1b2026;
}
.mm-one-bundle .mm-step + .mm-step { margin-top: 1.15rem; }
.mm-one-bundle .mm-pack-options button { flex: 1 1 11rem; }
.mm-one-bundle .mm-pack-options strong { display: block; font-size: 1.1em; }
.mm-one-bundle .mm-pack-price { margin-top: .3rem; font-weight: bold; }
.mm-one-bundle .mm-count:empty { display: none; }
.mm-one-bundle .mm-upgrade:not(:empty) { margin: .75rem 0; }
.mm-one-bundle .mm-basket-review { font-weight: bold; }

.mm-one-bundle .mm-style-dialog {
    box-sizing: border-box;
    width: min(92vw, 660px);
    max-height: 90vh;
    padding: clamp(12px, 2.5vw, 24px);
    color: var(--mm-text);
    background: var(--mm-bg);
    border: 1px solid var(--mm-border);
    border-radius: 10px;
}
.mm-one-bundle .mm-style-dialog:not([open]) { display: none; }
.mm-one-bundle .mm-style-dialog::backdrop { background: rgb(0 0 0 / 75%); }
.mm-one-bundle .mm-style-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
}
.mm-one-bundle .mm-style-header h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: inherit;
    text-align: center;
    overflow-wrap: anywhere;
}
.mm-one-bundle .mm-style-header button {
    min-width: 44px;
    padding: .35rem;
    font-size: 1.25rem;
    line-height: 1;
}
.mm-style-picture img { display: block; width: 100%; max-height: 60vh; object-fit: contain; }
.mm-style-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .65rem; margin-top: .75rem; }


.mm-one-bundle .mm-basket-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
    align-items: center;
}
.mm-one-bundle .mm-basket-guidance:empty { display: none; }
.mm-one-bundle .mm-bundle-complete {
    padding: .85rem 1rem;
    border: 1px solid var(--mm-border);
    border-radius: 6px;
}
.mm-one-bundle .mm-bundle-complete p { margin: .35rem 0 0; }
.mm-one-bundle .mm-bundle-complete a { color: var(--mm-focus); text-decoration: underline; }


.mm-one-bundle .mm-tile-slot-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .75rem;
    margin-bottom: .85rem;
}
.mm-one-bundle .mm-tile-slot-header h2 { margin: 0; }
.mm-one-bundle .mm-tile-slot-empty {
    border-color: #f5c76a;
    box-shadow: inset 3px 0 #f5c76a;
}
.mm-one-bundle .mm-tile-needed {
    padding: .2rem .55rem;
    border-radius: 4px;
    background: #f5c76a;
    color: #251900;
    font-size: .875rem;
    font-weight: 700;
}
.mm-one-bundle .mm-category-options button { scroll-margin-block-start: 8rem; }
.mm-one-bundle .mm-basket-guidance + button:not([hidden]) { margin: 0 .5rem .5rem 0; }
