:root {
    --vp-widget-size: 52px;
}

.vpechatay-contact-actions {
    margin: 20px 0;
}

.vp-legal-page .vpechatay-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--vp-accent-strong, #a84d0c);
    color: var(--vp-on-accent, #fff);
    font-weight: 700;
    text-decoration: none;
}

.vpechatay-contact-button:focus-visible,
.b24-form .b24-form-control:focus-visible,
.b24-form .b24-form-btn:focus-visible {
    outline: 2px solid var(--vp-ink, #221b16);
    outline-offset: 2px;
}

.vpechatay-contact-form {
    margin: 28px 0;
    scroll-margin-top: 120px;
}

.vpechatay-cookie-notice:not([hidden]) {
    position: fixed;
    bottom: max(var(--vp-floating-bottom, 20px), calc(12px + env(safe-area-inset-bottom, 0px)));
    left: max(12px, env(safe-area-inset-left, 0px));
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: min(348px, calc(100vw - 24px));
    padding: 8px 10px;
    border: 1px solid #ded0c2;
    border-radius: 14px;
    background: #fffaf3;
    color: var(--vp-ink, #221b16);
    box-shadow: 0 6px 20px rgba(66, 38, 18, 0.12);
    font-size: 14px;
    line-height: 1.4;
}

.vpechatay-cookie-notice p {
    margin: 0;
}

.vpechatay-cookie-notice button {
    min-height: 44px;
    padding: 6px 14px;
    border: 1px solid #ded0c2;
    border-radius: 10px;
    background: var(--vp-paper-strong, #fff3df);
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.vpechatay-cookie-notice-open .b24-widget-button-popup {
    display: none;
}

.vpechatay-cookie-notice-open .vpechatay-scroll-top {
    visibility: hidden;
}

.b24-widget-button-wrapper .b24-widget-button-inner-block {
    min-width: var(--vp-widget-size);
    height: var(--vp-widget-size);
}

.b24-widget-button-wrapper .b24-widget-button-block {
    width: var(--vp-widget-size);
    height: var(--vp-widget-size);
}

.b24-widget-button-wrapper .b24-widget-button-inner-mask {
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    min-width: calc(var(--vp-widget-size) + 10px);
    height: calc(var(--vp-widget-size) + 10px);
}

.b24-widget-button-wrapper .b24-widget-button-inner-block,
.b24-widget-button-wrapper .b24-widget-button-pulse {
    background-color: var(--vp-accent-strong, #a84d0c) !important;
}

.b24-widget-button-wrapper .b24-widget-button-inner-container {
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(66, 38, 18, 0.22);
}

.b24-widget-button-wrapper:not(.b24-widget-button-top, .b24-widget-button-bottom) .b24-widget-button-inner-container {
    transform: none;
}

.b24-widget-button-wrapper.b24-widget-button-visible {
    animation: none;
}

body .b24-widget-button-wrapper.b24-widget-button-position-bottom-right .b24-widget-button-popup {
    position: absolute;
    inset: auto 0 calc(100% + 8px) auto;
    width: min(246px, calc(100vw - 32px));
    padding: 13px 43px 13px 15px;
    border: 1px solid #ded0c2 !important;
    border-radius: 14px;
    color: var(--vp-ink, #221b16);
    background: #fffaf3;
    box-shadow: 0 6px 20px rgba(66, 38, 18, 0.12);
    animation: none;
}

@media (prefers-reduced-motion: no-preference) {
    body .b24-widget-button-wrapper.b24-widget-button-position-bottom-right .b24-widget-button-popup-show {
        animation: vpechatay-greeting-in 180ms ease-out both;
    }
}

@keyframes vpechatay-greeting-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.b24-widget-button-wrapper .b24-widget-button-popup-triangle,
.b24-widget-button-wrapper .b24-widget-button-popup-image {
    display: none;
}

.b24-widget-button-wrapper .b24-widget-button-popup-btn-hide {
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    opacity: 0.75;
}

.b24-widget-button-wrapper .b24-widget-button-popup-content {
    width: auto;
    min-width: 0;
    text-align: left;
}

.b24-widget-button-wrapper .b24-widget-button-popup-name {
    color: var(--vp-ink, #221b16);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.25;
}

.b24-widget-button-wrapper .b24-widget-button-popup-description {
    margin: 4px 0 0;
    color: var(--vp-muted, #6c6158);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.35;
}

.b24-widget-button-wrapper .b24-widget-button-popup,
.b24-form {
    font-family: var(--vp-body, "Trebuchet MS", sans-serif);
}

.b24-form .b24-form-style-classic {
    --b24-primary-color: var(--vp-accent-strong, #a84d0c) !important;
    --b24-primary-hover-color: #873e0a !important;
    --b24-text-color: var(--vp-ink, #221b16) !important;
    --b24-background-color: #fffaf3 !important;
    --b24-field-background-color: #fffdf9 !important;
    --b24-field-border-color: #e1d6ca !important;
    --b24-field-focus-background-color: #fff !important;
    --b24-font-family: var(--vp-body, "Trebuchet MS", sans-serif) !important;
}

.b24-form .b24-form-wrapper {
    max-width: 500px;
    border: 0;
    border-radius: 18px;
    background: #fffaf3;
    color: var(--vp-ink, #221b16);
}

.b24-form .b24-form-border-bottom {
    border-bottom: 0 !important;
}

.b24-window .b24-window-panel.b24-window-panel-pos-right {
    inset: 0;
    width: min(500px, calc(100vw - 32px));
    max-width: none;
    height: max-content;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(52, 33, 20, 0.24);
}

.b24-window .b24-window-panel .b24-window-scrollable {
    position: relative;
    inset: auto;
    height: auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding-bottom: 0;
    overflow-y: auto;
    background: #fffaf3;
}

.b24-window .b24-window-panel .b24-form-wrapper {
    min-height: 0;
    margin: 0;
}

.b24-window .b24-window-widget.b24-window-widget-p-bottom-right {
    --vp-callback-bottom: calc(var(--vp-widget-size) + 62px);

    right: 50px;
    bottom: var(--vp-callback-bottom);
    width: min(360px, calc(100vw - 32px));
    border-radius: 18px;
    background: #fffaf3;
    box-shadow: 0 12px 32px rgba(52, 33, 20, 0.2);
}

.b24-window-widget-p-bottom-right .b24-window-widget-body {
    max-height: calc(100vh - var(--vp-callback-bottom) - 16px);
    max-height: calc(100dvh - var(--vp-callback-bottom) - 16px);
    overflow-y: auto;
    border-radius: inherit;
}

.b24-window .b24-window-close {
    background-color: #f1e6db !important;
}

.b24-window-panel > .b24-window-close,
.b24-window-widget > .b24-window-close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    opacity: 0.8;
}

.b24-window .b24-window-close::before,
.b24-window .b24-window-close::after {
    background-color: var(--vp-ink, #221b16) !important;
}

.b24-window .b24-window-close:focus-visible {
    outline: 2px solid #8b6549;
    outline-offset: -2px;
}

.b24-form .b24-form-header {
    padding: 22px 22px 12px;
    border-bottom: 0;
    text-align: left;
}

.b24-window .b24-form-header {
    padding-right: 52px;
}

.b24-form .b24-form-header-title {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--vp-ink, #221b16);
    box-shadow: none;
    font-size: 22px;
    line-height: 1.2;
}

.b24-form .b24-form-header-description,
.b24-form .b24-form-header-description p {
    margin: 7px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--vp-muted, #6c6158);
    box-shadow: none;
    font-size: 14px;
    line-height: 1.4;
    opacity: 1;
}

.b24-form .b24-form-content {
    padding: 0 22px 20px;
}

.b24-form .b24-form-field {
    margin-bottom: 10px;
}

.b24-form .b24-form-btn {
    min-height: 44px;
    border-radius: 12px;
    border-color: var(--vp-accent-strong, #a84d0c);
    color: var(--vp-on-accent, #fff);
    font-weight: 700;
}

.b24-form .b24-form-control-string .b24-form-control,
.b24-form .b24-form-control-list .b24-form-control,
.b24-form .b24-form-control-text .b24-form-control {
    min-height: 44px;
    height: 46px;
    border-radius: 10px;
}

.b24-form .b24-form-control-text .b24-form-control {
    min-height: 72px;
    height: 78px;
}

.b24-form .b24-form-field-agreement .b24-form-field-agreement-link {
    color: #65574d;
}

.vpechatay-scroll-top {
    right: auto;
    left: max(12px, env(safe-area-inset-left, 0px));
}

@media (max-width: 760px) {
    :root {
        --vp-widget-size: 46px;
    }

    .vpechatay-cookie-notice:not([hidden]) {
        right: calc(26px + var(--vp-widget-size) + env(safe-area-inset-right, 0px));
        width: auto;
        max-width: 348px;
        font-size: 13px;
    }

    .b24-widget-button-wrapper.b24-widget-button-position-bottom-right {
        right: 16px;
        bottom: var(--vp-floating-bottom, 16px);
    }

    .vpechatay-menu-open .b24-widget-button-wrapper,
    .vpechatay-menu-open .vpechatay-cookie-notice {
        display: none;
    }

    .vpechatay-footer-visible .b24-widget-button-popup {
        display: none;
    }

    .b24-window .b24-window-widget.b24-window-widget-p-bottom-right {
        --vp-callback-bottom: calc(var(--vp-floating-bottom, 16px) + var(--vp-widget-size) + 14px);

        right: 16px;
    }
}

@media (max-width: 600px) {
    .b24-form .b24-form-header {
        padding: 19px 16px 10px;
    }

    .b24-window .b24-form-header {
        padding-right: 52px;
    }

    .b24-form .b24-form-content {
        padding: 0 16px 16px;
    }
}

/* Keep the telephone and the request to be called back as separate actions. */
.vpechatay-shell__contacts {
    display: grid;
    grid-template-columns: auto;
    justify-items: end;
    gap: 0;
}
.vpechatay-shell__contacts > a.vpechatay-shell__callback {
    color: var(--vp-accent-strong, #99430c);
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.vpechatay-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.vpechatay-contact-button[aria-current="page"] {
    background: var(--vp-ink, #221b16);
    border-color: var(--vp-ink, #221b16);
    color: #fff;
}
.vpechatay-contact-form .vpechatay-contact-alternative {
    margin: 12px 0 0;
    font-size: .9em;
}
.vpechatay-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vpechatay-social-links a.vpechatay-social-links__link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
}
.vpechatay-social-links__link:hover {
    background: rgba(153, 67, 12, 0.1);
}
.vpechatay-shell__footer .vpechatay-social-links__link:hover {
    background: rgba(255, 250, 241, 0.14);
}
.vpechatay-social-links__link:focus-visible {
    outline: 2px solid var(--vp-accent-strong, #99430c);
    outline-offset: -2px;
}
.vpechatay-shell__footer .vpechatay-social-links__link:focus-visible {
    outline-color: var(--vp-yellow, #ffe68e);
}
@media (max-width: 760px) {
    .vpechatay-shell__contacts { grid-template-columns: auto auto; align-items: center; gap: 3px; }
    body.vpechatay-template .vpechatay-shell__contacts > a.vpechatay-shell__callback {
        width: auto;
        max-width: 79px;
        min-height: 44px;
        padding: 3px 6px;
        border-radius: 9px;
        font-size: 12px;
        line-height: 1.15;
        justify-content: center;
        text-align: center;
        text-decoration: none;
    }
}
