/**
 * Razorpay Easy EMI & Affordability Suite Styles
 * SparroWave Technologies
 * Pixel-perfect match to Razorpay Affordability Card & Botble UI
 */

.razorpay-easy-emi-container {
    max-width: 540px;
    margin: 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Card Header */
.rzp-card-header {
    background: #2b83ea;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rzp-header-title {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.rzp-powered-by {
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rzp-logo-bolt {
    width: 14px;
    height: 16px;
    fill: #ffffff;
}

.rzp-logo-text {
    font-size: 15px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.5px;
    color: #ffffff;
}

/* Card Body */
.rzp-card-body {
    background: #ffffff;
    border: 1.5px solid #2b83ea;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 18px 20px;
    display: flex;
    box-shadow: 0 4px 14px rgba(43, 131, 234, 0.08);
}

.rzp-card-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rzp-col-left {
    padding-right: 20px;
    border-right: 1px solid #eef2f6;
}

.rzp-col-right {
    padding-left: 20px;
}

.rzp-col-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.35;
    min-height: 40px;
}

.rzp-highlight-green {
    color: #10b981;
}

/* Icons Row */
.rzp-icons-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
}

.rzp-bank-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    flex-shrink: 0;
}

.rzp-bank-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.rzp-more-pill {
    height: 26px;
    min-width: 26px;
    padding: 0 7px;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Action Buttons */
.rzp-btn-view-plans {
    background: #2b83ea;
    color: #ffffff !important;
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    align-self: flex-start;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.rzp-btn-view-plans:hover {
    background: #1a73e8;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.rzp-btn-view-offers {
    background: #ffffff;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.rzp-btn-view-offers:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a !important;
    transform: translateY(-1px);
}

/* Modal Customizations */
.rzp-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
}

.rzp-bank-nav-pills .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border-radius: 8px;
    padding: 7px 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.15s ease;
}

.rzp-bank-nav-pills .nav-link.active {
    background: #2b83ea;
    color: #ffffff;
    border-color: #2b83ea;
}

.rzp-tenure-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 13.5px;
}

.rzp-tenure-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    padding: 10px 14px;
    border-bottom: 1.5px solid #e2e8f0;
}

.rzp-tenure-table td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.rzp-offer-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rzp-offer-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .rzp-card-body {
        flex-direction: column;
        padding: 16px;
    }

    .rzp-col-left {
        padding-right: 0;
        padding-bottom: 16px;
        border-right: none;
        border-bottom: 1px solid #eef2f6;
    }

    .rzp-col-right {
        padding-left: 0;
        padding-top: 16px;
    }

    .rzp-col-title {
        min-height: auto;
    }

    .rzp-btn-view-plans,
    .rzp-btn-view-offers {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Product Listing Card Badges — Compact Sleek Tag at Bottom-Left of Thumbnail
   ========================================================================== */
.razorpay-easy-emi-catalog-badge {
    position: absolute !important;
    bottom: 6px !important;
    left: 6px !important;
    top: auto !important;
    z-index: 5 !important;
    pointer-events: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.rzp-badge-pill {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3.5px !important;
    padding: 2.5px 7px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.35px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    width: auto !important;
    max-width: fit-content !important;
    font-family: inherit !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16) !important;
}

/* Subtle, refined light-beam gleam passing across the badge */
.rzp-badge-pill::after {
    content: '' !important;
    position: absolute !important;
    top: -60% !important;
    left: -130% !important;
    width: 50% !important;
    height: 220% !important;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    ) !important;
    transform: rotate(25deg) !important;
    animation: rzpBadgeShineSweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    pointer-events: none !important;
}

@keyframes rzpBadgeShineSweep {
    0% {
        left: -130%;
    }
    35%, 100% {
        left: 150%;
    }
}

.rzp-badge-text {
    white-space: nowrap !important;
}

.rzp-badge-icon {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* 1. Low Cost EMI Badge: Warm Golden Amber (Matches Retailer/Sale themes) */
.rzp-badge-low-cost {
    background: #b45309 !important;
    color: #ffffff !important;
    border: 1px solid #f59e0b !important;
}

/* 2. No Cost EMI Badge: Clean Emerald Green */
.rzp-badge-no-cost {
    background: #047857 !important;
    color: #ffffff !important;
    border: 1px solid #10b981 !important;
}

/* 3. Standard EMI Badge: Clean Royal Blue */
.rzp-badge-standard {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: 1px solid #3b82f6 !important;
}

/* 4. Custom Promotional Badge: Clean Indigo */
.rzp-badge-custom {
    background: #4338ca !important;
    color: #ffffff !important;
    border: 1px solid #6366f1 !important;
}

