/* ==========================================================================
   Fundamental Health Web — Notifications
   Notification center, history, preferences and Web Push UI.
   ========================================================================== */

@media (max-width: 620px) {
.fh-preference-row {
        grid-template-columns: 1fr;
    }

.fh-preference-row__channels {
        flex-wrap: wrap;
    }
}

/* ================================================== */
/* NOTIFICATIONS                                      */
/* ================================================== */
.fh-notification-panel,
[data-push-controls] {
    border:
        1px solid
        var(--fh-border);

    border-radius:
        var(--fh-radius-lg);

    background:
        var(--fh-surface);

    box-shadow:
        var(--fh-shadow-sm);
}

/* -------------------------------------------------- */
/* Notification settings panel                        */
/* -------------------------------------------------- */
.fh-notification-panel {
    display: grid;

    gap: 18px;

    padding: 22px;
}

.fh-notification-panel__header {
    display: flex;

    align-items: flex-start;

    gap: 12px;
}

.fh-notification-panel__icon {
    display: inline-flex;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    align-items: center;
    justify-content: center;

    border-radius:
        var(--fh-radius-md);

    background:
        var(--fh-primary-soft);

    color:
        var(--fh-primary);
}

.fh-notification-panel__title {
    margin: 0;

    color:
        var(--fh-text);

    font-size: 1.1rem;
    line-height: 1.3;
}

.fh-notification-panel__description {
    max-width: 720px;

    margin:
        5px 0 0;

    color:
        var(--fh-text-muted);

    font-size: 0.88rem;
    line-height: 1.55;
}

/* -------------------------------------------------- */
/* Notification preferences                           */
/* -------------------------------------------------- */
.fh-preference-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap:
        14px
        18px;

    padding: 16px;

    border:
        1px solid
        var(--fh-border);

    border-radius:
        var(--fh-radius-md);

    background:
        var(--fh-surface-subtle);
}

.fh-preference-row__content {
    min-width: 0;
}

.fh-preference-row__title {
    margin: 0;

    color:
        var(--fh-text);

    font-size: 0.93rem;
    line-height: 1.35;
}

.fh-preference-row__description {
    max-width: 620px;

    margin:
        4px 0 0;

    color:
        var(--fh-text-muted);

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

.fh-preference-row__channels {
    display: flex;

    align-items: center;

    gap: 8px;
}

.fh-toggle-label {
    display: inline-flex;

    min-height: 36px;

    align-items: center;

    gap: 7px;

    padding:
        7px 10px;

    border:
        1px solid
        var(--fh-border);

    border-radius:
        var(--fh-radius-sm);

    background:
        var(--fh-surface);

    color:
        var(--fh-text);

    font-size: 0.82rem;
    font-weight: 600;

    cursor: pointer;

    user-select: none;
}

.fh-toggle-label:hover {
    border-color:
        var(--fh-primary);
}

.fh-toggle-label input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color:
        var(--fh-primary);

    cursor: pointer;
}

.fh-toggle-label__icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    color:
        var(--fh-text-muted);
}

.fh-preference-row__feedback {
    grid-column:
        1 / -1;

    min-width: 0;
}

.fh-preference-row__feedback
.fh-alert {
    margin: 0;
}

/* -------------------------------------------------- */
/* Web Push                                            */
/* -------------------------------------------------- */
[data-push-controls] {
    padding: 22px;
}

[data-push-controls] > h2 {
    margin:
        0 0 8px;

    color:
        var(--fh-text);

    font-size: 1.1rem;
    line-height: 1.3;
}

[data-push-status] {
    margin:
        14px 0 0;

    padding:
        13px 14px;

    border:
        1px solid
        var(--fh-border);

    border-radius:
        var(--fh-radius-md);

    background:
        var(--fh-surface-subtle);

    color:
        var(--fh-text);

    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.45;
}

[data-push-hint] {
    margin:
        8px 0 0;

    color:
        var(--fh-text-muted);

    font-size: 0.82rem;
    line-height: 1.5;
}

