/* ──────────────────────────────────────────────────────────────────
   Live Interactions Counter Widget
   Background gradient lives on the Elementor section — this file
   only styles the card wrapper and the counter cells.
   ────────────────────────────────────────────────────────────────── */

.cpx-live-interactions {
    width: 100%;
    text-align: center;
}

/* ── Header ──────────────────────────────────────────────────────── */

.cpx-li-header {
    margin-bottom: 36px;
}

.cpx-li-heading {
    font-family: 'Overpass', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px;
    line-height: 1.2;
}

.cpx-li-subheading {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #303336;
    margin: 0;
    line-height: 1.5;
}

/* ── Card wrapper ────────────────────────────────────────────────── */
/*
   Grid layout (desktop):
   ┌──────────┬──────────┬──────────────────────────┐
   │  CALLS   │  CHATS   │                          │
   ├──────────┴──────────┤       TOTAL (right)      │
   │       EMAIL         │                          │
   └─────────────────────┴──────────────────────────┘
*/

.cpx-li-card {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    grid-template-rows: auto auto;
    gap: 16px;
    border: 1px solid #C5C5C5;
    border-radius: 20px;
    padding: 24px;
    /* No background set — section gradient shows through */
}

/* ── Counter cells ───────────────────────────────────────────────── */

.cpx-li-cell {
    border-radius: 14px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cpx-li-calls {
    background-color: #EDEEFF;
    grid-column: 1;
    grid-row: 1;
}

.cpx-li-chats {
    background-color: #EDEEFF;
    grid-column: 2;
    grid-row: 1;
}

.cpx-li-email {
    background-color: #EDEEFF;
    grid-column: 1 / 3;  /* spans under both CALLS and CHATS */
    grid-row: 2;
}

/* ── Total block (right column, spans both rows) ─────────────────── */

.cpx-li-total {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 48px 20px 20px;
    background-color: #EDEEFF;
    border-radius: 14px;
}

/* ── Numbers ─────────────────────────────────────────────────────── */

.cpx-li-number {
    display: block;
    font-family: 'Overpass', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #4F46E5;
    line-height: 1.05;
    /* tabular-nums prevents layout shift as digits change */
    font-variant-numeric: tabular-nums;
    min-width: 7ch;
    text-align: center;
}

.cpx-li-total .cpx-li-number {
    font-size: 1.25rem;
}

/* ── Labels ──────────────────────────────────────────────────────── */

.cpx-li-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #303336;
    text-transform: uppercase;
    text-align: center;
}

/* ── min-width 1024px: constrain card width ───────────────────────── */

@media (min-width: 1024px) {
    .cpx-li-card {
        width: 77%;
        margin-left: auto;
        margin-right: auto;
    }
    .cpx-li-total {
        margin-left: 25px;
    }
}

/* ── Responsive: tablet ──────────────────────────────────────────── */

@media (max-width: 1024px) {
    .cpx-li-heading { font-size: 2rem; }
    .cpx-li-number  { font-size: 1.6rem; }
    .cpx-li-total .cpx-li-number { font-size: 2rem; }
}

/* ── Responsive: mobile landscape ───────────────────────────────── */

@media (max-width: 767px) {
    .cpx-li-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    .cpx-li-calls { grid-column: 1; grid-row: 1; }
    .cpx-li-chats { grid-column: 1; grid-row: 2; }
    .cpx-li-email { grid-column: 1; grid-row: 3; }
    .cpx-li-total { grid-column: 1; grid-row: 4; }

    .cpx-li-heading { font-size: 1.7rem; }
    .cpx-li-number  { font-size: 1.5rem; min-width: 0; }
    .cpx-li-total .cpx-li-number { font-size: 1.8rem; }
}

/* ── Responsive: mobile portrait ────────────────────────────────── */

@media (max-width: 480px) {

}
