/* =========================================================
   EXACTSUB
   AUTOMATED BANK FUNDING PAGE
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

#autofund-page {

    --autofund-primary: #022A7B;
    --autofund-primary-dark: #011E59;

    --autofund-primary-soft: #EEF4FF;
    --autofund-primary-border: #D9E5FA;

    --autofund-green: #29BA22;
    --autofund-green-dark: #1E9419;
    --autofund-green-soft: #EFFBEF;

    --autofund-text: #172033;
    --autofund-text-secondary: #667085;
    --autofund-text-muted: #98A2B3;

    --autofund-border: #E4E7EC;
    --autofund-border-light: #EEF1F5;

    --autofund-background: #F6F8FC;
    --autofund-white: #FFFFFF;

    --autofund-shadow:
        0 2px 8px rgba(16, 24, 40, 0.04);

    --autofund-shadow-hover:
        0 7px 20px rgba(16, 24, 40, 0.07);

    width: 100%;

    min-height: calc(100vh - 70px);

    padding: 28px 28px 45px;

    background: var(--autofund-background);

    box-sizing: border-box;
}


/* =========================================================
   RESET
========================================================= */

#autofund-page *,
#autofund-page *::before,
#autofund-page *::after {

    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
========================================================= */

#autofund-page .autofund-container {

    width: 100%;

    max-width: 1120px;

    margin: 0 auto;
}


/* =========================================================
   PAGE HEADER
========================================================= */

#autofund-page .autofund-page-header {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 20px;
}


#autofund-page .autofund-header-icon {

    width: 46px;

    height: 46px;

    flex: 0 0 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: var(--autofund-primary-soft);

    color: var(--autofund-primary);

    font-size: 18px;
}


#autofund-page .autofund-header-content {

    min-width: 0;
}


#autofund-page .autofund-eyebrow {

    display: block;

    margin-bottom: 3px;

    color: var(--autofund-primary);

    font-size: 10px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 0.09em;
}


#autofund-page .autofund-header-content h1 {

    margin: 0;

    color: var(--autofund-text);

    font-size: 25px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.025em;
}


#autofund-page .autofund-header-content p {

    margin: 5px 0 0;

    color: var(--autofund-text-secondary);

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   INFORMATION BANNER
========================================================= */

#autofund-page .autofund-info-banner {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 25px;

    padding: 12px 15px;

    border: 1px solid var(--autofund-primary-border);

    border-radius: 10px;

    background: var(--autofund-primary-soft);
}


#autofund-page .autofund-info-icon {

    width: 32px;

    height: 32px;

    flex: 0 0 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background: var(--autofund-white);

    color: var(--autofund-primary);

    font-size: 13px;
}


#autofund-page .autofund-info-content {

    min-width: 0;
}


#autofund-page .autofund-info-content strong {

    display: block;

    margin-bottom: 2px;

    color: var(--autofund-primary-dark);

    font-size: 11px;

    font-weight: 700;
}


#autofund-page .autofund-info-content span {

    display: block;

    color: #52627A;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   SECTION HEADER
========================================================= */

#autofund-page .autofund-section-header {

    margin-bottom: 13px;
}


#autofund-page .autofund-section-label {

    display: block;

    margin-bottom: 4px;

    color: var(--autofund-primary);

    font-size: 9px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 0.09em;
}


#autofund-page .autofund-section-header h2 {

    margin: 0;

    color: var(--autofund-text);

    font-size: 18px;

    line-height: 1.35;

    font-weight: 700;

    letter-spacing: -0.015em;
}


/* =========================================================
   ACCOUNT GRID
========================================================= */

#autofund-page .autofund-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    align-items: start;
}


/* =========================================================
   ACCOUNT CARD
========================================================= */

#autofund-page .autofund-card {

    min-width: 0;

    background: var(--autofund-white);

    border: 1px solid var(--autofund-border);

    border-radius: 13px;

    box-shadow: var(--autofund-shadow);

    overflow: hidden;

    transition:
        box-shadow 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease;
}


