.cp-floating-line {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 172px;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: #06c755;
    box-shadow: 0 8px 24px rgba(15, 60, 34, 0.2);
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-decoration: none;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s, box-shadow 0.2s ease;
}

.cp-floating-line.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.cp-floating-line:hover,
.cp-floating-line:focus-visible {
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 60, 34, 0.26);
    outline: none;
}

.cp-floating-line:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #078b40, 0 10px 28px rgba(15, 60, 34, 0.26);
}

.cp-line-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 22px;
    border-radius: 7px;
    background: #fff;
    color: #06a847;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

body.cp-has-floating-line footer {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
    .cp-floating-line {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 148px;
        min-height: 48px;
        padding: 0 14px;
    }

    body.cp-has-floating-line footer {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }
}
