.lifeup-sticky-contact {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--font-japanese);
}

.lifeup-sticky-contact__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 92px;
    min-height: 104px;
    padding: 12px 5px;
    border: 1px solid var(--green);
    border-radius: 24px 4px 24px 4px;
    background: var(--green);
    color: var(--beige);
    box-shadow: 0 4px 16px rgb(23 71 17 / 14%);
    text-align: center;
    text-decoration: none;
    transition: background-color .2s, color .2s, transform .2s;
}

.lifeup-sticky-contact__line {
    background: var(--beige);
    color: var(--green);
}

.lifeup-sticky-contact__item[aria-disabled="true"] {
    cursor: default;
}

.lifeup-sticky-contact__icon {
    display: block;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
}

.lifeup-sticky-contact__label {
    /* The existing theme applies !important viewport sizing to every span. */
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.4 !important;
    white-space: nowrap;
}

.lifeup-sticky-contact__label small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 400;
}

.lifeup-sticky-contact__mobile {
    display: none;
}

.lifeup-sticky-contact a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

@media (hover: hover) {
    .lifeup-sticky-contact a:hover {
        background: var(--yellow);
        color: var(--green);
        transform: translateY(-3px);
    }
}

/* Keep all four actions on large tablets in landscape, too. */
@media (max-width: 1199.98px), (hover: none) and (pointer: coarse) {
    html {
        scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .lifeup-sticky-contact {
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
        border-top: 1px solid var(--green);
        background: var(--green);
        box-shadow: 0 -3px 16px rgb(23 71 17 / 12%);
    }

    .lifeup-sticky-contact__item {
        display: flex;
        width: auto;
        min-width: 0;
        height: 77px;
        min-height: 0;
        gap: 4px;
        padding: 6px 2px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .lifeup-sticky-contact__item + .lifeup-sticky-contact__item {
        border-left: 1px solid rgb(230 229 210 / 30%);
    }

    .lifeup-sticky-contact__contact {
        background: var(--orange);
        color: #152b10;
    }

    .lifeup-sticky-contact__icon {
        width: 28px;
        height: 28px;
    }

    .lifeup-sticky-contact__label {
        font-size: 11px !important;
    }

    .lifeup-sticky-contact__label small {
        display: inline;
        margin: 0 0 0 4px;
        font-size: 9px;
    }

    .lifeup-sticky-contact a:focus-visible {
        outline-offset: -4px;
    }

    .lifeup-sticky-contact a:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lifeup-sticky-contact__item {
        transition: none;
    }
}

@media print {
    .lifeup-sticky-contact {
        display: none;
    }

    body {
        padding-bottom: 0;
    }
}
