/* ══════════════════════════════════════
   iWishs LINE Login — Frontend Styles
   ══════════════════════════════════════ */

/* LINE 登入按鈕 */
.iwishs-line-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #06C755;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    line-height: 1.4;
    white-space: nowrap;
}

.iwishs-line-btn:hover {
    background: #05b04c;
    color: #fff !important;
    text-decoration: none !important;
}

.iwishs-line-btn:active {
    transform: scale(0.97);
}

/* WP Login 頁面適配 */
.login .iwishs-line-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 24px;
    font-size: 15px;
}

/* ── LINE 聊天浮動按鈕 ── */
.iwishs-line-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.iwishs-line-chat a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #06C755;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.iwishs-line-chat a:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.iwishs-line-chat a:active {
    transform: scale(0.95);
}

/* ── 帳號綁定彈窗 ── */
.iwishs-line-bind-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.iwishs-line-bind-box {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.iwishs-line-bind-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #333;
}

.iwishs-line-bind-box p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.iwishs-line-bind-box input[type="email"],
.iwishs-line-bind-box input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.iwishs-line-bind-box input:focus {
    outline: none;
    border-color: #06C755;
}

.iwishs-line-bind-box .iwishs-line-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.iwishs-line-bind-msg {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.iwishs-line-bind-msg.error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.iwishs-line-bind-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ── RWD ── */
@media (max-width: 480px) {
    .iwishs-line-chat {
        bottom: 16px;
        right: 16px;
    }
    .iwishs-line-chat a {
        width: 48px;
        height: 48px;
    }
    .iwishs-line-chat svg {
        width: 24px;
        height: 24px;
    }
}