[data-push-controls] > button {
    display: inline-flex;

    min-height: 38px;

    align-items: center;
    justify-content: center;

    margin:
        14px 8px 0 0;

    padding:
        8px 13px;

    border:
        1px solid
        var(--fh-border);

    border-radius:
        var(--fh-radius-sm);

    font: inherit;

    font-size: 0.84rem;
    font-weight: 650;

    cursor: pointer;

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

[data-push-controls] > button[hidden] {
    display: none;
}

[data-push-enable] {
    border-color:
        var(--fh-primary);

    background:
        var(--fh-primary);

    color: #fff;
}

[data-push-enable]:hover {
    opacity: 0.92;
}

[data-push-disable] {
    background:
        var(--fh-surface);

    color:
        var(--fh-text);
}

[data-push-disable]:hover {
    border-color:
        var(--fh-primary);

    color:
        var(--fh-primary);
}

[data-push-test] {
    background:
        var(--fh-surface);

    color:
        var(--fh-primary);
}

[data-push-test]:hover {
    border-color:
        var(--fh-primary);

    background:
        var(--fh-primary-soft);
}

[data-push-controls] > button:disabled {
    opacity: 0.55;

    cursor: wait;
}

/* -------------------------------------------------- */
/* Notifications responsive                           */
/* -------------------------------------------------- */
@media (max-width: 700px) {
.fh-notification-panel,
[data-push-controls] {
        padding: 17px;
    }

.fh-preference-row {
        grid-template-columns:
            minmax(0, 1fr);

        align-items: stretch;
    }

.fh-preference-row__channels {
        align-items: stretch;

        flex-direction: column;
    }

.fh-toggle-label {
        width: 100%;
    }

.fh-preference-row__channels
    .fh-button {
        width: 100%;
    }

[data-push-controls] > button {
        width: 100%;

        margin:
            9px 0 0;
    }
}

@media (max-width: 460px) {
.fh-notification-panel__header {
        gap: 10px;
    }

.fh-notification-panel__icon {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

.fh-preference-row {
        padding: 13px;
    }
}

/* ==========================================================================
   Notifications — navbar center
   ========================================================================== */
.fh-notification-center {
    position: relative;
    display: flex;
    align-items: center;
}

.fh-notification-center > summary {
    list-style: none;
}

.fh-notification-center > summary::-webkit-details-marker {
    display: none;
}

.fh-notification-center__badge {
    position: absolute;
    top: -9px;
    right: -11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #c74444;
    color: #ffffff;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.fh-notification-center__popover {
    position: absolute;
    z-index: 120;
    top: calc(100% + 12px);
    right: 0;
    width: min(390px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 110px));
    overflow: hidden;
    border: 1px solid rgba(18, 107, 89, 0.14);
    border-radius: 20px;
    background: #ffffff;
    color: #17221f;
    box-shadow:
        0 24px 70px rgba(22, 42, 36, 0.18),
        0 4px 14px rgba(22, 42, 36, 0.08);
}

.fh-notification-center__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    border-bottom: 1px solid rgba(18, 107, 89, 0.1);
}

.fh-notification-center__header > div {
    display: grid;
    gap: 2px;
}

.fh-notification-center__title {
    font-size: 0.98rem;
    line-height: 1.25;
}

.fh-notification-center__subtitle {
    color: rgba(23, 34, 31, 0.58);
    font-size: 0.76rem;
}

.fh-notification-center__all-link {
    flex: 0 0 auto;
    color: #126b59;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.fh-notification-center__all-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fh-notification-center__list {
    max-height: 430px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.fh-notification-center__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 11px;
    min-width: 0;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(18, 107, 89, 0.08);
    color: inherit;
    text-decoration: none;
}

a.fh-notification-center__item {
    transition:
        background 150ms ease,
        color 150ms ease;
}

@media (hover: hover) {
a.fh-notification-center__item:hover {
        background: rgba(18, 107, 89, 0.055);
    }
}

.fh-notification-center__item-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    background: rgba(18, 107, 89, 0.09);
    color: #126b59;
}

.fh-notification-center__new-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #c74444;
}

