.modal-other-material__result_title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.modal-other-material__item {
    border: 2px solid #3F4146;
    border-radius: 10px;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.modal-other-material__item_title {
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    color: #3F4146;
    margin-bottom: 12px;
}

.modal-other-material__item_price {
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    color: #3F4146;
}

.modal-other-material__item_actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-other-material__item_buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-other-material__item_actions .gl-product-button {
    padding: 10px 20px;
}

.gl-cart-panel-material-group {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.gl-cart-panel-material-group:last-child {
    margin-bottom: 0;
}

.gl-cart-panel-material-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    gap: 12px;
}

.gl-cart-panel-material-group__header.gl-cart-panel-choosen {
    border: unset;
}

.gl-cart-panel-material-group__image {
    max-width: 200px;
    margin-bottom: 15px;
}

.gl-cart-panel-material-group__colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 10px;
}

.gl-cart-panel-material-group__colors .gl-cart-panel-option {
    cursor: pointer;
    transition: transform 0.2s;
    height: 100%;
}

.gl-cart-panel-material-group__colors .gl-cart-panel-choosen {
    border: 2px solid #ff0000;
    border-radius: 4px;
}

.gl-cart-panel-material-group__colors .gl-result-box__title {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
}

.gl-cart-panel-material-group .gl-result-box__title {
    font-size: 16px;
    min-height: unset;
    margin-bottom: 0;
    margin-right: 5px;
    display: flex;
    gap: 5px;
}

.gl-cart-panel-material-group .gl-result-box__title .option-tb-element {
    box-shadow: unset;
    margin-left: 0;
}

.gl-cart-panel-material-group .gl-result-box__title:after {
    display: none;
}

.gl-cart-panel-material-group .gl-result-box__price {
    box-shadow: unset;
    white-space: nowrap;
    font-size: 14px;
}

.gl-cart-panel-material-group__colors .option-tb-elements {
    top: unset;
    bottom: 4px;
}

.gl-cart-panel-material-group__colors .gl-result-box__title {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #fff;
    width: fit-content;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    margin-top: 0;
    text-align: left;
    max-width: calc(100% - 36px);
}

.gl-cart-panel-material-group__colors .result-box-color.gl-cart-panel-option img {
    border-radius: 4px;
}

.gl-cart-panel-material-group__colors .gl-cart-panel-choosen .result-box-color.gl-cart-panel-option img {
    transform: unset;
    height: 100%;
}

.gl-cart-panel-material-group__colors .gl-result-box__input {
    position: absolute;
    top: 4px;
    right: 4px;
    display: inline-flex;
    min-width: 20px;
    min-height: 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid var(--gray4-color);
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    transition: var(--transition);
}

.gl-cart-panel-material-group__colors .gl-cart-panel-choosen .gl-result-box__input {
    border-color: var(--red-color);
    background-color: var(--red-color);
}

.gl-cart-panel-material-group__colors .gl-cart-panel-choosen .gl-result-box__input::before {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    left: 3.5px;
    width: 5px;
    transform: rotate(45deg);
    border-radius: 2px 0 0 2px;
    background-color: var(--white-color);
}

.gl-cart-panel-material-group__colors .gl-cart-panel-choosen .gl-result-box__input::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    right: 2.5px;
    width: 10px;
    margin-top: -1px;
    transform: rotate(-45deg);
    border-radius: 0 2px 2px 0;
    background-color: var(--white-color);
}

.gl-material-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    max-width: 720px;
    width: 100%;
    height: 100%;
    z-index: 10001;
    transform: translateX(100%);
    transition: all .3s ease-in-out;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gl-material-panel.active {
    transform: translateX(0%);
}

.gl-material-panel .gl-cart-panel-inner {
    padding-bottom: 0;
}

.gl-material-panel-content {
    position: relative;
}

.gl-material-panel-content__loader {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.gl-material-panel-content.loading {
    min-height: 220px;
}

.gl-material-panel-content.loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    z-index: 2;
}

.gl-material-panel-content.loading .gl-material-panel-content__loader {
    display: block !important;
}

.gl-material-panel-content.loading .gl-cart-panel-material-groups,
.gl-material-panel-content.loading .js-materials-not-found,
.gl-material-panel-content.loading .gl-material-panel-footer {
    pointer-events: none;
}

.gl-material-panel-close-btn {
    position: absolute;
    right: 10px;
    top: 5px;
    z-index: 999;
    cursor: pointer;
}

.gl-material-panel-close-btn svg {
    width: 22px;
}

.gl-material-panel-close-btn path {
    fill: #93969D;
}

.gl-selected-material {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #ECEDEF;
    border-radius: 8px;
    background: #FAFBFC;
    margin-bottom: 20px;
}

.gl-selected-material__thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    background: #fff;
}

.gl-selected-material__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gl-selected-material__info {
}

.gl-selected-material__label {
    font-size: 12px;
    color: #6B7280;
}

.gl-selected-material__name {
    font-weight: 600;
    margin-bottom: 10px;
}

.gl-selected-material__change {
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.gl-selected-material__change:hover {
    border-color: #D1D5DB;
}

.gl-material-panel-footer {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: #fff;
    padding: 12px 22px;
    margin-left: -22px;
    width: calc(100% + 44px);
}

.gl-material-panel-footer .btn {
    width: 100%;
}

.panel-heading-between .gl-cart-panel-sec__heading {
    cursor: pointer;
}

/* Чекбокс для блоков конфигурации */
.gl-conf-box {
    position: relative;
}

.gl-conf-box__checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    min-width: 20px;
    min-height: 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #C9CBCF;
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.js-config.gl-cart-panel-choosen .gl-conf-box__checkbox {
    border-color: #E31E24;
    background-color: #E31E24;
}

.js-config.gl-cart-panel-choosen .gl-conf-box__checkbox::before {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    left: 3.5px;
    width: 5px;
    transform: rotate(45deg);
    border-radius: 2px 0 0 2px;
    background-color: #fff;
}

.js-config.gl-cart-panel-choosen .gl-conf-box__checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    right: 2.5px;
    width: 10px;
    margin-top: -1px;
    transform: rotate(-45deg);
    border-radius: 0 2px 2px 0;
    background-color: #fff;
}

.marquiz-pops {
    z-index: 999 !important;
}

@media (max-width: 576px) {
    .gl-cart-panel-material-group__colors {
        grid-template-columns: repeat(3, 1fr);
    }

    .gl-cart-panel-material-group {
        padding: 12px;
    }
}
