.cookie-panel {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 780px;
    padding: 18px 20px;
    background: #f2ecec;
    border: 1px solid rgba(178, 160, 144, 0.45);
    box-shadow: 0 12px 35px rgba(55, 35, 28, 0.22);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translate(-50%, 40px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
}

.cookie-panel.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.cookie-panel__text {
    flex: 1;
    font-size: 14px;
    line-height: 1.55;
    color: #2b2f36;
}

.cookie-panel__text a {
    color: #6b3528;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-panel__btn {
    border: none;
    background: #6b3528;
    color: #fff;
    height: 44px;
    padding: 0 26px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: background .25s ease, transform .25s ease;
    white-space: nowrap;
}

.cookie-panel__btn:hover {
    background: #4b2b22;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .cookie-panel {
        bottom: 16px;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .cookie-panel__btn {
        width: 100%;
    }
}

.footer-wrapper {
    padding: 28px 0 22px;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-copy,
.footer-dev {
    color: #412a22;
    font-size: 13px;
}

.footer-dev a {
    color: #fff;
}

.footer-legal {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(65, 42, 34, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: #6b584d;
    font-size: 12px;
    line-height: 1.5;
}

.footer-legal span {
    position: relative;
}

.footer-legal a {
    color: #63372C;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted rgba(99,55,44,.4);
}

.footer-legal a:hover {
    color: #3f6f53;
    border-bottom-color: #3f6f53;
    text-decoration: none;
}

.footer-legal span:not(:last-child):after {
    content: "";
    position: absolute;
    right: -12px;
    top: 50%;
    width: 3px;
    height: 3px;
    background: #af9f90;
    border-radius: 50%;
    transform: translateY(-50%);
}

@media (max-width: 767px) {
    .footer-main {
        display: block;
    }

    .footer-dev {
        margin-top: 8px;
    }

    .footer-legal {
        display: block;
    }

    .footer-legal span {
        display: block;
        margin-bottom: 4px;
    }

    .footer-legal span:after {
        display: none;
    }
}


.ms-order-agreement {
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #f4eeee;
    border: 1px solid rgba(175, 159, 144, .35);
    border-radius: 4px;
    max-width: 520px;
}

.ms-order-agreement input {
    display: none;
}

.ms-order-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    color: #6b584d;
    font-size: 14px;
    line-height: 1.45;
}

.ms-order-agreement__box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 1px;
    border: 1px solid #af9f90;
    background: #fff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ms-order-agreement__box i {
    display: none;
    font-size: 17px;
    color: #fff;
    line-height: 1;
}

.ms-order-agreement input:checked + label .ms-order-agreement__box {
    background: #3f6f53;
    border-color: #3f6f53;
}

.ms-order-agreement input:checked + label .ms-order-agreement__box i {
    display: block;
}

.ms-order-agreement a {
    color: #63372C;
    font-weight: 700;
    border-bottom: 1px dotted rgba(99, 55, 44, .45);
}

.ms-order-agreement a:hover {
    color: #3f6f53;
    border-bottom-color: #3f6f53;
    text-decoration: none;
}

#msOrder{
  padding: 0 15px;  
}

.review-agreement {
    margin: 15px 0 20px;
}

.review-agreement input {
    display: none;
}

.review-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #6b584d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.review-agreement__box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 1px solid #af9f90;
    background: #fff;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-agreement__box i {
    display: none;
    font-size: 17px;
    color: #fff;
}

.review-agreement input:checked + label .review-agreement__box {
    background: #3f6f53;
    border-color: #3f6f53;
}

.review-agreement input:checked + label .review-agreement__box i {
    display: block;
}

.review-agreement a {
    color: #63372C;
    font-weight: 700;
    border-bottom: 1px dotted rgba(99,55,44,.4);
}

.review-agreement a:hover {
    color: #3f6f53;
    text-decoration: none;
    border-bottom-color: #3f6f53;
}

.review-agreement.error {
    padding: 10px;
    background: #fff4f4;
    border: 1px solid #fd4443;
    border-radius: 4px;
}

.ec-form .ec-field-error.form-control {
    border-color: #fd4443 !important;
    background: #fff7f7;
}

.review-agreement.ec-field-error {
    padding: 10px;
    border: 1px solid #fd4443;
    background: #fff7f7;
    border-radius: 4px;
}

.ec-form-error-text {
    margin: 0 0 15px;
    color: #fd4443;
    font-size: 13px;
    line-height: 1.4;
}
