.line-choice-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 24, 0.58);
    backdrop-filter: blur(8px);
}

.line-choice-overlay.open {
    display: flex;
}

.line-choice-modal {
    width: min(420px, 100%);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.line-choice-head {
    position: relative;
    padding: 28px 28px 18px;
    text-align: center;
}

.line-choice-head h3 {
    margin: 0 0 8px;
    color: #183935;
    font-family: 'Noto Serif TC', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.line-choice-head p {
    margin: 0;
    color: #6d7775;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
}

.line-choice-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f2f5f4;
    color: #5c6866;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.line-choice-body {
    display: grid;
    gap: 12px;
    padding: 0 28px 28px;
}

.line-choice-option {
    display: block;
    padding: 16px 18px;
    border: 1px solid #dce8e5;
    border-radius: 8px;
    color: #173d39;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.line-choice-option:hover,
.line-choice-option:focus {
    border-color: #06c755;
    background: #f1fff6;
    transform: translateY(-1px);
    outline: none;
}

.line-choice-option strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 500;
}

.line-choice-option span {
    display: block;
    color: #71807d;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
}

@media (max-width: 560px) {
    .line-choice-overlay {
        align-items: flex-end;
        padding: 16px;
    }

    .line-choice-head {
        padding: 26px 22px 16px;
    }

    .line-choice-body {
        padding: 0 22px 24px;
    }
}
