/**
 * Repeat Customer for WooCommerce - Styles.
 *
 * Covers the order metabox, timeline, match labels, CTA, and orders list column.
 */

/* ── Metrics grid ────────────────────────────────────────────────────── */

.rc4wc-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin: 0;
    padding: 0;
}

.rc4wc-metrics--soft .rc4wc-metric__value {
    font-style: italic;
    opacity: 0.8;
}

.rc4wc-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rc4wc-metric__label {
    font-size: 11px;
    font-weight: 400;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.rc4wc-metric__value {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.4;
}

/* ── Match confidence labels ─────────────────────────────────────────── */

.rc4wc-match-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 3px;
    margin: 0 0 8px;
}

.rc4wc-match-label--soft {
    color: #e65100;
    background: #fff3e0;
}

.rc4wc-postcode-disclaimer {
    font-size: 11px;
    color: #9e9e9e;
    font-style: italic;
    margin: 0 0 8px;
    line-height: 1.5;
}

/* ── OrderBadger CTA ─────────────────────────────────────────────────── */

.rc4wc-cta {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #f0f6fc;
    border: 1px solid #c3d9ed;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.rc4wc-cta p {
    margin: 0 0 6px;
    color: #1d2327;
}

.rc4wc-cta__link {
    font-weight: 600;
    color: #2271b1;
    text-decoration: none;
}

.rc4wc-cta__link:hover {
    color: #135e96;
    text-decoration: underline;
}

/* ── Timeline ────────────────────────────────────────────────────────── */

.rc4wc-timeline-wrap {
    margin: 12px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid #f0f0f1;
}

.rc4wc-timeline {
    position: relative;
}

.rc4wc-timeline__track {
    position: relative;
    height: 20px;
    background: #f0f0f1;
    border-radius: 10px;
    margin-bottom: 4px;
}

.rc4wc-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2271b1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #2271b1;
    cursor: pointer;
    transition: transform 0.15s;
    text-decoration: none;
    display: block;
}

.rc4wc-marker:hover {
    transform: translate(-50%, -50%) scale(1.4);
    z-index: 1;
}

.rc4wc-marker--soft {
    background: transparent;
    border: 2px solid #e65100;
    box-shadow: 0 0 0 1px #e65100;
    opacity: 0.6;
}

.rc4wc-marker--soft:hover {
    opacity: 1;
}

.rc4wc-timeline__span {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #9e9e9e;
    line-height: 1;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.rc4wc-footer {
    margin: 12px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid #f0f0f1;
    font-size: 12px;
}

.rc4wc-footer a {
    color: #2271b1;
    text-decoration: none;
}

.rc4wc-footer a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* ── Notices ─────────────────────────────────────────────────────────── */

.rc4wc-guest-notice,
.rc4wc-notice {
    color: #646970;
    font-style: italic;
    margin: 0;
    font-size: 12px;
}

/* ── Orders list column ──────────────────────────────────────────────── */

.rc4wc-col-count {
    font-weight: 600;
    font-size: 12px;
    color: #1d2327;
}

.rc4wc-col-ltv {
    font-size: 11px;
    color: #646970;
}

.rc4wc-col-new {
    font-size: 11px;
    color: #9e9e9e;
    font-style: italic;
}
