/* Custom Code By PTS */
[data-bfa-contact] .bfa-contact-notice,
[data-bfa-contact] .bfa-contact-status {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

[data-bfa-contact] .bfa-contact-status {
    margin: 0.75rem 0 0;
}

[data-bfa-checkbox] .MuiIconButton-label {
    position: relative;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
}

[data-bfa-checkbox] input {
    z-index: 1;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

[data-bfa-checkbox] .bfa-checkmark {
    width: 17px;
    height: 17px;
    border: 2px solid currentColor;
    border-radius: 2px;
    box-sizing: border-box;
}

[data-bfa-checkbox] input:checked + .bfa-checkmark::after {
    content: "";
    display: block;
    width: 8px;
    height: 5px;
    margin: 2px 0 0 2px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

[data-bfa-checkbox] input:focus-visible + .bfa-checkmark {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.bfa-contact-dialog {
    box-sizing: border-box;
    width: min(600px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--components-scroll-container-background, #fefcf9);
    color: var(--components-scroll-container-text, #272220);
    box-shadow: 0 14px 45px rgb(0 0 0 / 28%);
}

.bfa-contact-dialog::backdrop {
    background: rgb(0 0 0 / 50%);
}

.bfa-contact-panel {
    position: relative;
    box-sizing: border-box;
    min-height: min(656px, calc(100vh - 64px));
    min-height: min(656px, calc(100dvh - 64px));
    padding: 23px 48px 32px;
}

.bfa-contact-panel > h2 {
    margin: 0 28px 18px;
    text-align: center;
    font-family: Gabriela, Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
}

.bfa-contact-panel > h2:focus {
    outline: none;
}

.bfa-contact-close {
    position: absolute;
    top: 18px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: 30px/1 sans-serif;
    cursor: pointer;
}

.bfa-contact-close:hover {
    background: rgb(29 20 14 / 7%);
}

.bfa-contact-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.bfa-contact-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 16px;
    margin-top: 20px;
}

.bfa-contact-fields [data-bfa-contact-field="requestText"],
.bfa-contact-fields [data-bfa-contact-field="name"] {
    grid-column: 1 / -1;
}

.bfa-contact-fields .MuiFormControl-root {
    width: 100%;
    margin: 0 !important;
}

.bfa-contact-fields .MuiInputBase-root {
    box-sizing: border-box;
    min-height: 44px;
}

.bfa-contact-fields textarea {
    box-sizing: border-box;
    height: 154px !important;
    resize: vertical;
}

.bfa-contact-consent {
    margin-top: 20px;
}

.bfa-contact-consent label {
    margin-left: 0;
}

.bfa-contact-actions {
    display: grid;
    justify-items: center;
    margin-top: 20px;
    text-align: center;
}

.bfa-contact-panel .bfa-contact-actions button {
    width: min(270px, 100%);
    min-height: 40px;
}

@media (max-width: 540px) {
    .bfa-contact-dialog {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .bfa-contact-panel {
        min-height: 0;
        padding: 20px 22px 25px;
    }

    .bfa-contact-close {
        top: 12px;
        right: 12px;
    }

    .bfa-contact-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}
/* End Custom Code By PTS */
