.kcr-free-shipping-wrap:has(+ .mlg-slot:not(:empty)),
.kcr-free-shipping-mini:has(+ .mlg-slot:not(:empty)) > .kcr-free-shipping-wrap {
    margin-bottom: 8px;
}

.mlg-slot.kcr-free-shipping-mini .mlg-panel {
    margin-top: 0;
}

.mlg-panel {
    text-align: left;
    min-width: 0;
}

.mlg-progress-title {
    text-wrap: pretty;
}

.mlg-progress-title strong {
    white-space: nowrap;
}

.mlg-panel .kcr-free-shipping__labels {
    flex-wrap: wrap;
    gap: 2px 10px;
}

.mlg-panel .kcr-free-shipping__bar {
    min-width: 0;
}

.mlg-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
}

.mlg-header .mlg-heading {
    margin: 0;
}

.mlg-panel p:not(.kcr-free-shipping) {
    margin: 6px 0 0;
    line-height: 1.45;
}

.mlg-panel .mlg-copy {
    color: #574e46;
    font-size: .86rem;
}

.mlg-panel .mlg-button {
    min-height: 34px;
    min-width: 34px;
    margin: 0;
    padding: 5px 10px;
    background: #fff;
    color: #4c453c;
    border: 1px solid #cfc5b8;
    border-radius: 4px;
    font-size: .85rem;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
}

.mlg-panel .mlg-button:hover,
.mlg-panel .mlg-button:focus-visible {
    background: #574e46;
    color: white;
}

.mlg-panel .mlg-button[aria-disabled="true"] {
    opacity: .55;
    cursor: wait;
}

.mlg-group {
    margin-top: 12px;
}

.mlg-panel .mlg-group h4 {
    margin: 0 0 3px;
    color: #584335;
    font-size: .87rem;
}

.mlg-row {
    display: flex;
    align-items: center;
    gap: 7px;
    border-top: 1px solid #e3dfd6;
    padding: 7px 0;
}

.mlg-panel .mlg-thumbnail {
    flex: none;
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 4px;
}

.mlg-panel .mlg-selected {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.mlg-panel .mlg-selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 3px 0;
}

.mlg-slot[data-compact="1"] .mlg-thumbnail {
    width: 42px;
    height: 42px;
}

.mlg-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: .9rem;
    line-height: 1.3;
}

.mlg-slot[data-compact="1"] .mlg-panel:has([aria-expanded="true"]) {
    max-height: 40vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .mlg-panel .mlg-button {
        min-height: 42px;
        min-width: 40px;
    }

    .mlg-row {
        gap: 5px;
    }
}
