/* =============================================================================
   FYSH — EPC assurance info popup
   CR: fysh-epc-assurance-2026-09-28
   Tokens only (tokens.css); content cards use the 4px FYSH corner radius.
============================================================================= */

/* ── Trigger ───────────────────────────────────────────────────────────────── */
.epc-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--blue);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: color var(--ease), background var(--ease);
}
.epc-info-trigger:hover { background: var(--blue-tint); color: var(--blue-dark); }
.epc-info-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── Overlay + modal ───────────────────────────────────────────────────────── */
.epc-info-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 35, 64, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: epc-fade var(--ease);
}
.epc-info-overlay[hidden] { display: none; }

.epc-info-modal {
    position: relative;
    width: 100%;
    max-width: 470px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 24px 22px 20px;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    animation: epc-pop var(--ease-out);
}

.epc-info-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--faint);
    font-size: 18px;
    cursor: pointer;
    transition: color var(--ease), background var(--ease);
}
.epc-info-close:hover { color: var(--navy); background: var(--surface-2); }

/* ── Head ──────────────────────────────────────────────────────────────────── */
.epc-info-head { margin-bottom: 12px; padding-right: 28px; }

.epc-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    background: var(--success-bg);
    color: var(--success);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
}
.epc-info-badge i { font-size: 13px; }

.epc-info-title {
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
}

.epc-info-lead {
    margin: 0 0 14px;
    font-family: var(--font-body);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--slate);
}

/* ── Points ────────────────────────────────────────────────────────────────── */
.epc-info-points {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.epc-info-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--slate);
}
.epc-info-points li i {
    flex: 0 0 auto;
    margin-top: 1px;
    width: 20px;
    text-align: center;
    color: var(--blue);
    font-size: 16px;
}

/* ── Active-service line ───────────────────────────────────────────────────── */
.epc-info-active {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 10px 12px;
    background: var(--success-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--success);
}
.epc-info-active i { flex: 0 0 auto; font-size: 15px; }

/* ── Actions ───────────────────────────────────────────────────────────────── */
.epc-info-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Motion ────────────────────────────────────────────────────────────────── */
@keyframes epc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes epc-pop {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .epc-info-overlay, .epc-info-modal { animation: none; }
    .epc-info-trigger { transition: none; }
}

@media (max-width: 380px) {
    .epc-info-modal { padding: 22px 16px 16px; }
    .epc-info-title { font-size: 18px; }
    .epc-info-actions .wb-btn { width: 100%; }
}

/* ── EPC reference field layout ── CR: fysh-epc-assurance-2026-09-28 ──────────
   Half-width input with the assurance cog inline at its end, healthy margin so
   the two do not crowd each other on the same row. */
.epc-ref-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.epc-ref-input {
    flex: 0 1 340px;
    width: 100%;
    max-width: 340px;
}
