/* Stock Footer V2 Styles - ABML Design */
/* Bootstrap 3 Compatible */

/* Main Footer Wrapper */
.stock-footer-wrapper {
    margin: 0px;
    margin-top: 30px;
    background: linear-gradient(180deg, #FFFFFF -44.93%, #F5F7FE 100%);
    overflow-x: hidden;
}

/* Stock List Section */
.stock-footer-wrapper .stock-list {
    margin-right: 10px;
    padding: 10px 0px;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
}

.stock-footer-wrapper .stocks-list-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

/* Pagination Links */
.stock-footer-wrapper .pagination-text a {
    color: #000000;
    text-decoration: none;
    padding: 10px;
    font-size: 16px;
    border-right: 1px solid #fff;
    line-height: 24px;
    background-color: #FAFAFA;
    font-weight: 500;
    border-radius: 5px;
}

.stock-footer-wrapper .pagination-text a.active {
    color: #7148DC;
    background-color: #7346F112;
}

.stock-footer-wrapper .footer-pagination {
    padding: 20px 0px 0px 0px;
}

.stock-footer-wrapper hr {
    width: 95%;
    margin: 0 auto;
}

/* ========================================
   NEW: Footer Details Section (Light Purple)
   ======================================== */
.footer-details {
    background-color: #F4F0FF;
    color: #64668E !important;
    text-align: left !important;
}

.footer-details a {
    color: #582FDA;
}

.footer-details a:hover {
    color: #582FDA;
}

/* ID-based overrides for footer-details */
#mojo-footer-details {
    background-color: #F4F0FF !important;
    color: #64668E !important;
    text-align: left !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

#mojo-footer-details a {
    color: #582FDA;
}

#mojo-footer-details a:hover {
    color: #582FDA;
}

/* Override section styling inside footer-details to prevent white card and gap */
#mojo-footer-details section {
    background: transparent !important;
    box-shadow: none !important;
    min-height: auto !important;
    height: auto !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    overflow: visible !important;
}

.footer-text-style {
    padding: 0px 25px;
    text-align: left;
}

.footer-text-style p {
    padding: 0px;
    margin: 0px;
    line-height: 24px;
}

/* ========================================
   NEW: Purple Bottom Bar
   ======================================== */
footer {
    background-color: #7957FF !important;
    font-size: 12px;
    bottom: 0px;
    margin-top: 0px;
    position: sticky;
    top: 100vh;
    width: 100%;
}

footer p {
    padding: 0px;
    margin: 0px;
    line-height: 24px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    background-color: #7957FF !important;
    color: #fff;
}

.footer-menu ul {
    text-align: right;
    margin: 0;
    padding: 0px;
    list-style: none;
}

.footer-menu li {
    display: inline-block;
    margin-right: 20px;
}

.footer-menu ul li a {
    color: #fff !important;
    text-decoration: none;
}

.footer-menu ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========================================
   ID-based overrides for footer_v2 pages
   ======================================== */
#mojo-footer {
    background-color: #7957FF !important;
    font-size: 12px;
    bottom: 0px;
    margin-top: 0px;
    position: sticky;
    top: 100vh;
    width: 100%;
    clear: both !important;
    float: none !important;
}

#mojo-footer p {
    padding: 0px;
    margin: 0px;
    line-height: 24px;
}

#mojo-footer a {
    color: #fff;
    text-decoration: none;
}

#mojo-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

#mojo-footer .footer-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    background-color: #7957FF !important;
    color: #fff;
}

#mojo-footer .footer-menu ul {
    text-align: right;
    margin: 0;
    padding: 0px;
    list-style: none;
}

#mojo-footer .footer-menu li {
    display: inline-block;
    margin-right: 20px;
}

#mojo-footer .footer-menu ul li a {
    color: #fff !important;
    text-decoration: none;
}

#mojo-footer .footer-menu ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========================================
   ID-based overrides for stock-footer-wrapper
   ======================================== */
#mojo-stock-footer {
    margin: 0px !important;
    margin-top: 30px !important;
    background: linear-gradient(180deg, #FFFFFF -44.93%, #F5F7FE 100%) !important;
    overflow-x: hidden !important;
    display: block !important;
}

