/* ===================================================
   Product Credit — Frontend Panel
   Unboxed layout matching reference: main line, details, button
   =================================================== */

.tvpc-panel {
    margin: 16px 0 20px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
}

/* ── Body: content left, button right (matches reference) ── */

.tvpc-panel__body {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.tvpc-panel__content {
    flex: 0 1 auto;
    min-width: 0;
}

/* ── Main installment line (e.g. USD 562 pm × 12 months) ── */

.tvpc-panel__main {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 6px;
}

/* ── Credit details (deposit, total credit amount) ── */

.tvpc-panel__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tvpc-panel__detail {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.tvpc-panel__detail-label {
    font-size: 0.875rem;
    color: #757575;
}

.tvpc-panel__detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #757575;
}

/* ── CTA: pill button, bottom-right (reference layout) ── */

.tvpc-panel__cta {
    flex-shrink: 0;
    margin-left: auto;
}

.tvpc-panel__apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #111827;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background 0.18s ease, transform 0.18s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.tvpc-panel__apply-btn:hover {
    background: #1f2937 !important;
    transform: translateY(-1px);
    color: #ffffff !important;
    text-decoration: none !important;
}

.tvpc-panel__apply-btn svg {
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.tvpc-panel__apply-btn:hover svg {
    transform: translateX(3px);
}

/* ── Responsive: stack on small screens only ── */

@media (max-width: 480px) {
    .tvpc-panel__body {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .tvpc-panel__cta {
        margin-left: 0;
    }

    .tvpc-panel__main {
        font-size: 16px;
    }

    .tvpc-panel__apply-btn {
        width: 100%;
    }
}
