/* =========================================================
   ALERTS
   ========================================================= */
.profile-v2-alert-center {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.profile-v2-alert {
    overflow: hidden;
    margin: 0;
    background: #fff;
    border: 1px solid #e4e6ec;
    border-left: 4px solid #53627c;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(31, 35, 54, .05);
}

.profile-v2-alert__summary {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    background: #f8f9fc;
}

.profile-v2-alert__summary::-webkit-details-marker {
    display: none;
}

.profile-v2-alert__summary:focus-visible {
    outline: 2px solid rgba(83, 98, 124, .35);
    outline-offset: -2px;
}

.profile-v2-alert__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border-radius: 10px;
    color: #53627c;
    background: #e8edf5;
    font-size: 18px;
}

.profile-v2-alert__heading {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-v2-alert__heading strong {
    color: #191b2e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.profile-v2-alert__heading span {
    color: #777d90;
    font-size: 12px;
    line-height: 1.4;
}

.profile-v2-alert__badge {
    padding: 6px 10px;
    color: #46546d;
    background: #e8edf5;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.profile-v2-alert__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b8fa0;
    transition: transform .2s ease;
}

.profile-v2-alert[open] .profile-v2-alert__chevron {
    transform: rotate(180deg);
}

.profile-v2-alert__body {
    padding: 16px;
    border-top: 1px solid #e5e9f0;
    background: #fff;
}

.profile-v2-alert__message {
    margin-bottom: 14px;
    color: #656b7d;
    font-size: 13px;
    line-height: 1.5;
}

.profile-v2-alert__message strong {
    display: block;
    margin-bottom: 3px;
    color: #292c3e;
}

.profile-v2-alert__message p {
    margin: 0;
}

.profile-v2-alert__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.profile-v2-alert__button {
    width: auto;
    max-width: 100%;
    min-height: 46px;
    display: inline-grid;
    grid-template-columns: 32px auto 16px;
    align-items: center;
    gap: 9px;
    padding: 7px 11px 7px 8px;
    border: 0;
    border-radius: 10px;
    color: #fff !important;
    background: #53627c;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(83, 98, 124, .22);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.profile-v2-alert__button:hover,
.profile-v2-alert__button:focus-visible {
    color: #fff !important;
    background: #46546d;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(83, 98, 124, .28);
}

.profile-v2-alert__button:focus-visible {
    outline: 3px solid rgba(83, 98, 124, .22);
    outline-offset: 2px;
}

.profile-v2-alert__button:active {
    transform: translateY(0);
}

.profile-v2-alert__button-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    font-size: 14px;
}

.profile-v2-alert__button-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.profile-v2-alert__button-content strong {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.profile-v2-alert__button-content small {
    color: rgba(255, 255, 255, .72);
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
}

.profile-v2-alert__button-content--single {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}

.profile-v2-alert__button-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* ===== Danger ===== */

.profile-v2-alert--danger {
    border-color: #eadcdf;
    border-left-color: #dc3942;
}

.profile-v2-alert--danger .profile-v2-alert__summary {
    background: #fffafa;
}

.profile-v2-alert--danger .profile-v2-alert__icon {
    color: #d9363e;
    background: #ffe8ea;
}

.profile-v2-alert--danger .profile-v2-alert__badge {
    color: #ba2d34;
    background: #ffe6e8;
}

.profile-v2-alert--danger .profile-v2-alert__body {
    border-top-color: #f1e7e8;
}

.profile-v2-alert__button--danger {
    color: #fff !important;
    background: #dc3942;
    box-shadow: 0 5px 14px rgba(220, 57, 66, .20);
}

.profile-v2-alert__button--danger:hover,
.profile-v2-alert__button--danger:focus-visible {
    color: #fff !important;
    background: #c92f38;
    box-shadow: 0 8px 20px rgba(220, 57, 66, .26);
}

/* ===== Graphite blue warning ===== */

.profile-v2-alert--warning {
    border-color: #dce1e9;
    border-left-color: #53627c;
}

.profile-v2-alert--warning .profile-v2-alert__summary {
    background: #f8f9fc;
}

.profile-v2-alert--warning .profile-v2-alert__icon {
    color: #53627c;
    background: #e8edf5;
}

.profile-v2-alert--warning .profile-v2-alert__badge {
    color: #46546d;
    background: #e8edf5;
}

.profile-v2-alert--warning .profile-v2-alert__body {
    border-top-color: #e5e9f0;
}

.profile-v2-alert__button--warning {
    color: #fff !important;
    background: #53627c;
    box-shadow: 0 5px 14px rgba(83, 98, 124, .22);
}

.profile-v2-alert__button--warning:hover,
.profile-v2-alert__button--warning:focus-visible {
    color: #fff !important;
    background: #46546d;
    box-shadow: 0 8px 20px rgba(83, 98, 124, .28);
}

/* ===== Info ===== */

.profile-v2-alert--info {
    border-color: #dce5f1;
    border-left-color: #60789a;
}

.profile-v2-alert--info .profile-v2-alert__summary {
    background: #f8fafd;
}

.profile-v2-alert--info .profile-v2-alert__icon {
    color: #60789a;
    background: #eaf0f7;
}

.profile-v2-alert--info .profile-v2-alert__badge {
    color: #526a8b;
    background: #eaf0f7;
}

.profile-v2-alert--info .profile-v2-alert__body {
    border-top-color: #e5ebf3;
}

/* =========================================================
   SETTING ATTENTION
   ========================================================= */
.settings-v2-card.is-attention {
    border-color: #6756c8 !important;
    box-shadow:
        0 0 0 4px rgba(103, 86, 200, .18),
        0 12px 32px rgba(37, 40, 59, .14);
    animation: settingAttentionPulse .65s ease-in-out 3;
}

@keyframes settingAttentionPulse {
    0%,
    100% {
        transform: scale(1);
        background-color: #fff;
    }

    50% {
        transform: scale(1.008);
        background-color: #f4f1ff;
        box-shadow:
            0 0 0 6px rgba(103, 86, 200, .22),
            0 14px 34px rgba(37, 40, 59, .16);
    }
}

@media (max-width: 767.98px) {
    .profile-v2-alert__summary {
        grid-template-columns: 40px minmax(0, 1fr) 20px;
        gap: 10px;
        padding: 12px;
    }

    .profile-v2-alert__badge {
        display: none;
    }

    .profile-v2-alert__body {
        padding: 14px 12px;
    }

    .profile-v2-alert__button {
        min-width: 0;
    }
}
