/* SEND Life Update 19J - mobile navigation and final parent UI polish */

:root {
    --sl19j-bottom-height: 74px;
    --sl19j-safe-bottom: env(safe-area-inset-bottom, 0px);
    --sl19j-focus: #12345b;
}

.sl-skip-link-19j {
    position: fixed;
    left: 12px;
    top: 10px;
    z-index: 9999;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 12px;
    background: #17335b;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(19, 36, 94, .24);
}

.sl-skip-link-19j:focus {
    transform: translateY(0);
}

.sl-ui-19j,
.sl-ui-19j * {
    box-sizing: border-box;
}

.sl-ui-19j {
    overflow-x: hidden;
}

.sl-ui-19j img,
.sl-ui-19j svg,
.sl-ui-19j video,
.sl-ui-19j canvas {
    max-width: 100%;
}

.sl-ui-19j img,
.sl-ui-19j video {
    height: auto;
}

.sl-ui-19j .sl-shell,
.sl-ui-19j .sl-main,
.sl-ui-19j .sl-card,
.sl-ui-19j form,
.sl-ui-19j fieldset,
.sl-ui-19j article,
.sl-ui-19j section,
.sl-ui-19j div {
    min-width: 0;
}

.sl-ui-19j p,
.sl-ui-19j li,
.sl-ui-19j small,
.sl-ui-19j label,
.sl-ui-19j td,
.sl-ui-19j th,
.sl-ui-19j a,
.sl-ui-19j button {
    overflow-wrap: anywhere;
}

.sl-ui-19j a,
.sl-ui-19j button,
.sl-ui-19j input,
.sl-ui-19j select,
.sl-ui-19j textarea,
.sl-ui-19j summary {
    touch-action: manipulation;
}

.sl-ui-19j :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid rgba(18, 52, 91, .9);
    outline-offset: 3px;
}

.sl-ui-19j :where(input, select, textarea):focus {
    border-color: #078589;
    box-shadow: 0 0 0 3px rgba(7, 133, 137, .13);
}

.sl-ui-19j [id] {
    scroll-margin-top: 150px;
}

.sl-ui-19j .sl-alert[role="alert"],
.sl-ui-19j .sl-alert[role="status"] {
    position: relative;
    z-index: 2;
}

.sl19j-bottom-nav {
    display: none;
}

