#fnuma-launcher {
    align-items: center;
    background: #fffdf9;
    border: 1px solid #a98236;
    border-radius: 24px;
    color: #3c2b1b;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: .875rem;
    gap: .38rem;
    min-height: 44px;
    padding: 4px 10px;
    white-space: nowrap;
}
#fnuma-launcher[hidden] { display: none; }
#fnuma-launcher > img {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
}
#fnuma-launcher > span { text-decoration: none; }
#fnuma-launcher img, .fnuma-heading img {
    border-radius: 50%;
    object-fit: cover;
    object-position: 60% 26%;
}
.fnuma-header { position: relative; }
.fnuma-header > #fnuma-launcher { position: absolute; right: 12px; top: 12px; z-index: 3; }
body > #fnuma-launcher { position: fixed; right: 16px; top: calc(16px + var(--wp-admin--admin-bar--height, 0px)); z-index: 99; }
#fnuma-dialog {
    background: #fffdf9;
    border: 1px solid #a98236;
    border-radius: 14px;
    box-sizing: border-box;
    color: #30251d;
    max-height: 78dvh;
    max-width: calc(100% - 24px);
    padding: 18px;
    width: 390px;
}
#fnuma-dialog::backdrop { background: rgb(32 23 16 / 35%); }
.fnuma-heading, .fnuma-contacts { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.fnuma-heading h2 { font-size: 1.25rem; margin: 0; }
#fnuma-close {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 1.6rem;
    margin-left: auto;
    min-height: 44px;
    min-width: 44px;
}
#fnuma-dialog details { border-top: 1px solid #e8decb; padding: .55rem 0; }
#fnuma-dialog summary { cursor: pointer; }
#fnuma-dialog a { color: #62451a; }
#fnuma-dialog form label { display: block; padding: .5rem 0; }
#fnuma-dialog input[type="tel"] { font-size: 16px; max-width: 100%; }
@media (min-width: 768px) {
    body > #fnuma-launcher.fnuma-desktop-dock {
        right: clamp(32px, 4vw, 64px);
        top: 73%;
        transform: translateY(-50%);
    }
    #fnuma-dialog { margin: 12vh 16px auto auto; }
}
@media (max-width: 767px) {
    .fnuma-brand-row {
        --fnuma-button-offset: clamp(8px, 3vw, 16px);
        align-items: center;
        box-sizing: border-box;
        column-gap: clamp(10px, 4vw, 20px);
        display: flex;
        inline-size: fit-content;
        margin-inline: auto;
        max-inline-size: calc(100% - 2 * var(--fnuma-button-offset));
    }
    .fnuma-brand-row > :first-child {
        margin: 0;
        min-inline-size: 0;
    }
    .fnuma-brand-row > :first-child img, .fnuma-brand-row > img:first-child {
        height: auto;
        max-inline-size: 100%;
    }
    #fnuma-launcher {
        border-radius: 999px;
        flex: 0 0 auto;
        font-size: .8125rem;
        gap: 5px;
        max-width: min(58vw, 220px);
        min-height: 40px;
        padding: 3px 8px 3px 4px;
    }
    .fnuma-brand-row > #fnuma-launcher {
        inset-inline-start: var(--fnuma-button-offset);
        position: relative;
    }
    #fnuma-launcher > img {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        max-width: 28px;
        max-height: 28px;
    }
    #fnuma-launcher span { overflow: hidden; text-overflow: ellipsis; }

}

#fnuma-dialog {
    width: 440px;
    max-height: 84dvh;
    box-shadow: 0 14px 44px rgb(52 37 20 / 22%);
}
.fnuma-heading {
    background: #f5ead7;
    border-radius: 10px;
    padding: 8px 10px;
}
.fnuma-quick { display: grid; gap: 8px; }
.fnuma-quick > button, .fnuma-quick > a {
    background: #fffdf9;
    border: 1px solid #c4a66e;
    border-radius: 10px;
    box-sizing: border-box;
    color: #563c17;
    cursor: pointer;
    display: flex;
    align-items: center;
    font: inherit;
    min-height: 44px;
    padding: 9px 12px;
    text-align: left;
    text-decoration: none;
}
.fnuma-quick > [hidden], .fnuma-panel[hidden] { display: none; }
.fnuma-quick > button[aria-expanded=true] { background: #f5ead7; }
.fnuma-panel { padding: 0 10px 6px; }
.fnuma-panel > a { display: inline-block; margin: 4px 10px 4px 0; }
.fnuma-panel > a[hidden] { display: none; }
#fnuma-search { border-top: 1px solid #e8decb; margin-top: 14px; padding-top: 6px; }
#fnuma-search > div { display: flex; gap: 6px; }
#fnuma-search input { flex: 1; font: inherit; font-size: 16px; min-width: 0; padding: 6px 9px; border: 1px solid #a98236; border-radius: 8px; }
#fnuma-search button { background: #6b4d20; border: 0; border-radius: 8px; color: #fff; cursor: pointer; font: inherit; min-height: 44px; padding: 6px 10px; }
#fnuma-search-result { white-space: pre-line; }
#fnuma-search-result:empty { display: none; }

#fnuma-contact-back {
    background: transparent;
    border: 0;
    color: #62451a;
    cursor: pointer;
    font: inherit;
    min-height: 44px;
    padding: 0 6px;
}
#fnuma-contact-title { margin: 0 0 12px; }
.fnuma-contact-form {
    background: #f5ead7;
    border-radius: 8px;
    padding: 0 10px 8px;
}
.fnuma-contact-form [type="submit"] {
    background: #6b4d20;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font: inherit;
    min-height: 44px;
    padding: 6px 10px;
}
.fnuma-contact-form [role="status"]:empty { display: none; }

#fnuma-panel-contact { padding-top: 16px; }
.fnuma-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fnuma-contact-grid > button, .fnuma-contact-grid > a {
    justify-content: center;
    min-height: 50px;
    background: #f5ead7;
    text-align: center;
    overflow-wrap: anywhere;
}
.fnuma-contact-grid > button:disabled {
    background: #efeeeb;
    border-color: #dedbd5;
    color: #625d55;
    cursor: default;
}
.fnuma-contact-grid:empty { display: none; }
#fnuma-contact-back { margin-top: 10px; }
#fnuma-panel-contact .fnuma-contact-form { margin-top: 10px; }

.fnuma-contact-form label[hidden] { display: none !important; }
.fnuma-contact-form input, .fnuma-contact-form select, .fnuma-contact-form textarea {
    box-sizing: border-box;
    display: block;
    font-size: 16px;
    max-width: 100%;
}
.fnuma-contact-form textarea { width: 100%; }
.fnuma-email-fallback { display: block; margin-top: 8px; }