.fh-notification-center__item-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.fh-notification-center__item-title {
    overflow: hidden;
    color: #17221f;
    font-size: 0.84rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.fh-notification-center__item-body {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(23, 34, 31, 0.68);
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.fh-notification-center__item-time {
    color: rgba(23, 34, 31, 0.46);
    font-size: 0.7rem;
    line-height: 1.3;
}

.fh-notification-center__item-time time {
    color: inherit;
}

.fh-notification-center__item-arrow {
    display: inline-flex;
    align-items: center;
    align-self: center;
    color: rgba(23, 34, 31, 0.36);
}

.fh-notification-center__empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 34px 24px;
    text-align: center;
}

.fh-notification-center__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    border-radius: 15px;
    background: rgba(18, 107, 89, 0.08);
    color: #126b59;
}

.fh-notification-center__empty > span:last-child {
    color: rgba(23, 34, 31, 0.6);
    font-size: 0.82rem;
}

.fh-notification-center__footer {
    padding: 9px;
    border-top: 1px solid rgba(18, 107, 89, 0.09);
    background: rgba(18, 107, 89, 0.025);
}

.fh-notification-center__footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 11px;
    color: #126b59;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.fh-notification-center__footer-link:hover {
    background: rgba(18, 107, 89, 0.07);
}

/* ==========================================================================
   Notifications — page layout
   ========================================================================== */
.fh-notifications-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.8fr);
    align-items: start;
    gap: 24px;
}

.fh-notifications-layout__history,
.fh-notifications-layout__settings {
    min-width: 0;
}

.fh-notifications-layout__settings {
    display: grid;
    gap: 20px;
}

/* ==========================================================================
   Notifications — history
   ========================================================================== */
.fh-notification-history {
    overflow: hidden;
    border: 1px solid rgba(18, 107, 89, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(21, 45, 39, 0.055);
}

.fh-notification-history__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 21px 22px;
    border-bottom: 1px solid rgba(18, 107, 89, 0.1);
}

.fh-notification-history__heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.fh-notification-history__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: rgba(18, 107, 89, 0.09);
    color: #126b59;
}

.fh-notification-history__title {
    margin: 1px 0 4px;
    font-size: 1.08rem;
}

.fh-notification-history__description {
    max-width: 560px;
    margin: 0;
    color: rgba(23, 34, 31, 0.62);
    font-size: 0.86rem;
    line-height: 1.5;
}

.fh-notification-history__read-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: #126b59;
    font-size: 0.78rem;
    font-weight: 700;
}

.fh-notification-timeline {
    display: grid;
}

.fh-notification-entry {
    position: relative;
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: start;
    gap: 14px;
    min-width: 0;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(18, 107, 89, 0.08);
    color: inherit;
    text-decoration: none;
    transition:
        background 150ms ease,
        border-color 150ms ease;
}

.fh-notification-entry:last-child {
    border-bottom: 0;
}

a.fh-notification-entry {
    cursor: pointer;
}

@media (hover: hover) {
a.fh-notification-entry:hover {
        background: rgba(18, 107, 89, 0.045);
    }
}

.fh-notification-entry--new {
    background:
        linear-gradient(
            90deg,
            rgba(18, 107, 89, 0.075),
            rgba(18, 107, 89, 0.018)
        );
}

.fh-notification-entry__marker {
    position: relative;
    display: inline-flex;
}

.fh-notification-entry__marker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(18, 107, 89, 0.09);
    color: #126b59;
}

.fh-notification-entry__marker-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #c74444;
}

.fh-notification-entry__content {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.fh-notification-entry__topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fh-notification-entry__title {
    color: #17221f;
    font-size: 0.96rem;
    line-height: 1.35;
}

.fh-notification-entry__body {
    max-width: 720px;
    color: rgba(23, 34, 31, 0.72);
    font-size: 0.88rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.fh-notification-entry__meta {
    color: rgba(23, 34, 31, 0.48);
    font-size: 0.76rem;
    line-height: 1.35;
}

.fh-notification-entry__meta time {
    color: inherit;
}

.fh-notification-entry__arrow {
    display: inline-flex;
    align-items: center;
    align-self: center;
    color: rgba(23, 34, 31, 0.38);
}

.fh-notification-history__empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 56px 24px;
    text-align: center;
}

.fh-notification-history__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 5px;
    border-radius: 18px;
    background: rgba(18, 107, 89, 0.08);
    color: #126b59;
}

.fh-notification-history__empty h3 {
    margin: 0;
    font-size: 1rem;
}