#autofund-page .autofund-card:hover {

    border-color: #D7DDE7;

    box-shadow: var(--autofund-shadow-hover);

    transform: translateY(-1px);
}


/* =========================================================
   CARD TOP
========================================================= */

#autofund-page .autofund-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 17px 18px;

    border-bottom: 1px solid var(--autofund-border-light);
}


/* =========================================================
   BANK BRAND
========================================================= */

#autofund-page .autofund-bank-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


#autofund-page .autofund-bank-logo {

    width: 42px;

    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border: 1px solid var(--autofund-border);

    border-radius: 9px;

    background: #FFFFFF;
}


#autofund-page .autofund-bank-logo img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 4px;
}


#autofund-page .autofund-bank-name {

    min-width: 0;
}


#autofund-page .autofund-provider-label {

    display: block;

    margin-bottom: 2px;

    color: var(--autofund-text-muted);

    font-size: 8px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 0.08em;
}


#autofund-page .autofund-bank-name strong {

    display: block;

    overflow: hidden;

    color: var(--autofund-text);

    font-size: 12px;

    font-weight: 700;

    line-height: 1.4;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   AVAILABLE BADGE
========================================================= */

#autofund-page .autofund-available-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    flex: 0 0 auto;

    padding: 5px 8px;

    border: 1px solid #D8F0D5;

    border-radius: 20px;

    background: var(--autofund-green-soft);

    color: var(--autofund-green-dark);

    font-size: 8px;

    font-weight: 700;
}


#autofund-page .autofund-available-badge span {

    width: 5px;

    height: 5px;

    border-radius: 50%;

    background: var(--autofund-green);
}


/* =========================================================
   ACCOUNT NUMBER SECTION
========================================================= */

#autofund-page .autofund-account-section {

    padding: 17px 18px 14px;
}


#autofund-page .autofund-field-label {

    display: block;

    margin-bottom: 6px;

    color: var(--autofund-text-muted);

    font-size: 8px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 0.08em;
}


#autofund-page .autofund-account-number-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    min-width: 0;
}


#autofund-page .autofund-account-number {

    min-width: 0;

    overflow: hidden;

    color: var(--autofund-primary-dark);

    font-size: 21px;

    font-weight: 700;

    line-height: 1.25;

    letter-spacing: 0.025em;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   COPY BUTTON
========================================================= */

#autofund-page .autofund-copy-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    flex: 0 0 auto;

    min-height: 34px;

    padding: 0 10px;

    border: 1px solid var(--autofund-primary-border);

    border-radius: 7px;

    background: var(--autofund-primary-soft);

    color: var(--autofund-primary);

    font-family: inherit;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}


#autofund-page .autofund-copy-button:hover {

    border-color: var(--autofund-primary);

    background: var(--autofund-primary);

    color: #FFFFFF;
}


#autofund-page .autofund-copy-button.is-copied {

    border-color: var(--autofund-green);

    background: var(--autofund-green-soft);

    color: var(--autofund-green-dark);
}


/* =========================================================
   DETAILS
========================================================= */

#autofund-page .autofund-details {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 12px;

    padding: 0 18px 16px;
}


#autofund-page .autofund-detail {

    min-width: 0;

    padding: 10px 11px;

    border: 1px solid var(--autofund-border-light);

    border-radius: 8px;

    background: #FAFBFC;
}


#autofund-page .autofund-detail span {

    display: block;

    margin-bottom: 4px;

    color: var(--autofund-text-muted);

    font-size: 8px;

    font-weight: 600;

    line-height: 1.3;
}


#autofund-page .autofund-detail strong {

    display: block;

    overflow: hidden;

    color: #344054;

    font-size: 10px;

    font-weight: 700;

    line-height: 1.45;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   CARD FOOTER
========================================================= */

#autofund-page .autofund-card-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 12px 18px;

    border-top: 1px solid var(--autofund-border-light);

    background: #FCFDFE;
}


/* =========================================================
   TRANSFER NOTE
========================================================= */

