/* =========================================================
 * Push Notification Settings
 * ========================================================= */

.push-notification-settings {
    display: flex;
    flex-direction: column;
    gap: 18px;

    padding: 4px 0 2px;

    background: transparent;
}


/* ---------------------------------------------------------
 * Header copy
 * --------------------------------------------------------- */

.push-notification-settings__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}


.push-notification-settings__title {
    margin: 0;

    color: #172033;

    font-size: clamp(
        1.45rem,
        4.8vw,
        1.8rem
    );

    font-weight: 800;
    line-height: 1.2;
}


.push-notification-settings__description {
    margin: 10px 0 0;

    color: #4b5563;

    font-size: clamp(
        1rem,
        3.8vw,
        1.12rem
    );

    line-height: 1.55;
}


/* ---------------------------------------------------------
 * Actions
 * --------------------------------------------------------- */

.push-notification-settings__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;

    width: 100%;
}


.push-notification-settings__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;
    padding: 13px 20px;

    border-radius: 14px;

    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;

    cursor: pointer;

    touch-action: manipulation;

    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        background-color 140ms ease,
        border-color 140ms ease,
        opacity 140ms ease;
}


.push-notification-settings__button:hover:not(
    :disabled
) {
    transform: translateY(-1px);
}


.push-notification-settings__button:active:not(
    :disabled
) {
    transform: translateY(0);
}


.push-notification-settings__button:focus-visible {
    outline: 3px solid
        rgba(22, 119, 232, 0.28);

    outline-offset: 3px;
}


.push-notification-settings__button:disabled {
    cursor: wait;

    opacity: 0.65;
}


/* ---------------------------------------------------------
 * Primary action
 * --------------------------------------------------------- */

.push-notification-settings__button--primary {
    border: 1px solid #1677e8;

    background: #1677e8;
    color: #ffffff;

    box-shadow:
        0 8px 20px
        rgba(22, 119, 232, 0.24);
}


.push-notification-settings__button--primary:hover:not(
    :disabled
) {
    border-color: #0f6edb;

    background: #0f6edb;

    box-shadow:
        0 10px 24px
        rgba(22, 119, 232, 0.3);
}


/* ---------------------------------------------------------
 * Secondary action
 * --------------------------------------------------------- */

.push-notification-settings__button--secondary {
    border: 1px solid #cbd5e1;

    background: #ffffff;
    color: #334155;

    box-shadow:
        0 4px 12px
        rgba(15, 23, 42, 0.06);
}


.push-notification-settings__button--secondary:hover:not(
    :disabled
) {
    border-color: #94a3b8;

    background: #f8fafc;
}


/* ---------------------------------------------------------
 * Status message
 * --------------------------------------------------------- */

.push-notification-settings__status {
    min-height: 24px;
    margin: -2px 0 0;

    color: #64748b;

    font-size: 0.92rem;
    line-height: 1.45;
}


.push-notification-settings__status[
    data-state="success"
] {
    color: #15803d;
}


.push-notification-settings__status[
    data-state="error"
] {
    color: #b91c1c;
}


.push-notification-settings__status[
    data-state="info"
] {
    color: #64748b;
}


/* =========================================================
 * Bootstrap Modal Refinements
 * ========================================================= */

#pushNotificationSettingsModal
.modal-dialog {
    margin:
        calc(
            env(safe-area-inset-top) +
            16px
        )
        16px
        calc(
            env(safe-area-inset-bottom) +
            16px
        );
}


#pushNotificationSettingsModal
.modal-content {
    overflow: hidden;

    border: 0;
    border-radius: 22px;

    box-shadow:
        0 22px 60px
        rgba(15, 23, 42, 0.24);
}


#pushNotificationSettingsModal
.modal-header {
    padding: 20px 22px;

    border-bottom:
        1px solid #e5e7eb;
}


#pushNotificationSettingsModal
.modal-title {
    color: #172033;

    font-weight: 800;
}


#pushNotificationSettingsModal
.modal-body {
    padding: 24px 22px 26px;
}


#pushNotificationSettingsModal
.btn-close {
    width: 1.1rem;
    height: 1.1rem;

    margin: 0;

    opacity: 0.55;
}


#pushNotificationSettingsModal
.btn-close:hover {
    opacity: 0.85;
}


/* =========================================================
 * Larger screens
 * ========================================================= */

@media (min-width: 576px) {
    #pushNotificationSettingsModal
    .modal-dialog {
        max-width: 520px;
        margin-right: auto;
        margin-left: auto;
    }

    .push-notification-settings__actions {
        flex-direction: row;
    }

    .push-notification-settings__button {
        width: auto;
        min-width: 190px;
    }
}

#pushNotificationSettingsModal
.push-notification-modal__header {
    display: flex;
    align-items: center;

    width: 100%;
}


#pushNotificationSettingsModal
.push-notification-modal__title-group {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
}


#pushNotificationSettingsModal
.push-notification-modal__close {
    flex: 0 0 auto;

    margin-left: auto;
    margin-right: 0;

    padding: 12px;

    border-radius: 50%;

    opacity: 0.6;
}


#pushNotificationSettingsModal
.push-notification-modal__close:hover {
    background-color:
        rgba(15, 23, 42, 0.06);

    opacity: 0.9;
}


#pushNotificationSettingsModal
.push-notification-modal__close:focus-visible {
    outline:
        3px solid
        rgba(22, 119, 232, 0.25);

    outline-offset: 2px;
}