/* Category wall: theme CSS targets #category_wall_hover, but markup uses a class */
#category_wall ul .item > .caption > p {
    height: auto;
    max-height: 36px;
}
#category_wall .category_wall_hover {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: calc(100% - 56px);
    padding: 10px 0;
    background: #eee;
    overflow-y: auto;
    transition: left .3s;
    z-index: 2;
}
#category_wall .category_wall_hover.active {
    left: 0;
} 
#category_wall .category_wall_hover li {
    display: flex;
}
#category_wall .category_wall_hover li a {
    width: 100%;
    padding: 8px 15px;
    color: #000;
    font-size: 13px;
    line-height: 1.2;
}
#category_wall .category_wall_hover li a:hover {
    color: var(--main_color);
}
@media (max-width: 1100px) {
    #category_wall > ul {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    #category_wall > ul {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }
    #category_wall ul .item > a {
        height: 140px;
    }
    #category_wall ul .item > a img {
        max-width: 100%;
        max-height: 130px;
        object-fit: contain;
    }
    #category_wall ul .item > .caption {
        margin-top: 5px;
        padding: 8px;
    }
    #category_wall ul .item > .caption > p > a {
        font-size: 13px;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    #category_wall ul .item > .caption > .category_wall_open {
        height: 30px;
        min-width: 30px;
        max-width: 30px;
        margin-left: 6px;
    }
}

/* Footer: remarket markup without Bootstrap grid */
footer .rm-footer .container {
    display: block;
    padding-top: 40px;
}
footer .rm-footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
footer .rm-footer .row > div {
    flex: 1 1 200px;
}
footer .rm-footer .row > div:not(:has(.rm-footer-mobile-inner > *)) {
    display: none;
}
footer .rm-footer .d-md-none {
    display: none;
}
footer .rm-footer-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
}
footer .rm-footer-links-list li {
    margin-bottom: 4px;
}
footer .rm-footer-payments-list {
    display: flex;
    align-items: center;
}
footer .rm-footer-credits {
    padding: 25px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    color: #aaa;
    text-align: center;
    flex: 1 1 100%;
}
footer .rm-footer-credits a {
    color: #aaa;
}
@media (max-width: 768px) {
    footer .rm-footer .row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    footer .rm-footer .row > div {
        flex: 0 0 auto;
    }
    footer .rm-footer-payments-list {
        justify-content: center;
    }
}

/* B2B quick calculation form (HTML module) */
.b2b-calc-block {
    padding: 40px !important;
}
.b2b-calc-block > .row {
    gap: 30px;
    flex-wrap: nowrap !important;
}
.b2b-calc-block > .row > div {
    flex: 1 1 50%;
    margin-bottom: 0 !important;
}
.b2b-calc-block form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.b2b-calc-block form .row > div {
    margin-bottom: 0 !important;
}
.b2b-calc-block form .col-sm-12 {
    grid-column: 1 / -1;
}
.b2b-calc-block .form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: #fff;
    color: #222;
}
.b2b-calc-block textarea.form-control {
    min-height: 80px;
}
.b2b-calc-block .btn {
    width: 100%;
    cursor: pointer;
}
.b2b-calc-block .btn:hover {
    opacity: .9;
}
@media (max-width: 768px) {
    .b2b-calc-block {
        padding: 25px 15px !important;
    }
    .b2b-calc-block > .row {
        flex-wrap: wrap !important;
        gap: 20px;
    }
    .b2b-calc-block > .row > div {
        flex: 1 1 100%;
    }
    .b2b-calc-block h3 {
        font-size: 22px !important;
    }
    .b2b-calc-block form .row {
        grid-template-columns: 1fr;
    }
}
footer .rm-footer-logo {
    margin-bottom: 15px;
}
footer .rm-footer-logo img {
    display: inline-block;
    max-height: 50px;
    width: auto;
}

@media (max-width: 768px) {
    footer .rm-footer .row {
        gap: 0;
    }
    footer .rm-footer-logo {
        margin-bottom: 20px;
    }
    footer .rm-footer-payments-list img {
        margin-bottom: 20px;
    }
}

@media (min-width: 769px) {
    footer .rm-footer {
        padding-bottom: 30px;
    }
}

.b2b-calc-block .b2b-msg {
    grid-column: 1 / -1;
    font-size: 15px;
    line-height: 1.4;
}
.b2b-calc-block .b2b-msg:empty {
    display: none;
}
.b2b-calc-block .b2b-msg.is-ok {
    color: #7ee08a;
}
.b2b-calc-block .b2b-msg.is-err {
    color: #ff8a80;
}
.b2b-calc-block .btn[disabled] {
    opacity: .6;
    cursor: wait;
}

/* Quick order button: center lightning icon */
.product_header_right #button-fast-checkout {
    padding: 0;
    align-items: center;
}
.product_header_right #button-fast-checkout::before {
    left: 0;
}
