/* ============================================================
   Mora Installment Banner (Premium Native UI)
   Aesthetic: Premium Card/Pill hybrid, Native Fonts
   Mobile: Intelligent text swapping to enforce ONE LINE
   ============================================================ */

/* Force native inheritance, no forced font-family, avoiding AI-look */
.mora-pro-banner,
.mora-pro-banner *,
.mora-pro-overlay,
.mora-pro-overlay * {
    font-family: inherit !important;
    box-sizing: border-box;
}

:root {
    --mora-pro-bg: #FCF4F4; /* Ultra soft pastel red */
    --mora-pro-bg-hover: #FDF0F0;
    --mora-pro-border: #FCE5E5;
    --mora-pro-border-hover: #FAD4D4;
    --mora-pro-accent: #EA5D53; /* Brand Red */
    --mora-pro-text-main: #1E293B; /* Slate 800 */
    --mora-pro-text-muted: #64748B; /* Slate 500 */
    --mora-pro-success: #059669; /* Trust Green */
}

.mora-pro-banner {
    display: block;
    width: 100%;
    margin: 0 0 24px 0;
    direction: rtl;
    text-decoration: none;
}

.mora-pro-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: var(--mora-pro-bg);
    border: 1px solid var(--mora-pro-border);
    border-radius: 16px; /* High-end card/pill shape */
    padding: 12px 16px 12px 12px;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Strict enforcers */
    white-space: nowrap;
    overflow: hidden;
}

.mora-pro-banner__inner:hover, .mora-pro-banner__inner:focus-visible {
    background-color: var(--mora-pro-bg-hover);
    border-color: var(--mora-pro-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(234, 93, 83, 0.15);
    outline: none;
}

.mora-pro-banner__inner:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ---- Brand & Left Side ---- */
.mora-pro-banner__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0; /* allows text truncation */
    flex-shrink: 1; /* allow shrinking while price resists */
}

.mora-pro-banner__logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.mora-pro-banner__text-container {
    display: flex;
    align-items: center;
    color: var(--mora-pro-text-main);
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis; 
}

.mora-pro-banner__text-long { display: inline; }
.mora-pro-banner__text-short { display: none; } /* Hidden on desktop */

.mora-pro-banner__highlight {
    font-weight: 700;
    margin: 0 4px;
}

.mora-pro-banner__features {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mora-pro-text-muted);
}

.mora-pro-banner__separator {
    margin: 0 4px;
    color: #CBD5E1;
    font-size: 10px;
}

.mora-pro-banner__feature {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

/* ---- Price & Action Block (Right Side) ---- */
.mora-pro-banner__action {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0; /* Price block never shrinks, forces text to truncate/hide */
}

.mora-pro-banner__price-block {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mora-pro-banner__amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--mora-pro-accent);
    line-height: 1;
    letter-spacing: -0.5px;
}

.mora-pro-banner__currency-long {
    font-size: 13px;
    font-weight: 600;
    color: var(--mora-pro-text-main);
    display: inline;
}

.mora-pro-banner__currency-short {
    font-size: 12px;
    font-weight: 600;
    color: var(--mora-pro-text-main);
    display: none; /* Hidden on desktop */
}

/* Premium circular button */
.mora-pro-banner__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--mora-pro-accent);
    box-shadow: 0 2px 5px rgba(234, 93, 83, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.mora-pro-banner__inner:hover .mora-pro-banner__arrow {
    transform: translateX(-4px); /* Moves left in RTL */
    box-shadow: 0 4px 8px rgba(234, 93, 83, 0.2);
}


/* ============================================================
   Custom Non-Native Modal (Glassmorphism & High End)
   ============================================================ */

.mora-pro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3); /* Lighter slate standard */
    backdrop-filter: blur(6px); /* Heavy premium blur */
    z-index: 99999;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mora-pro-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mora-pro-modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    border-radius: 20px; /* Modern large radius */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--mora-pro-text-main);
}

.mora-pro-overlay.is-open .mora-pro-modal-box {
    transform: scale(1);
}

.mora-pro-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
}

.mora-pro-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.mora-pro-modal-close {
    background: #F1F5F9;
    border: none;
    cursor: pointer;
    color: var(--mora-pro-text-muted);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mora-pro-modal-close:hover {
    background: #E2E8F0;
    color: var(--mora-pro-accent);
}

.mora-pro-modal-body {
    padding: 0 24px 24px 24px;
}

.mora-pro-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mora-pro-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--mora-pro-text-muted);
}

.mora-pro-icon {
    width: 20px;
    height: 20px;
    color: var(--mora-pro-success);
    flex-shrink: 0;
    margin-top: 2px;
}


/* ============================================================
   Responsive Layout (Strict 1-Line Enforcement)
   ============================================================ */

/* Small Desktop / Tablet Drop */
@media (max-width: 900px) {
    .mora-pro-banner__features {
        display: none; /* Drop trust badges to save space */
    }
}

/* Mobile Breakpoint - Swap long text for short text */
@media (max-width: 600px) {
    .mora-pro-banner__text-long { display: none; }
    .mora-pro-banner__text-short { display: inline; }
    
    .mora-pro-banner__currency-long { display: none; }
    .mora-pro-banner__currency-short { display: inline; }
    
    .mora-pro-banner__inner {
        padding: 10px 14px 10px 10px;
        gap: 8px;
    }
    .mora-pro-banner__amount {
        font-size: 20px;
    }
    .mora-pro-banner__arrow {
        width: 28px;
        height: 28px;
    }
    .mora-pro-banner__logo {
        height: 20px;
    }
    .mora-pro-banner__text-container {
        font-size: 13px;
    }
}

/* Extreme Mobile (320-380px) - Ellipsis handles the rest */
@media (max-width: 380px) {
    .mora-pro-banner__brand {
        gap: 8px;
    }
    .mora-pro-banner__logo {
        height: 18px;
    }
    .mora-pro-banner__text-container {
        font-size: 12px;
    }
    .mora-pro-banner__amount {
        font-size: 18px;
    }
    .mora-pro-banner__action {
        gap: 6px;
    }
    .mora-pro-banner__currency-short {
        font-size: 11px;
    }
}