@media (max-width: 760px) {
    .sl-has-mobile-bottom-nav {
        padding-bottom: calc(var(--sl19j-bottom-height) + var(--sl19j-safe-bottom) + 18px);
    }

    .sl-has-mobile-bottom-nav .sl-parent-top-menu-19j {
        display: none !important;
    }

    .sl-has-mobile-bottom-nav .sl-nav.sl-mobile-pill-nav {
        min-height: 62px;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    .sl-has-mobile-bottom-nav .sl-nav .sl-brand {
        justify-content: center !important;
    }

    .sl-has-mobile-bottom-nav .sl-nav .sl-brand img {
        max-width: min(190px, 58vw) !important;
    }

    .sl-has-mobile-bottom-nav .sl-footer {
        margin-bottom: 8px;
        padding-bottom: 12px;
    }

    .sl19j-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;
        min-height: calc(var(--sl19j-bottom-height) + var(--sl19j-safe-bottom));
        padding: 7px 7px calc(7px + var(--sl19j-safe-bottom));
        border-top: 1px solid rgba(196, 214, 220, .9);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -12px 34px rgba(19, 56, 73, .12);
        backdrop-filter: blur(16px);
    }

    .sl19j-bottom-link {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 56px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        padding: 6px 3px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: #5c7079;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        list-style: none;
    }

    .sl19j-bottom-link::-webkit-details-marker {
        display: none;
    }

    .sl19j-bottom-link > span {
        display: grid;
        place-items: center;
        min-height: 24px;
        font-size: 1.25rem;
        line-height: 1;
    }

    .sl19j-bottom-link > strong {
        max-width: 100%;
        overflow: hidden;
        font-size: .69rem;
        font-weight: 900;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sl19j-bottom-link.is-active,
    .sl19j-more-menu.is-active > summary,
    .sl19j-more-menu[open] > summary {
        background: #eaf9f7;
        color: #067579;
    }

    .sl19j-bottom-link.is-active::after,
    .sl19j-more-menu.is-active > summary::after {
        position: absolute;
        left: 50%;
        bottom: 3px;
        width: 18px;
        height: 3px;
        border-radius: 99px;
        background: #078589;
        content: "";
        transform: translateX(-50%);
    }

    .sl19j-bottom-log {
        align-self: start;
        min-height: 64px;
        margin-top: -18px;
        border: 4px solid #fff;
        border-radius: 20px;
        background: #078589;
        color: #fff;
        box-shadow: 0 10px 24px rgba(7, 133, 137, .3);
    }

    .sl19j-bottom-log:hover,
    .sl19j-bottom-log:focus-visible,
    .sl19j-bottom-log.is-active {
        background: #066f73;
        color: #fff;
    }

    .sl19j-bottom-log > span {
        font-size: 1.65rem;
        font-weight: 400;
    }

    .sl19j-bottom-log.is-active::after {
        display: none;
    }

    .sl19j-more-menu {
        min-width: 0;
    }

    .sl19j-more-menu > summary {
        width: 100%;
    }

    .sl19j-more-menu[open]::before {
        position: fixed;
        inset: 0;
        z-index: 1001;
        background: rgba(15, 33, 51, .42);
        content: "";
        backdrop-filter: blur(2px);
    }

    .sl19j-more-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(var(--sl19j-bottom-height) + var(--sl19j-safe-bottom) - 1px);
        z-index: 1002;
        display: grid;
        gap: 18px;
        max-height: min(76vh, 680px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 17px 16px 20px;
        border: 1px solid #dce8ea;
        border-bottom: 0;
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-shadow: 0 -22px 60px rgba(15, 43, 61, .23);
        animation: sl19j-sheet-in .18s ease-out;
    }

    .sl19j-more-sheet > header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .sl19j-more-sheet > header small {
        color: #677b83;
        font-weight: 800;
    }

    .sl19j-more-sheet > header h2 {
        margin: 2px 0 0;
        color: #17335b;
        font-size: 1.35rem;
    }

    .sl19j-more-sheet > header button {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        border: 1px solid #dce7e9;
        border-radius: 50%;
        background: #f6f9fa;
        color: #17335b;
        font: inherit;
        font-size: 1.6rem;
        cursor: pointer;
    }

    .sl19j-more-sheet section {
        display: grid;
        gap: 9px;
    }

    .sl19j-more-sheet h3 {
        margin: 0;
        color: #536b75;
        font-size: .78rem;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .sl19j-more-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .sl19j-more-grid a {
        display: flex;
        min-height: 82px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 7px;
        padding: 10px 6px;
        border: 1px solid #dde8ea;
        border-radius: 15px;
        background: #fbfdfd;
        color: #17335b;
        text-align: center;
        text-decoration: none;
    }

    .sl19j-more-grid a span {
        font-size: 1.42rem;
    }

    .sl19j-more-grid a strong {
        font-size: .78rem;
        line-height: 1.15;
    }

    .sl19j-more-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sl19j-more-list a,
    .sl19j-logout-form button {
        display: flex;
        min-height: 48px;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid #dde8ea;
        border-radius: 14px;
        background: #fff;
        color: #17335b;
        font: inherit;
        text-align: left;
        text-decoration: none;
    }

    .sl19j-more-list a strong,
    .sl19j-logout-form button strong {
        font-size: .86rem;
    }

    .sl19j-logout-form {
        margin: 0;
    }

    .sl19j-logout-form button {
        width: 100%;
        border-color: #f0cccc;
        background: #fff7f7;
        color: #8f2929;
        cursor: pointer;
    }

    body.sl19j-more-open {
        overflow: hidden;
    }

    .sl-child-nav-19a {
        top: 61px;
        z-index: 60;
    }

    .sl-child-mobile-menu-19a > summary {
        min-height: 50px;
    }

    .sl-child-mobile-panel-19a {
        max-height: calc(100vh - 205px);
        padding-bottom: 16px;
        overscroll-behavior: contain;
    }

    .sl-child-mobile-panel-19a a {
        min-height: 46px;
    }

    .sl-ui-19j input:not([type="checkbox"]):not([type="radio"]),
    .sl-ui-19j select,
    .sl-ui-19j textarea {
        font-size: 16px;
    }

    .sl-ui-19j textarea {
        min-height: 118px;
    }

    .sl-ui-19j .sl-button,
    .sl-ui-19j button,
    .sl-ui-19j summary,
    .sl-ui-19j input[type="submit"] {
        min-height: 44px;
    }

    .sl-ui-19j .sl-actions {
        gap: 9px;
    }

    .sl-ui-19j .sl-actions > .sl-button,
    .sl-ui-19j .sl-actions > form,
    .sl-ui-19j .sl-actions > form > .sl-button {
        min-width: 0;
    }

    .sl-ui-19j .sl-card:has(> table),
    .sl-ui-19j .sl-table-wrap,
    .sl-ui-19j .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sl-ui-19j table {
        min-width: 620px;
    }

    .sl-ui-19j .sl19e1-wizard-actions,
    .sl-ui-19j .sl19g1-step-actions,
    .sl-ui-19j .sl19g2-form-actions,
    .sl-ui-19j .sl-routine-wizard-actions-19h2,
    .sl-ui-19j .sl-review-pack-sticky-next-19i1,
    .sl-ui-19j .sl-review-pack-wizard-actions-19i1,
    .sl-ui-19j .sl19i3-wizard-actions,
    .sl-ui-19j .sl19i3-care-actions {
        bottom: calc(var(--sl19j-bottom-height) + var(--sl19j-safe-bottom) + 7px) !important;
    }

    .sl-ui-19j .sl19b-main-actions,
    .sl-ui-19j .sl19c-category-grid,
    .sl-ui-19j .sl19g1-action-grid,
    .sl-ui-19j .sl19g2-summary-grid,
    .sl-ui-19j .sl19i2-summary-grid,
    .sl-ui-19j .sl19i3-summary-grid {
        align-items: stretch;
    }
}

@media (max-width: 420px) {
    .sl19j-bottom-nav {
        padding-inline: 4px;
    }

    .sl19j-bottom-link {
        padding-inline: 1px;
    }

    .sl19j-bottom-link > strong {
        font-size: .64rem;
    }

    .sl19j-more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sl19j-more-list {
        grid-template-columns: 1fr;
    }

    .sl19j-more-sheet {
        padding-inline: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sl-ui-19j *,
    .sl-ui-19j *::before,
    .sl-ui-19j *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@keyframes sl19j-sheet-in {
    from { transform: translateY(24px); opacity: .55; }
    to { transform: translateY(0); opacity: 1; }
}
