/* Latrexa Patient Connect — promo card (matches lx-claim-card pattern) */
.lpc-promo {
    margin: 1.5rem 0 0;
}
.lpc-promo-card {
    background: var(--secondary, #e8f7f4);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 0.75rem);
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.lpc-promo-head { margin-bottom: 1.25rem; }
.lpc-promo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground, #0f172a);
    margin: 0 0 0.4rem;
    line-height: 1.35;
}
.lpc-promo-subtitle {
    font-size: 0.95rem;
    color: var(--muted-foreground, #64748b);
    margin: 0;
    max-width: 56ch;
}
.lpc-promo-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1.25rem;
}
.lpc-promo-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--foreground, #0f172a);
    line-height: 1.4;
}
.lpc-promo-check {
    color: var(--primary, #10a38a);
    font-weight: 700;
    flex-shrink: 0;
}
.lpc-promo-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.lpc-promo-badge {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    color: var(--primary-dark, #0d8a74);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}
.lpc-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.lpc-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lpc-promo-btn-primary {
    background: var(--primary, #10a38a);
    color: #fff;
    border-color: var(--primary, #10a38a);
}
.lpc-promo-btn-primary:hover {
    background: var(--primary-dark, #0d8a74);
    border-color: var(--primary-dark, #0d8a74);
}
.lpc-promo-btn-secondary {
    background: #fff;
    color: var(--primary-dark, #0d8a74);
    border-color: var(--border, #e2e8f0);
}
.lpc-promo-btn-secondary:hover { background: #f8faf9; }
.lpc-promo-trust {
    font-size: 0.78rem;
    color: var(--muted-foreground, #64748b);
    margin: 1rem 0 0;
}
@media (max-width: 575.98px) {
    .lpc-promo-benefits { grid-template-columns: 1fr; }
    .lpc-promo-footer { flex-direction: column; align-items: stretch; }
    .lpc-promo-actions { width: 100%; }
    .lpc-promo-actions .lpc-promo-btn { flex: 1; }
}

.lpc-vac-list { margin: 0.5rem 0; }
.lpc-vac-row {
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
}
.lpc-vac-name { font-weight: 600; margin-bottom: 0.2rem; }
.lpc-vac-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-bottom: 0.25rem;
}
.lpc-vac-due { background: #fef3c7; color: #92400e; }
.lpc-vac-upcoming { background: #dbeafe; color: #1e40af; }
.lpc-vac-missed { background: #fee2e2; color: #991b1b; }
.lpc-vac-ask { background: #ecfdf5; color: #0f766e; }
.lpc-vac-meta { color: #64748b; font-size: 0.78rem; }
.lpc-vac-note { color: #475569; font-size: 0.78rem; margin-top: 0.15rem; }

#lpcWidget {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1050;
    width: min(420px, calc(100vw - 1.5rem));
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
#lpcWidget[hidden] { display: none !important; }
#lpcWidget.lpc-open { display: flex !important; }

.lpc-panel {
    background: #f0fdfa;
    border: 1px solid #cbd5e1;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}
.lpc-header {
    background: linear-gradient(135deg, #0d9488, #0284c7);
    color: #fff;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}
.lpc-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}
.lpc-header small {
    display: block;
    opacity: 0.9;
    font-size: 0.72rem;
    margin-top: 0.15rem;
}
.lpc-header-actions { display: flex; gap: 0.25rem; }
.lpc-header-actions button {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    cursor: pointer;
    font-size: 0.85rem;
}
.lpc-close { font-size: 1.1rem !important; line-height: 1; }

.lpc-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    background: #ecfdf5;
    min-height: 220px;
}
.lpc-msg { margin-bottom: 0.55rem; display: flex; }
.lpc-msg-bot { justify-content: flex-start; }
.lpc-msg-user { justify-content: flex-end; }
.lpc-bubble {
    max-width: 88%;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
}
.lpc-msg-bot .lpc-bubble {
    background: #fff;
    border: 1px solid #d1fae5;
    color: #0f172a;
}
.lpc-msg-user .lpc-bubble {
    background: #10a38a;
    color: #fff;
}
.lpc-emergency { color: #b91c1c; }
.lpc-small { font-size: 0.78rem; color: #64748b; margin: 0.5rem 0 0; }

.lpc-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem 0.65rem;
    background: #ecfdf5;
    border-top: 1px solid #d1fae5;
}
.lpc-choice {
    background: #fff;
    border: 1px solid #99f6e4;
    color: #0f766e;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    cursor: pointer;
}
.lpc-choice:hover { background: #ccfbf1; }

.lpc-footer {
    display: flex;
    gap: 0.4rem;
    padding: 0.55rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 16px 16px;
}
.lpc-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
}
.lpc-send {
    background: #10a38a;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.lpc-results { margin: 0.5rem 0; }
.lpc-result-card {
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    padding: 0.65rem;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
}
.lpc-result-title { font-weight: 600; margin-bottom: 0.25rem; }
.lpc-result-meta { color: #64748b; margin-bottom: 0.15rem; }
.lpc-result-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }

.lpc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}
.lpc-btn-sm { font-size: 0.75rem; padding: 0.3rem 0.55rem; }
.lpc-btn-primary { background: #10a38a; color: #fff; border-color: #10a38a; }
.lpc-btn-outline { background: #fff; color: #0f766e; border-color: #99f6e4; }

.lpc-lead-form {
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 10px;
    padding: 0.65rem;
    margin: 0.35rem 0;
    font-size: 0.82rem;
}
.lpc-lead-form label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
}
.lpc-lead-form input,
.lpc-lead-form textarea {
    width: 100%;
    margin-top: 0.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-weight: 400;
}
.lpc-consent { font-weight: 400 !important; display: flex !important; gap: 0.4rem; align-items: flex-start; }
.lpc-consent input { width: auto; margin-top: 0.2rem; }

@media (max-width: 575.98px) {
    #lpcWidget {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 85vh;
    }
    .lpc-panel { border-radius: 16px 16px 0 0; }
}