#mojo-stock-footer .footer-pagination {
    padding: 20px 0px 0px 0px !important;
    display: block !important;
}

#mojo-stock-footer .stocks-list-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

#mojo-stock-footer .stock-list {
    margin-right: 10px !important;
    padding: 10px 0px !important;
    font-size: 16px !important;
    text-align: center !important;
    font-weight: 500 !important;
    display: block !important;
    color: #000000 !important;
}

#mojo-stock-footer .pagination-text {
    display: inline-block !important;
}

#mojo-stock-footer .pagination-text a {
    color: #000000 !important;
    text-decoration: none !important;
    padding: 10px !important;
    font-size: 16px !important;
    line-height: 24px !important;
    background-color: #FAFAFA !important;
    font-weight: 500 !important;
    border-radius: 5px !important;
    display: inline-block !important;
    border-right: 1px solid #fff !important;
}

#mojo-stock-footer .pagination-text a.active {
    color: #7148DC !important;
    background-color: #7346F112 !important;
}

#mojo-stock-footer hr {
    width: 95% !important;
    margin: 0 auto !important;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Mobile Devices (≤767px) */
@media only screen and (max-width: 767px) {
    .stock-footer-wrapper .pagination-text {
        width: 95%;
        margin: 10px auto;
    }

    .stock-footer-wrapper .pagination-text a {
        padding: 7px 10px;
        font-size: 14px;
        line-height: 38px;
        display: inline-flex;
    }

    .stock-footer-wrapper .stock-list {
        padding: 0px 0px;
        font-size: 18px;
    }

    .stock-footer-wrapper .stocks-list-wrap {
        display: block;
    }

    .footer-text-style {
        padding: 0px;
    }

    .footer-menu-wrapper {
        display: grid;
        align-items: center;
        justify-content: center;
        padding: 10px 10px;
    }

    .footer-menu ul {
        text-align: center;
        margin-bottom: 10px;
    }

    /* ID-based mobile overrides */
    #mojo-stock-footer .pagination-text {
        width: 95% !important;
        margin: 10px auto !important;
    }

    #mojo-stock-footer .pagination-text a {
        padding: 7px 10px !important;
        font-size: 14px !important;
        line-height: 38px !important;
        display: inline-flex !important;
    }

    #mojo-stock-footer .stock-list {
        padding: 0px 0px !important;
        font-size: 18px !important;
    }

    #mojo-stock-footer .stocks-list-wrap {
        display: block !important;
    }
}

/* Tablet Devices (768px - 1024px) */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .stock-footer-wrapper .pagination-text {
        width: 95%;
        margin: 10px auto;
    }

    .stock-footer-wrapper .pagination-text a {
        padding: 7px 10px;
        font-size: 14px;
        line-height: 38px;
        display: inline-flex;
    }

    .stock-footer-wrapper .stock-list {
        padding: 0px 0px;
        font-size: 18px;
    }

    .stock-footer-wrapper .stocks-list-wrap {
        display: block;
    }

    .footer-menu-wrapper {
        display: grid;
        align-items: center;
        justify-content: center;
        padding: 10px 10px;
    }

    .footer-menu ul {
        text-align: center;
        margin-bottom: 10px;
    }

    /* ID-based tablet overrides */
    #mojo-stock-footer .pagination-text {
        width: 95% !important;
        margin: 10px auto !important;
    }

    #mojo-stock-footer .pagination-text a {
        padding: 7px 10px !important;
        font-size: 14px !important;
        line-height: 38px !important;
        display: inline-flex !important;
    }

    #mojo-stock-footer .stock-list {
        padding: 0px 0px !important;
        font-size: 18px !important;
    }

    #mojo-stock-footer .stocks-list-wrap {
        display: block !important;
    }
}

/* ========================================
   Optimizer Page Footer Overrides
   Note: Main positioning is done via inline PHP styles in footer_ia.phtml
   These are backup/override styles
   ======================================== */

/* Mobile - full width footer on optimizer */
@media only screen and (max-width: 991px) {
    /* Reset optimizer page footer margins on mobile/tablet */
    #mojo-footer-details[style*="margin-left: 17%"],
    #mojo-footer[style*="margin-left: 17%"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}
