﻿/* ===== Send + Batch Send form styles ===== */

/* ── Form wrapper ── */
.wa-send-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
    padding: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fff;
    max-width: 560px;
}

/* ── Individual field ── */
.wa-send-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ── Label row ── */
.wa-send-label {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.75;
    margin: 0;
}

.wa-send-hint {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.6;
}

.wa-send-required {
    color: darkred;
    font-size: 0.9rem;
}

.wa-send-id {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.5;
    font-family: monospace;
}

/* ── Text inputs ── */
.wa-send-input {
    padding: 8px 11px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.92rem;
    background: #fafafa;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
    box-sizing: border-box;
}

    .wa-send-input:focus {
        border-color: #25d366;
        background: #fff;
    }

/* ── Help text ── */
.wa-send-help {
    font-size: 0.82rem;
    opacity: 0.6;
    line-height: 1.35;
}

/* ── Inline error ── */
.wa-send-error {
    font-size: 0.83rem;
    color: #9f1239;
    min-height: 1em;
}

/* ── Variables block ── */
.wa-send-vars {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
}

.wa-send-vars-header {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.6;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wa-send-vars .wa-send-field {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
}

    .wa-send-vars .wa-send-field:last-child {
        border-bottom: none;
    }

/* ── No-vars notice ── */
.wa-send-no-vars {
    padding: 12px 14px;
    border: 1px dashed #d0d0d0;
    border-radius: 8px;
    font-size: 0.88rem;
    opacity: 0.6;
    text-align: center;
}

/* ── Submit button row ── */
.wa-send-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 4px;
}

.wa-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border: none;
    border-radius: 8px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

    .wa-send-btn:hover {
        background: #1ebe5d;
        transform: translateY(-1px);
    }

    .wa-send-btn:active {
        transform: translateY(0);
    }

    .wa-send-btn:disabled,
    .wa-send-btn[disabled] {
        background: #a0a0a0;
        cursor: not-allowed;
        transform: none;
    }

/* ===== Batch Send specific ===== */

/* ── Summary KPI strip ── */
.wa-batch-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

/* ── CSV hint card ── */
.wa-batch-csv-hint {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
}

.wa-batch-csv-hint-header {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.65;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
}

.wa-batch-csv-example-title {
    padding: 8px 14px 0;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0.7;
}

.wa-batch-csv-block {
    display: block;
    padding: 8px 14px 12px;
    font-size: 0.85rem;
    white-space: pre;
    opacity: 0.8;
    line-height: 1.5;
}

.wa-batch-csv-download {
    padding: 0 14px 12px;
    display: flex;
    justify-content: flex-end;
}

/* ── File input ── */
.wa-batch-file-input {
    padding: 7px 0;
    font-size: 0.9rem;
    cursor: pointer;
}
