html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.svg');
    mask: url('../images/Logo.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 28px;
    height: 24px;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.whatsapp-phone-editor {
    --wa-phone-editor-height: 2.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    container: country-phone / inline-size;
}

.whatsapp-phone-editor .wa-country {
    flex: 0 1 280px;
    max-width: 320px;
    min-width: 0;
}

.whatsapp-phone-editor .wa-phone {
    flex: 1 1 180px;
    min-width: 0;
}

.whatsapp-phone-editor .wa-phone .dxbl-text-edit {
    min-height: var(--wa-phone-editor-height);
}

.whatsapp-phone-editor .wa-phone input,
.whatsapp-phone-editor .wa-phone .dxbl-input-editor {
    min-height: calc(var(--wa-phone-editor-height) - 2px);
}

.whatsapp-phone-editor.is-readonly .wa-country {
    opacity: 0.8;
    pointer-events: none;
}

/* Respond to the editor's column width, including narrow desktop layouts. */
@container country-phone (max-width: 480px) {
    .whatsapp-phone-editor .wa-country {
        flex: 0 0 8rem;
        min-width: 0;
        max-width: 45%;
    }

    /* Keep the selected country in the button's accessible name. */
    .whatsapp-phone-editor .selected-option-trigger:not(.is-empty) .selected-country-name {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .whatsapp-phone-editor .country-selector-host .options {
        right: auto;
        width: min(20rem, 100cqi);
    }
}

@container country-phone (max-width: 320px) {
    .whatsapp-phone-editor .wa-country {
        flex-basis: 4rem;
    }

    .whatsapp-phone-editor .selected-option-trigger .selected-country-code {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.property-help-caption {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.property-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1rem;
    height: 1rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--bs-primary, #0d6efd);
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

.property-help-trigger:hover,
.property-help-trigger:focus-visible {
    color: var(--bs-link-hover-color, #0a58ca);
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
