.p7_fixed_price_banner,
.p7_fixed_price_modal {
    font-family: Montserrat, Arial, sans-serif;
}

.p7_fixed_price_banner {
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
    padding: 14px 24px;
    background: #ffd447;
    color: #3d392a;
    position: relative;
    z-index: 120;
}

.p7_fixed_price_banner--admin {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-right: 68px;
    padding-left: 68px;
    z-index: 10020;
}

.p7_fixed_price_admin_banner_dismissed .p7_fixed_price_banner--admin,
.p7_fixed_price_admin_banner_dismissed .p7_fixed_price_banner--admin + .p7_fixed_price_modal {
    display: none !important;
}

.p7_fixed_price_banner--start {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10020;
}

body.p7_fixed_price_banner_start_active {
    box-sizing: border-box;
    padding-top: 64px;
}

body.p7_fixed_price_banner_start_active .top_nav,
body.p7_fixed_price_banner_start_active .top_nav.transition {
    top: 64px;
}

.p7_fixed_price_banner__inner {
    max-width: 1440px;
    min-height: 36px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.p7_fixed_price_banner__text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.p7_fixed_price_banner__button {
    appearance: none;
    padding: 2px 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
}

.p7_fixed_price_banner__button:hover,
.p7_fixed_price_banner__button:focus-visible {
    border-bottom-width: 2px;
    outline: none;
}

.p7_fixed_price_banner__dismiss {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 50%;
    right: 24px;
    width: 32px;
    height: 32px;
    padding: 6px;
    border: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.p7_fixed_price_banner__dismiss svg {
    display: block;
    flex: 0 0 auto;
}

.p7_fixed_price_banner__dismiss:hover {
    opacity: .65;
}

.p7_fixed_price_banner__dismiss:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

body.p7_fixed_price_banner_admin_active #wrap_all_cat {
    box-sizing: border-box;
    height: 100%;
    padding-top: 64px;
}

body.p7_fixed_price_banner_admin_active #left_panel {
    top: 64px;
    height: calc(100% - 64px);
}

body.p7_fixed_price_banner_admin_active .cat_adm_menu {
    top: 64px;
    height: calc(100% - 64px);
}

.p7_fixed_price_modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.p7_fixed_price_modal[hidden] {
    display: none;
}

.p7_fixed_price_modal.is_open {
    opacity: 1;
    visibility: visible;
}

.p7_fixed_price_modal__dialog {
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 24px;
    border: 1px solid #ededed;
    border-radius: 20px;
    background: #fff;
    color: #3d392a;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
    transform: translateY(16px);
    transition: transform .2s ease;
}

.p7_fixed_price_modal.is_open .p7_fixed_price_modal__dialog {
    transform: translateY(0);
}

.p7_fixed_price_modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
    cursor: pointer;
}

.p7_fixed_price_modal__close:hover {
    background: #ededed;
}

.p7_fixed_price_modal__title {
    margin: 0 56px 10px 0;
    color: #3d392a;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
}

.p7_fixed_price_modal__subtitle {
    margin: 0 0 22px;
    color: #77746b;
    font-size: 14px;
    line-height: 1.45;
}

.p7_fixed_price_form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p7_fixed_price_form__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.p7_fixed_price_form__field label {
    color: #8b8982;
    font-size: 12px;
    font-weight: 500;
}

.p7_fixed_price_modal .p7_fixed_price_form__field > .p7_fixed_price_form__control {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: #3d392a;
    font: 500 14px/1.4 Montserrat, Arial, sans-serif;
    box-shadow: none;
}

.p7_fixed_price_modal textarea.p7_fixed_price_form__control {
    min-height: 94px;
    resize: vertical;
}

.p7_fixed_price_modal .p7_fixed_price_form__control:focus {
    border-color: #fecc17;
    box-shadow: 0 0 0 2px rgba(254, 204, 23, .16);
}

.p7_fixed_price_checkbox {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.p7_fixed_price_checkbox input {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0;
}

.p7_fixed_price_checkbox__mark {
    box-sizing: border-box;
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid #fecc17;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p7_fixed_price_checkbox input:focus-visible + .p7_fixed_price_checkbox__mark {
    box-shadow: 0 0 0 3px rgba(254, 204, 23, .3);
}

.p7_fixed_price_checkbox input:checked + .p7_fixed_price_checkbox__mark {
    background: #fecc17;
}

.p7_fixed_price_checkbox input:checked + .p7_fixed_price_checkbox__mark::after {
    content: '';
    width: 10px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%233D392A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.p7_fixed_price_checkbox__text {
    color: #8b8982;
    font-size: 12px;
    line-height: 1.4;
}

.p7_fixed_price_checkbox__text a {
    color: inherit;
    text-decoration: underline;
}

.p7_fixed_price_form__submit {
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: #fecc17;
    color: #3d392a;
    font: 600 14px/1.2 Montserrat, Arial, sans-serif;
    cursor: pointer;
}

.p7_fixed_price_form__submit:hover {
    background: #ffd83f;
}

.p7_fixed_price_form__submit:disabled {
    cursor: wait;
    opacity: .65;
}

.p7_fixed_price_form__error {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff1f1;
    color: #a52a2a;
    font-size: 12px;
    line-height: 1.4;
}

.p7_fixed_price_success {
    padding: 14px 0 0;
}

@media (max-width: 760px) {
    .p7_fixed_price_banner {
        min-height: 82px;
        padding: 12px 16px;
    }

    .p7_fixed_price_banner__inner {
        flex-direction: column;
        gap: 5px;
    }

    .p7_fixed_price_banner--admin {
        padding-right: 48px;
        padding-left: 48px;
    }

    .p7_fixed_price_banner__dismiss {
        top: 12px;
        right: 10px;
        transform: none;
    }

    .p7_fixed_price_banner__text,
    .p7_fixed_price_banner__button {
        font-size: 13px;
    }

    body.p7_fixed_price_banner_start_active {
        padding-top: 82px;
    }

    body.p7_fixed_price_banner_start_active .top_nav,
    body.p7_fixed_price_banner_start_active .top_nav.transition {
        top: 82px;
    }

    body.p7_fixed_price_banner_admin_active #wrap_all_cat {
        padding-top: 82px;
    }

    body.p7_fixed_price_banner_admin_active #left_panel {
        top: 82px;
        height: calc(100% - 82px);
    }

    body.p7_fixed_price_banner_admin_active .cat_adm_menu {
        top: 82px;
        height: calc(100% - 82px);
    }

    .p7_fixed_price_modal {
        padding: 12px;
    }

    .p7_fixed_price_modal__dialog {
        padding: 20px;
        border-radius: 16px;
    }

    .p7_fixed_price_modal__title {
        font-size: 21px;
    }
}
