.agreement {
    text-align: center;
}

.agreement h2 {
    line-height: 1.2;
}

.agreement__checkbox {
    width: 20px !important;
    height: 20px !important;
    margin-right: 5px;
}

.agreement__label {
    display: inline-flex !important;
    align-items: center;
}

.agreement__label:hover {
    text-decoration: none !important;
}

.agreement__label_error {
    color: red !important;
}

.agreement__overlay {
    position: fixed;
    z-index: 99998;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.agreement__modal {
    width: 75%;
    max-width: 800px;
    border: 1px solid #e8e8e8;
    box-shadow: none;
    background: #fff;
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 99999;
    overflow: auto;
    transition: opacity 0.3s;
    text-align: left;
    line-height: 1.6!important;
    top: 50%;
    transform: translate(0, -50%);
    max-height: 90vh;
    font-size: 14px;
    padding: 20px!important;
}

.agreement__modal_hidden {
    visibility: hidden;
    opacity: 0;
    z-index: -1;
}

@media (max-width: 767px) {
    .agreement__modal {
        width: calc(100% - 20px);
        bottom: 0;
        height: auto;
        padding-bottom: 70px;
        top: -70px;
        transform: translateY(70px);
        -webkit-overflow-scrolling: touch;
    }
}

.agreement__btn {
    -webkit-appearance: none;
    cursor: pointer;
}

.agreement__btn_close {
    float: right;
    cursor: pointer;
    color: black;
    font-size: 30px;
    font-weight: bold;
    display: inline-block;
    line-height: 20px;
    padding: 0;
}

.agreement__btn_open {
    text-decoration: underline;
}

.agreement__btn_open:hover {
    text-decoration: none;
}
.mg-form-designer .agreement__btn.agreement__btn_close {
	text-decoration: none;
  	font-size: 30px;
}

/*цвет названия хар-к в карточке товара*/
.prop-name__inner {
color: black;
}

/* KM-Meblirovka — palette inspired by the community cover */
body.l-body {
    --main-background-color: #fffdf9;
    --accent-background-color: #f7f1e8;
    --main-text-color: #30251d;
    --secondary-text-color: #fff8ed;
    --third-text-color: #66574a;
    --accent-color: #80592d;
    --link-color: #714c22;
    --menu-background-color: #2b2118;
    --secondary-background-color: #453122;
    --border-color: #e2d7c8;
    --secondary-border-color: #e9dece;
    --km-header-start: #241a13;
    --km-header-end: #453122;
    --km-gold-rgb: 226, 189, 129;
    --km-footer-background: #f0e7da;
}

body.l-body .header,
body.l-body .header__top {
    background: linear-gradient(105deg, var(--km-header-start), var(--km-header-end));
}

body.l-body .header__bottom {
    border-top: 1px solid rgba(var(--km-gold-rgb), 0.26);
}

body.l-body .footer {
    background-color: var(--km-footer-background);
    border-top-color: var(--border-color);
}

body.l-body .footer__copyright {
    border-top-color: var(--border-color);
}

/* Product details: remove separators surrounding an unpopulated options block. */
.product-page__sticky .js-product-form > .product-page__order-2:has(+ .product-page__order-3 > .product-page__opfields-container:only-child):not(:has(+ .product-page__order-3 > .product-page__opfields-container > *)) {
    border-bottom-width: 0;
}

.product-page__sticky .js-product-form > .product-page__order-3:has(> .product-page__opfields-container:only-child):not(:has(> .product-page__opfields-container > *)) {
    display: none;
}

/* Catalog: readable product count and breadcrumbs on the warm background. */
body.l-body__catalog .title-section__total-count {
    color: #624723;
    font-weight: 600;
}

body.l-body__catalog .bread-crumbs__item {
    color: #624723;
    font-weight: 500;
}

body.l-body__catalog .bread-crumbs__item a,
body.l-body__catalog .bread-crumbs__item span {
    color: inherit;
}

body.l-body__catalog .bread-crumbs__item::before {
    color: #806a50;
}

body.l-body__catalog .bread-crumbs__item a:hover,
body.l-body__catalog .bread-crumbs__item a:focus-visible {
    color: #473426;
    text-decoration: underline;
}