#autofund-page .autofund-transfer-note {

    display: flex;

    align-items: center;

    gap: 6px;

    min-width: 0;

    color: var(--autofund-green-dark);

    font-size: 8px;

    font-weight: 600;
}


#autofund-page .autofund-transfer-note i {

    font-size: 9px;

    flex: 0 0 auto;
}


/* =========================================================
   CHARGE
========================================================= */

#autofund-page .autofund-charge {

    text-align: right;

    flex: 0 0 auto;
}


#autofund-page .autofund-charge span {

    display: block;

    margin-bottom: 2px;

    color: var(--autofund-text-muted);

    font-size: 7px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 0.05em;
}


#autofund-page .autofund-charge strong {

    color: var(--autofund-text);

    font-size: 10px;

    font-weight: 700;
}


#autofund-page .autofund-no-charge strong {

    color: var(--autofund-green-dark);
}


/* =========================================================
   SECURITY NOTE
========================================================= */

#autofund-page .autofund-security-note {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 18px;

    padding: 13px 15px;

    border: 1px solid var(--autofund-border);

    border-radius: 10px;

    background: var(--autofund-white);

    box-shadow: var(--autofund-shadow);
}


#autofund-page .autofund-security-icon {

    width: 30px;

    height: 30px;

    flex: 0 0 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background: var(--autofund-primary-soft);

    color: var(--autofund-primary);

    font-size: 12px;
}


#autofund-page .autofund-security-content {

    min-width: 0;
}


#autofund-page .autofund-security-content strong {

    display: block;

    margin-bottom: 1px;

    color: #344054;

    font-size: 10px;

    font-weight: 700;
}


#autofund-page .autofund-security-content span {

    display: block;

    color: var(--autofund-text-secondary);

    font-size: 9px;

    line-height: 1.5;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    #autofund-page .autofund-grid {

        grid-template-columns: 1fr;

    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 700px) {

    #autofund-page {

        padding: 22px 16px 40px;

    }


    #autofund-page .autofund-header-content h1 {

        font-size: 23px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    #autofund-page {

        padding: 18px 12px 35px;

    }


    #autofund-page .autofund-page-header {

        align-items: flex-start;

        gap: 11px;

        margin-bottom: 17px;

    }


    #autofund-page .autofund-header-icon {

        width: 40px;

        height: 40px;

        flex-basis: 40px;

        border-radius: 10px;

        font-size: 16px;

    }


    #autofund-page .autofund-eyebrow {

        font-size: 9px;

    }


    #autofund-page .autofund-header-content h1 {

        font-size: 21px;

    }


    #autofund-page .autofund-header-content p {

        font-size: 11px;

    }


    #autofund-page .autofund-info-banner {

        align-items: flex-start;

    }


    #autofund-page .autofund-section-header h2 {

        font-size: 17px;

    }


    #autofund-page .autofund-card-top {

        padding: 15px 16px;

    }


    #autofund-page .autofund-account-section {

        padding-left: 16px;

        padding-right: 16px;

    }


    #autofund-page .autofund-details {

        padding-left: 16px;

        padding-right: 16px;

    }


    #autofund-page .autofund-card-footer {

        padding-left: 16px;

        padding-right: 16px;

    }


    #autofund-page .autofund-account-number {

        font-size: 18px;

    }


    #autofund-page .autofund-security-note {

        align-items: flex-start;

    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    #autofund-page {

        padding-left: 9px;

        padding-right: 9px;

    }


    #autofund-page .autofund-account-number-row {

        align-items: flex-start;

        flex-direction: column;

    }


    #autofund-page .autofund-account-number {

        width: 100%;

    }


    #autofund-page .autofund-copy-button {

        width: 100%;

    }


    #autofund-page .autofund-details {

        grid-template-columns: 1fr;

    }


    #autofund-page .autofund-card-footer {

        align-items: flex-start;

        flex-direction: column;

    }


    #autofund-page .autofund-charge {

        text-align: left;

    }

}