[data-problem-kit][hidden],
.problem-kit__error[hidden] {
    display: none;
}

.problem-kit-step-note {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-top: 18px;
    padding: 7px 14px;
    border-radius: 18px;
    background: #f0f0f0;
    color: #333;
    font-size: 13px;
    line-height: 18px;
}

.problem-kit-choice {
    margin-top: 18px;
}

.catalog[data-problem-kit-group] .product-item[data-problem-kit-card] {
/*    padding: 18px;
    border-color: #dedede;*/
    padding-top: 0;
}
.catalog[data-problem-kit-group] .product-item[data-problem-kit-card] .product-item-image-wrapper {
    padding-top: 100%;
}

.problem-kit-choice__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid #2B2829;
    border-radius: 6px;
    background: transparent;
    color: #2B2829;
    font-family: "Mulish", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.problem-kit-choice__button:hover:not(:disabled) {
    background: #2B2829;
    color: #fff;
}

.product-item.problem-kit-card--selected {
/*    border-color: #242424;
    box-shadow: 0 0 0 1px #242424;*/
    position: relative;
}
.product-item.problem-kit-card--selected:after {
    position: absolute;
    top: -5px; bottom: -5px;
    left: -5px; right: -5px;
    border: 1px solid #242424;
    border-radius: 6px;
    z-index: -1;
    content: '';
}

.problem-kit-card--selected .problem-kit-choice__button {
    border-color: #242424;
    background: #242424;
    color: #fff;
    cursor: default;
}

.problem-kit-card--selected .problem-kit-choice__button::before {
    width: 7px;
    height: 4px;
    margin-right: 9px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: '';
    transform: rotate(-45deg) translateY(-1px);
}

.product-item.problem-kit-card--unavailable:not(.problem-kit-card--selected) .problem-kit-choice__button {
    border-color: #d7d7d7;
    color: #8a8a8a;
    cursor: not-allowed;
}

.problem-kit__inner {
    padding: 38px 42px;
    background: #F3F3F3;
    border-radius: 6px;
}

.problem-kit__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #d9ddd8;
}

.problem-kit__title {
    margin: 0 0 8px;
}

.problem-kit__count,
.problem-kit__total-label {
    color: #777;
    font-size: 14px;
}

.problem-kit__total {
    min-width: 150px;
    text-align: right;
}

.problem-kit__total-label {
    display: block;
    margin-bottom: 5px;
}

.problem-kit__total strong {
    font-size: 24px;
    font-weight: 500;
    white-space: nowrap;
}

.problem-kit__items {
    padding: 6px 0;
}

.problem-kit__item {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.7fr) minmax(110px, auto);
    gap: 24px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid #d9ddd8;
}

.problem-kit__item-block {
    color: #777;
    font-size: 13px;
    line-height: 19px;
}

.problem-kit__item-product {
    font-size: 15px;
    line-height: 21px;
}

.problem-kit__item-price {
    font-size: 15px;
    text-align: right;
    white-space: nowrap;
}

.problem-kit__item--unavailable .problem-kit__item-product,
.problem-kit__item--unavailable .problem-kit__item-price {
    color: #a42c2c;
}

.problem-kit__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px 28px;
    padding-top: 25px;
}

.problem-kit__error {
    flex: 1 1 420px;
    padding: 12px 15px;
    border: 1px solid rgba(164, 44, 44, 0.3);
    background: rgba(164, 44, 44, 0.06);
    color: #a42c2c;
    font-size: 14px;
    line-height: 20px;
}

.problem-kit__submit {
    min-width: 240px;
}

.problem-kit__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 767px) {
    .problem-kit__inner {
        padding: 28px 20px;
    }

    .problem-kit__head {
        display: block;
    }

    .problem-kit__total {
        margin-top: 20px;
        text-align: left;
    }

    .problem-kit__item {
        display: block;
        padding: 16px 0;
    }

    .problem-kit__item-product {
        margin-top: 5px;
    }

    .problem-kit__item-price {
        margin-top: 8px;
        text-align: left;
    }

    .problem-kit__footer,
    .problem-kit__submit {
        width: 100%;
    }
}
