.perm-ask {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.35);
    box-sizing: border-box;
}

.perm-ask.is-open {
    display: flex;
}

.perm-ask *,
.perm-ask *::before,
.perm-ask *::after {
    box-sizing: border-box;
}

.perm-ask-card {
    width: calc(100% - 32px);
    max-width: 360px;
    max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
    text-align: center;
    outline: none;
    -webkit-overflow-scrolling: touch;
}

.perm-ask-mark {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #EDF4FF;
    color: #598FE3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    line-height: 1;
}

.perm-ask-title {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", Nunito, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #0F172A;
}

.perm-ask-lead {
    margin: 0 0 20px;
    font-family: Nunito, "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #64748B;
}

.perm-ask-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 20px;
    text-align: left;
}

.perm-ask-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.perm-ask-row i {
    width: 18px;
    flex: 0 0 18px;
    color: #598FE3;
    font-size: 15px;
    text-align: center;
}

.perm-ask-row span {
    min-width: 0;
    font-family: Nunito, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.perm-ask-go {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: #598FE3;
    color: #FFFFFF;
    font-family: Nunito, "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.perm-ask-go.is-wait,
.perm-ask.is-busy .perm-ask-go {
    opacity: 0.72;
    pointer-events: none;
}

.perm-ask-later {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 8px 0 0;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #598FE3;
    font-family: Nunito, "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.perm-ask-foot {
    margin: 8px 0 0;
    font-family: Nunito, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: #71809B;
}

.perm-ask-err {
    margin: 12px 0 0;
    font-family: Nunito, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #D95C69;
}

.perm-ask-err[hidden] {
    display: none !important;
}

@media (max-width: 320px) {
    .perm-ask {
        padding: 12px;
    }

    .perm-ask-card {
        width: calc(100% - 24px);
        padding: 20px 16px;
    }

    .perm-ask-mark {
        width: 76px;
        height: 76px;
        font-size: 36px;
    }

    .perm-ask-title {
        font-size: 20px;
    }
}
