/*!
 * WHMCSPilot WhatsApp Cloud — client-area styles.
 * Author: Shahid Malla (shahidmalla.com)
 */

.wac-client-card {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e9edf5;
    box-shadow: 0 1px 2px rgba(10,18,38,0.04);
    max-width: 420px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wac-client-card .wac-divider {
    display: flex;
    align-items: center;
    color: #9aa3b2;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 4px 0 12px;
    gap: 10px;
}
.wac-client-card .wac-divider::before,
.wac-client-card .wac-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eceff4;
}
.wac-client-card .wac-title {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #1a8a4e;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}
.wac-client-card .wac-title svg { width: 18px; height: 18px; flex: 0 0 auto; }

.wac-client-card .wac-phone-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    align-items: stretch;
}
/* Country-code box: small, fixed, never grows */
.wac-client-card .wac-phone-row .wac-cc {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    flex: 0 0 54px !important;
    padding: 8px 4px !important;
    border: 1px solid #dde2ec !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600;
    background: #f8fafd !important;
    text-align: center;
    box-sizing: border-box;
}
/* Phone number input: takes ALL remaining space (override Bootstrap's width:100%) */
.wac-client-card .wac-phone-row > input[type="text"]:not(.wac-cc) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 8px 12px !important;
    border: 1px solid #dde2ec !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    background: #fff !important;
    box-sizing: border-box;
}
.wac-client-card input:focus { outline: 0; border-color: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,0.12); }
.wac-client-card .wac-otp-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #dde2ec;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 700;
    margin-bottom: 8px;
}
.wac-client-card .wac-btn {
    width: 100%;
    padding: 9px 14px;
    background: #25D366;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
}
.wac-client-card .wac-btn:hover  { background: #1ebe5d; }
.wac-client-card .wac-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.wac-client-card .wac-btn-link {
    background: transparent;
    color: #6a7184;
    font-weight: 500;
    font-size: 12.5px;
    padding: 6px;
    margin-top: 2px;
}
.wac-client-card .wac-btn-link:hover { background: transparent; text-decoration: underline; }

.wac-client-card .wac-msg {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}
.wac-client-card .wac-msg.ok  { background: #ecfdf3; color: #086c3b; }
.wac-client-card .wac-msg.err { background: #fee4e2; color: #93211a; }

.wac-client-card .wac-step { display: none; }
.wac-client-card .wac-step.active { display: block; }

.wac-client-card .wac-attr {
    font-size: 11px;
    color: #8993a8;
    margin-top: 12px;
    text-align: center;
}
.wac-client-card .wac-attr a { color: #3b5bfe; text-decoration: none; }

/* Floating click-to-chat widget */
.wac-chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wac-chat-widget:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
    color: #fff !important;
}