.fh-notification-history__empty p {
    max-width: 430px;
    margin: 0;
    color: rgba(23, 34, 31, 0.6);
    font-size: 0.86rem;
    line-height: 1.5;
}

.fh-notification-history__limit {
    margin: 0;
    padding: 12px 20px;
    border-top: 1px solid rgba(18, 107, 89, 0.08);
    color: rgba(23, 34, 31, 0.5);
    font-size: 0.76rem;
    text-align: center;
}

/* ==========================================================================
   Notifications — push card
   ========================================================================== */
.fh-notification-panel--push {
    padding: 20px;
    border: 1px solid rgba(18, 107, 89, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(21, 45, 39, 0.045);
}

.fh-notification-panel--push [data-push-controls] {
    display: grid;
    gap: 10px;
}

.fh-notification-panel--push [data-push-controls] h2 {
    margin: 0;
    font-size: 1rem;
}

.fh-notification-panel--push [data-push-controls] p {
    margin: 0;
    line-height: 1.5;
}

.fh-notification-panel--push [data-push-status] {
    color: rgba(23, 34, 31, 0.72);
    font-size: 0.86rem;
}

.fh-notification-panel--push [data-push-hint] {
    color: rgba(23, 34, 31, 0.56);
    font-size: 0.78rem;
}

.fh-notification-panel--push [data-push-enable],
.fh-notification-panel--push [data-push-disable],
.fh-notification-panel--push [data-push-test] {
    width: fit-content;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.fh-notification-panel--push [data-push-enable],
.fh-notification-panel--push [data-push-test] {
    border: 1px solid #126b59;
    background: #126b59;
    color: #ffffff;
}

.fh-notification-panel--push [data-push-disable] {
    border: 1px solid rgba(18, 107, 89, 0.18);
    background: #ffffff;
    color: #126b59;
}

/* ==========================================================================
   Notifications — responsive
   ========================================================================== */
@media (max-width: 980px) {
.fh-notifications-layout {
        grid-template-columns: 1fr;
    }

.fh-notifications-layout__history {
        order: 1;
    }

.fh-notifications-layout__settings {
        order: 2;
    }
}

@media (max-width: 720px) {
.fh-notification-center {
        position: static;
    }

.fh-notification-center__popover {
        position: fixed;
        z-index: 1000;
        top:
            calc(
                env(safe-area-inset-top, 0px)
                + 72px
            );
        right:
            max(
                10px,
                env(safe-area-inset-right, 0px)
            );
        left:
            max(
                10px,
                env(safe-area-inset-left, 0px)
            );
        width: auto;
        max-height:
            calc(
                100dvh
                - env(safe-area-inset-top, 0px)
                - env(safe-area-inset-bottom, 0px)
                - 88px
            );
        border-radius: 18px;
    }

.fh-notification-center__list {
        max-height:
            calc(
                100dvh
                - env(safe-area-inset-top, 0px)
                - env(safe-area-inset-bottom, 0px)
                - 230px
            );
    }

.fh-notification-center__item {
        padding: 13px 14px;
    }

.fh-notification-history {
        border-radius: 18px;
    }

.fh-notification-history__header {
        align-items: flex-start;
        padding: 17px;
    }

.fh-notification-history__description {
        font-size: 0.82rem;
    }

.fh-notification-entry {
        gap: 11px;
        padding: 16px;
    }

.fh-notification-entry__marker-icon {
        width: 36px;
        height: 36px;
    }

.fh-notification-entry__body {
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
.fh-notification-center__label {
        display: none;
    }

.fh-notification-history__header {
        display: grid;
        gap: 12px;
    }

.fh-notification-history__read-status,
.fh-notification-history__header > .fh-badge {
        width: fit-content;
        margin-left: 55px;
    }

.fh-notification-entry {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

.fh-notification-entry__arrow {
        display: none;
    }

.fh-notification-entry__topline {
        align-items: flex-start;
    }

.fh-notification-panel--push {
        padding: 17px;
    }

.fh-notification-panel--push [data-push-enable],
.fh-notification-panel--push [data-push-disable],
.fh-notification-panel--push [data-push-test] {
        width: 100%;
    }
}

/* ==========================================================================
   Notifications — Safari/iOS trigger hardening
   ========================================================================== */
.fh-notification-center__trigger {
    position: relative;

    display: inline-flex !important;

    min-width: 40px;
    min-height: 40px;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;
    gap: 8px;

    box-sizing: border-box;

    list-style: none;

    color: inherit;

    cursor: pointer;

    user-select: none;
    -webkit-user-select: none;

    -webkit-tap-highlight-color: transparent;

    -webkit-appearance: none;
    appearance: none;
}

.fh-notification-center__trigger::-webkit-details-marker {
    display: none;
}

.fh-notification-center__trigger::marker {
    display: none;
    content: "";
}

.fh-notification-center__bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    flex: 0 0 22px;
    overflow: visible;
    margin: 0;
    padding: 0;
    color: currentColor;
    font-style: normal;
}

.fh-notification-center__bell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    margin: 0;
    padding: 0;
    color: currentColor;
    font-style: normal;
    line-height: 0;
}

.fh-notification-center__bell-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    color: currentColor;
    stroke: currentColor;
}

@media (max-width: 480px) {
.fh-notification-center__trigger {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 10px;
        gap: 0;
    }

.fh-notification-center__label {
        display: none;
    }
}

/* ==========================================================================
   Notifications — delivery preferences
   ========================================================================== */
.fh-notifications-layout__settings
.fh-notification-panel:not(.fh-notification-panel--push) {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(18, 107, 89, 0.12);
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 8px 28px rgba(21, 45, 39, 0.045);
}

.fh-notifications-layout__settings
.fh-notification-panel__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-width: 0;
}

