/* Desktop header and widgets share a 20px screen-edge inset. */
:root {
    --inkfire-edge-inset: 20px;
    --inkfire-edge-left: max(var(--inkfire-edge-inset), env(safe-area-inset-left));
    --inkfire-edge-right: max(var(--inkfire-edge-inset), env(safe-area-inset-right));
}
.elementor-location-header.elementor-3844 > .e-con {
    padding-inline: 0;
}
.elementor-location-header.elementor-3844 > .e-con > .e-con-inner {
    width: calc(100% - var(--inkfire-edge-left) - var(--inkfire-edge-right));
    max-width: calc(100% - var(--inkfire-edge-left) - var(--inkfire-edge-right));
    margin-left: var(--inkfire-edge-left);
    margin-right: var(--inkfire-edge-right);
}
/* Site-owned floating tools: Signly, support chat and accessibility. */
#signly-app {
    left: var(--inkfire-edge-left) !important;
    right: auto !important;
    bottom: calc(15px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
}
#signly-logo-button {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    color: #ffffff !important;
    background-color: rgba(14, 96, 85, 0.88) !important;
    background-image: linear-gradient(135deg, rgba(7, 160, 121, 0.42), rgba(14, 96, 85, 0.12)) !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    border-radius: 50% !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 24px rgba(0, 0, 0, 0.24), 0 0 20px rgba(7, 160, 121, 0.12) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
#signly-logo-button:hover {
    background-color: rgba(14, 96, 85, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.48) !important;
}
#signly-logo-button:focus-visible {
    outline: 3px solid #f2c94c !important;
    outline-offset: 4px;
}
/* Keep the hand artwork centred with breathing room inside the 56px launcher. */
#signly-logo-button #signly-logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#signly-logo-button img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    transform: none;
}
/* The native chat setting positions its panel and teaser in the same corner. */
.fnd-fab[id^="fnd-frontdesk-"][id$="-launcher"] {
    left: auto !important;
    right: var(--inkfire-edge-right) !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
}
#amh-a11y-wrapper #amh-a11y-pill {
    right: var(--inkfire-edge-right) !important;
    left: auto !important;
}
/* The toolkit uses 1100px for its desktop panel / mobile tray switch. */
@media (min-width: 1101px) {
    #amh-a11y-wrapper #amh-a11y-pill {
        padding: 5px;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        background-color: rgba(14, 96, 85, 0.80);
        background-image: linear-gradient(160deg, rgba(7, 160, 121, 0.20), rgba(21, 22, 34, 0.44));
    }
    #amh-a11y-wrapper #amh-a11y-panel.is-open {
        right: calc(var(--inkfire-edge-right) + 74px);
    }
}
/* Compact controls on tablets/phones: Signly left, support right, access above. */
@media (max-width: 1100px) {
    #amh-a11y-wrapper #amh-a11y-pill {
        top: auto !important;
        bottom: calc(96px + env(safe-area-inset-bottom)) !important;
        transform: none !important;
    }
    #signly-logo-button {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
    }
}

/* Reserve the desktop rail when support is open; never lay it over messages. */
#amh-a11y-wrapper {
    z-index: 2147483646 !important;
}
.fnd-frontdesk:not(.fnd-frontdesk--inline) {
    z-index: 2147483647;
}
@media (min-width: 1101px) {
    .fnd-frontdesk:not(.fnd-frontdesk--inline),
    .fnd-teaser {
        right: calc(var(--inkfire-edge-right) + 74px) !important;
        left: auto !important;
    }
}

@media (max-width: 1100px) {
    .fnd-frontdesk:not(.fnd-frontdesk--inline) {
        left: auto !important;
        right: var(--inkfire-edge-right) !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        width: calc(100vw - var(--inkfire-edge-left) - var(--inkfire-edge-right)) !important;
        max-width: 420px;
        max-height: calc(100dvh - 24px - env(safe-area-inset-bottom) - env(safe-area-inset-top)) !important;
        border-radius: 20px;
    }
}

@media (max-width: 1100px) {
    /* Keep the returning support teaser clear of both right-hand launchers. */
    .fnd-teaser {
        left: auto !important;
        right: var(--inkfire-edge-right) !important;
        bottom: calc(172px + env(safe-area-inset-bottom)) !important;
        width: min(340px, calc(100vw - var(--inkfire-edge-left) - var(--inkfire-edge-right)));
        min-width: 0;
        max-width: calc(100vw - var(--inkfire-edge-left) - var(--inkfire-edge-right));
        max-height: calc(100dvh - 196px - env(safe-area-inset-bottom));
        overflow-y: auto;
    }
    .fnd-frontdesk:not(.fnd-frontdesk--inline) .fnd-frontdesk__brand > div {
        min-width: 0;
    }
    .fnd-frontdesk:not(.fnd-frontdesk--inline) .fnd-frontdesk__subtitle {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 1100px) {
    /* The full-screen accessibility tray owns the screen until it is closed. */
    body:has(#amh-a11y-tray.is-open) .fnd-fab,
    body:has(#amh-a11y-tray.is-open) .fnd-teaser {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Smaller screens retain a fluid header gutter, with a 12px minimum. */
@media (max-width: 1100px) {
    :root { --inkfire-edge-inset: max(12px, 2.5vw); }
}
