.s7-multi-variants-form {
    margin-top: 1.2em;
}

.s7-mv-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.s7-mv-toolbar .button {
    padding: 8px 14px;
    font-size: 14px;
}

.s7-mv-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Przy więcej niż 4 pozycjach wysokość wylicza JS na podstawie pierwszych 4 wierszy. */
.s7-mv-table-wrap.s7-mv-scrollable {
    max-height: var(--s7-mv-list-height, 420px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    border-bottom: 1px solid rgba(0,0,0,.12);
}

.s7-mv-table-wrap.s7-mv-scrollable .s7-mv-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f5f5f5;
    box-shadow: 0 1px 0 rgba(0,0,0,.12);
}

.s7-mv-table-wrap.s7-mv-scrollable::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.s7-mv-table-wrap.s7-mv-scrollable::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.24);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.s7-mv-table-wrap.s7-mv-scrollable::-webkit-scrollbar-track {
    background: rgba(0,0,0,.04);
}

.s7-mv-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

.s7-mv-table th,
.s7-mv-table td {
    border: 1px solid rgba(0,0,0,.14);
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.s7-mv-table th {
    font-weight: 700;
    background: rgba(0,0,0,.04);
}

.s7-mv-variant strong {
    display: block;
}

.s7-mv-sku {
    display: block;
    margin-top: 4px;
    opacity: .65;
    font-size: 12px;
}

.s7-mv-price .price,
.s7-mv-price ins,
.s7-mv-price del {
    white-space: nowrap;
}


.s7-mv-qty-input {
    width: 78px !important;
    min-width: 78px;
    text-align: center;
}

.s7-mv-unavailable {
    opacity: .58;
}

.s7-mv-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.s7-mv-summary {
    font-weight: 600;
}

.s7-mv-submit {
    margin: 0 !important;
}

@media (max-width: 700px) {
    .s7-mv-table,
    .s7-mv-table tbody,
    .s7-mv-table tr,
    .s7-mv-table td {
        display: block;
        width: 100%;
    }

    .s7-mv-table thead {
        display: none;
    }

    .s7-mv-table tr {
        border: 1px solid rgba(0,0,0,.15);
        margin: 0 0 12px;
        padding: 10px 12px;
        background: #fff;
    }

    .s7-mv-table td {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 10px;
        border: 0;
        border-bottom: 1px solid rgba(0,0,0,.08);
        padding: 9px 0;
    }

    .s7-mv-table td:last-child {
        border-bottom: 0;
    }

    .s7-mv-table td::before {
        content: attr(data-label);
        font-weight: 700;
    }

    .s7-mv-footer {
        align-items: stretch;
    }

    .s7-mv-submit {
        width: 100%;
    }
}

.s7-mv-message {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.s7-mv-message-error {
    color: #b32d2e;
    font-weight: 600;
}

.s7-mv-message-success {
    color: #267326;
}

.s7-multi-variants-form .s7-mv-submit[disabled],
.s7-multi-variants-form .s7-mv-toolbar .button[disabled] {
    opacity: .6;
    cursor: wait;
}
