.hesab-welcome-modal {
    direction: rtl;
    text-align: right;
}

.hesab-welcome-modal .modal-dialog {
    max-width: 560px;
    padding: 12px;
}

.hesab-welcome-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(22, 36, 49, 0.24);
}

.hesab-welcome-modal .modal-header {
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
    border: 0;
}

.hesab-welcome-modal .btn-close {
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    background-color: #f4f6f8;
    background-size: 12px;
    opacity: 1;
}

.hesab-welcome-modal .btn-close:focus,
.hesab-welcome-modal button:focus-visible,
.hesab-welcome-modal a:focus-visible {
    outline: 3px solid rgba(243, 109, 55, 0.35);
    outline-offset: 3px;
    box-shadow: none;
}

.welcome-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #f36d37, #ff925f);
    box-shadow: 0 10px 24px rgba(243, 109, 55, 0.25);
    font-size: 24px;
}

.hesab-welcome-modal .modal-body {
    padding: 20px 28px 12px;
}

.welcome-modal-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #f36d37;
    font-size: 18px;
    font-weight: 700;
}

.hesab-welcome-modal .modal-body h2 {
    margin: 0 0 14px;
    color: #162431;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.55;
}

.hesab-welcome-modal .modal-body > p {
    margin: 0;
    color: #53606b;
    font-size: 15px;
    line-height: 2;
}

.welcome-modal-assurance {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #dceee5;
    border-radius: 14px;
    color: #236646;
    background-color: #f2fbf6;
    font-size: 14px;
    font-weight: 700;
}

.welcome-modal-assurance i {
    font-size: 20px;
}

.welcome-modal-details ul {
    max-height: 210px;
    overflow-y: auto;
    margin: 16px 0 4px;
    padding: 0 22px 0 0;
    color: #53606b;
    font-size: 14px;
    line-height: 2;
    list-style:disc;
    scrollbar-width: thin;
}

.welcome-modal-details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 8px;
    padding: 8px 0;
    border: 0;
    color: #263f80;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
}

.welcome-modal-details-toggle i {
    transition: transform 180ms ease;
}

.welcome-modal-details-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.hesab-welcome-modal .modal-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 28px 28px;
    border: 0;
}

.welcome-modal-primary,
.welcome-modal-old-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.welcome-modal-primary {
    border: 1px solid #f36d37;
    color: #fff;
    background-color: #f36d37;
}

.welcome-modal-primary:hover {
    color: #fff;
    background-color: #dd5b28;
}

.welcome-modal-old-version {
    border: 1px solid #dce1e5;
    color: #263f80;
    background-color: #fff;
}

.welcome-modal-old-version:hover {
    color: #1d3167;
    background-color: #f7f8fa;
}

.hesab-welcome-modal .modal-footer small {
    color: #77818a;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 575.98px) {
    .hesab-welcome-modal .modal-dialog {
        align-items: flex-end;
        min-height: calc(100% - 8px);
        margin: 4px;
        padding: 0;
    }

    .hesab-welcome-modal .modal-content {
        border-radius: 22px 22px 10px 10px;
    }

    .hesab-welcome-modal .modal-header {
        padding: 20px 20px 0;
    }

    .hesab-welcome-modal .modal-body {
        padding: 16px 20px 8px;
    }

    .hesab-welcome-modal .modal-body h2 {
        font-size: 21px;
    }

    .hesab-welcome-modal .modal-footer {
        padding: 14px 20px max(20px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hesab-welcome-modal,
    .hesab-welcome-modal .modal-dialog,
    .welcome-modal-details-toggle i,
    .welcome-modal-primary,
    .welcome-modal-old-version {
        transition: none !important;
    }
}