.fh-notifications-layout__settings
.fh-notification-panel__header > div {
    min-width: 0;
}

.fh-notifications-layout__settings
.fh-notification-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    background: rgba(18, 107, 89, 0.09);
    color: #126b59;
}

.fh-notifications-layout__settings
.fh-notification-panel__title {
    margin: 1px 0 5px;
    font-size: 1rem;
    line-height: 1.3;
}

.fh-notifications-layout__settings
.fh-notification-panel__description {
    margin: 0;
    color: rgba(23, 34, 31, 0.64);
    font-size: 0.83rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.fh-notification-settings {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.fh-notifications-layout__settings
.fh-preference-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(18, 107, 89, 0.09);
    border-radius: 15px;
    background: rgba(18, 107, 89, 0.025);
}

.fh-notifications-layout__settings
.fh-preference-row__content {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.fh-notifications-layout__settings
.fh-preference-row__title {
    margin: 0;
    color: #17221f;
    font-size: 0.92rem;
    line-height: 1.35;
}

.fh-notifications-layout__settings
.fh-preference-row__description {
    margin: 0;
    color: rgba(23, 34, 31, 0.62);
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.fh-notifications-layout__settings
.fh-preference-row__channels {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.fh-notifications-layout__settings
.fh-toggle-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
    margin: 0;
    border: 1px solid rgba(18, 107, 89, 0.12);
    border-radius: 11px;
    background: #ffffff;
    color: #17221f;
    cursor: pointer;
}

.fh-notifications-layout__settings
.fh-toggle-label input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: #126b59;
}

.fh-notifications-layout__settings
.fh-toggle-label__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #126b59;
}

.fh-notifications-layout__settings
.fh-preference-row__channels > .fh-button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    justify-content: center;
}

.fh-notifications-layout__settings
.fh-preference-row__feedback {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.fh-notifications-layout__settings
.fh-preference-row__feedback .fh-alert {
    width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

.fh-notifications-layout__settings
.fh-notification-panel > .fh-alert {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
.fh-notifications-layout__settings
    .fh-notification-panel:not(.fh-notification-panel--push) {
        gap: 16px;
        padding: 17px;
        border-radius: 18px;
    }

.fh-notifications-layout__settings
    .fh-notification-panel__header {
        gap: 10px;
    }

.fh-notifications-layout__settings
    .fh-notification-panel__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

.fh-notifications-layout__settings
    .fh-preference-row {
        gap: 12px;
        padding: 13px;
    }

.fh-notifications-layout__settings
    .fh-preference-row__channels {
        grid-template-columns: 1fr;
    }

.fh-notifications-layout__settings
    .fh-preference-row__channels > .fh-button {
        grid-column: 1;
    }

.fh-notifications-layout__settings
    .fh-toggle-label {
        min-height: 44px;
    }
}
