/* All selectors are scoped to the bar. No icon fonts or external assets. */
#dleyk-contact-bar,
#dleyk-contact-space {
    display: none;
}

@media screen and (max-width: 767px) {
    #dleyk-contact-space {
        display: block;
        height: calc(77px + env(safe-area-inset-bottom, 0px));
        flex: 0 0 auto;
        clear: both;
    }

    #dleyk-contact-bar {
        box-sizing: border-box;
        position: fixed;
        inset: auto 0 0 0;
        z-index: 9990;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
        padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
        margin: 0;
        border: 0;
        border-top: 1px solid #dce5ec;
        background: #ffffff;
        box-shadow: 0 -4px 20px rgb(6 34 51 / 10%);
        font-family: "Nunito Sans", Arial, sans-serif;
    }

    #dleyk-contact-bar .dleyk-contact-action {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: 0;
        height: 56px;
        margin: 0;
        padding: 0 12px;
        border: 0;
        border-radius: 4px;
        box-shadow: none;
        font-family: inherit;
        font-size: 16px;
        font-weight: 700;
        font-style: normal;
        line-height: 1.25;
        letter-spacing: 0;
        text-transform: none;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    #dleyk-contact-bar .dleyk-contact-call {
        background: var(--dleyk-call-bg, #275893);
        color: var(--dleyk-call-text, #ffffff);
    }

    #dleyk-contact-bar .dleyk-contact-email {
        background: var(--dleyk-contact-bg, #062233);
        color: var(--dleyk-contact-text, #ffffff);
    }

    #dleyk-contact-bar .dleyk-contact-action:hover {
        text-decoration: none;
        box-shadow: inset 0 0 0 999px rgb(255 255 255 / 5%);
    }

    #dleyk-contact-bar .dleyk-contact-action:active {
        box-shadow: inset 0 0 0 999px rgb(0 0 0 / 10%);
    }

    #dleyk-contact-bar .dleyk-contact-action:focus-visible {
        outline: 3px solid #062233;
        outline-offset: 3px;
    }

    #dleyk-contact-bar svg {
        display: block;
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        color: inherit;
        fill: none;
        stroke: currentColor;
    }

    /* Leave form fields and editor controls unobstructed while typing/editing. */
    body:has(input:focus, textarea:focus, select:focus, [contenteditable="true"]:focus) #dleyk-contact-bar,
    body.elementor-editor-active #dleyk-contact-bar,
    body.elementor-editor-active #dleyk-contact-space {
        display: none;
    }
}

@media print {
    #dleyk-contact-bar,
    #dleyk-contact-space {
        display: none !important;
    }
}
