/* Banking App Authentication — approv */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body.ba-page {
    min-height: 100svh;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

.ba-sheet {
    width: 100%;
    max-width: 430px;
    min-height: 100svh;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ba-head {
    padding: 10px 18px 0;
    border-top: 6px solid #5a5a5a;
}

.ba-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: #333;
    text-decoration: none;
    z-index: 2;
}

.ba-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 28px 4px 8px;
}

.ba-bank img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    object-position: left center;
}

.ba-bank-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: #c8102e;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.ba-scheme img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 84px;
    object-fit: contain;
}

.ba-main {
    flex: 1;
    padding: 18px 22px 24px;
}

.ba-title {
    margin: 8px 0 22px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
}

.ba-timer {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 22px;
}

.ba-timer-ring {
    width: 132px;
    height: 132px;
    transform: rotate(-90deg);
}

.ba-timer-track {
    fill: none;
    stroke: #f0d0d4;
    stroke-width: 8;
}

.ba-timer-progress {
    fill: none;
    stroke: #9b1b2e;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.7256;
    stroke-dashoffset: 0;
}

.ba-timer-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.02em;
}

.ba-lead {
    margin: 0 auto 22px;
    max-width: 340px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.ba-details {
    margin: 0 0 22px;
    padding: 0;
}

.ba-details > div {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.45;
}

.ba-details dt {
    margin: 0;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

.ba-details dd {
    margin: 0;
    color: #222;
    word-break: break-word;
}

.ba-cancel-link {
    margin: 0 0 28px;
    text-align: center;
}

.ba-cancel-link a {
    color: #1a5fb4;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.ba-cancel-link a:hover {
    text-decoration: underline;
}

.ba-faq {
    border-top: 1px solid #ddd;
}

.ba-faq details {
    border-bottom: 1px solid #ddd;
}

.ba-faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 2px;
    cursor: pointer;
    font-size: 14px;
    color: #222;
}

.ba-faq summary::-webkit-details-marker {
    display: none;
}

.ba-faq-icon {
    font-size: 22px;
    font-weight: 400;
    color: #444;
    line-height: 1;
}

.ba-faq details[open] .ba-faq-icon {
    transform: rotate(45deg);
}

.ba-faq details p {
    margin: 0 0 14px;
    padding: 0 2px 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.ba-sms {
    margin: 18px 0 0;
    text-align: center;
}

.ba-sms a {
    font-size: 13px;
    color: #1a5fb4;
    text-decoration: underline;
}

.ba-foot {
    margin-top: auto;
    padding: 0 0 env(safe-area-inset-bottom, 0);
}

.ba-cancel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    background: #6b6b6b;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

.ba-cancel-btn:hover {
    background: #5a5a5a;
}

@media (min-width: 480px) {
    body.ba-page {
        padding: 24px 16px;
        align-items: center;
    }

    .ba-sheet {
        min-height: auto;
        border-radius: 4px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
        overflow: hidden;
    }
}
