/* FE1003_PUSH_MODAL_40_PERCENT_COMPACT
   High-specificity override for Kisure design 865.
   Keeps push logic intact while removing the oversized promotional treatment. */

html[data-kisure-design="865"] body .notification-subscribe-modal {
    padding: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: auto !important;
    background: rgba(7, 22, 24, .66) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}

html[data-kisure-design="865"] body
.notification-subscribe-modal__card.notification-subscribe-modal__card--compact {
    width: min(680px, calc(100vw - 24px)) !important;
    max-width: 680px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: min(520px, calc(100dvh - 24px)) !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 16px !important;
    border: 1px solid rgba(11, 156, 160, .22) !important;
    background: #fff !important;
    box-shadow: 0 18px 52px rgba(8, 30, 32, .22) !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__close {
    position: absolute !important;
    top: 9px !important;
    right: 9px !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border-radius: 50% !important;
    z-index: 8 !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #123436 !important;
    border: 1px solid #c7dddd !important;
    box-shadow: none !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__hero {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 52px 11px 16px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 13px !important;
    overflow: hidden !important;
    background: #E8F7F7 !important;
    color: #102d2f !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(11, 156, 160, .16) !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__hero::before,
html[data-kisure-design="865"] body .notification-subscribe-modal__hero::after {
    display: none !important;
    content: none !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__brand {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__logo {
    display: block !important;
    width: 92px !important;
    max-width: 92px !important;
    height: 31px !important;
    object-fit: contain !important;
    margin: 0 !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__brand > span,
html[data-kisure-design="865"] body .notification-subscribe-modal__hero > p {
    display: none !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__hero h2 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.18 !important;
    letter-spacing: -.015em !important;
    font-weight: 800 !important;
    color: #102d2f !important;
    -webkit-text-fill-color: #102d2f !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    padding: 13px 14px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    background: #fff !important;
    color: #102d2f !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__topics-heading {
    flex: 0 0 auto !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__topics-heading h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #153334 !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__grid {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(44px, auto) !important;
    align-content: start !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    scrollbar-width: thin !important;
}

html[data-kisure-design="865"] body .notification-topic {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 44px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 9px !important;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    border: 1px solid #c7dddd !important;
    background: #fff !important;
    color: #173334 !important;
    box-shadow: none !important;
}

html[data-kisure-design="865"] body .notification-topic:hover {
    border-color: #79cacc !important;
    background: #f7fdfd !important;
    transform: none !important;
}

html[data-kisure-design="865"] body .notification-topic > input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html[data-kisure-design="865"] body .notification-topic > span {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: #0B9CA0 !important;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

html[data-kisure-design="865"] body .notification-topic > strong {
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.18 !important;
    font-weight: 760 !important;
    color: #142f31 !important;
    -webkit-text-fill-color: #142f31 !important;
    white-space: normal !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-overflow: clip !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__actions {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 11px -14px 0 !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    position: static !important;
    border-top: 1px solid #e1eded !important;
    background: #fff !important;
}

html[data-kisure-design="865"] body .notification-select-all-button {
    display: none !important;
}

html[data-kisure-design="865"] body .notification-link-button,
html[data-kisure-design="865"] body .notification-subscribe-modal__actions .site-button {
    min-height: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    font-size: 12.5px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
}

html[data-kisure-design="865"] body .notification-link-button {
    padding: 0 10px !important;
    border: 0 !important;
    background: transparent !important;
    color: #087C78 !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__actions .site-button {
    padding: 0 14px !important;
    border: 1px solid #0B9CA0 !important;
    background: #0B9CA0 !important;
    color: #fff !important;
}

html[data-kisure-design="865"] body .notification-subscribe-modal__actions .site-button:hover,
html[data-kisure-design="865"] body .notification-subscribe-modal__actions .site-button:focus-visible {
    background: #087C78 !important;
    border-color: #087C78 !important;
    color: #fff !important;
}

html[data-kisure-design="865"] body .notification-select-all-button__tooltip {
    display: none !important;
}

/* Dark mode remains Kisure-branded rather than generic black. */
html[data-kisure-design="865"][data-theme="dark"] body
.notification-subscribe-modal__card.notification-subscribe-modal__card--compact {
    background: #1c2424 !important;
    border-color: rgba(11, 156, 160, .32) !important;
    box-shadow: 0 20px 58px rgba(0, 0, 0, .46) !important;
}

html[data-kisure-design="865"][data-theme="dark"] body .notification-subscribe-modal__hero {
    background: #153739 !important;
    border-bottom-color: rgba(11, 156, 160, .28) !important;
}

html[data-kisure-design="865"][data-theme="dark"] body .notification-subscribe-modal__hero h2 {
    color: #f4ffff !important;
    -webkit-text-fill-color: #f4ffff !important;
}

html[data-kisure-design="865"][data-theme="dark"] body .notification-subscribe-modal__content,
html[data-kisure-design="865"][data-theme="dark"] body .notification-subscribe-modal__actions {
    background: #1c2424 !important;
    color: #f2fafa !important;
    border-color: #364747 !important;
}

html[data-kisure-design="865"][data-theme="dark"] body .notification-subscribe-modal__topics-heading h3 {
    color: #f3fbfb !important;
}

html[data-kisure-design="865"][data-theme="dark"] body .notification-topic {
    background: #242d2d !important;
    border-color: #3b5050 !important;
    color: #f2fafa !important;
}

html[data-kisure-design="865"][data-theme="dark"] body .notification-topic:hover {
    background: #293737 !important;
    border-color: #568184 !important;
}

html[data-kisure-design="865"][data-theme="dark"] body .notification-topic > strong {
    color: #f7ffff !important;
    -webkit-text-fill-color: #f7ffff !important;
}

html[data-kisure-design="865"][data-theme="dark"] body .notification-link-button {
    color: #8be9e6 !important;
}

html[data-kisure-design="865"][data-theme="dark"] body .notification-subscribe-modal__close {
    background: #204548 !important;
    border-color: #5aa9a8 !important;
    color: #fff !important;
}

/* Tablet / narrow desktop */
@media (max-width: 720px) {
    html[data-kisure-design="865"] body .notification-subscribe-modal {
        padding: 8px !important;
    }

    html[data-kisure-design="865"] body
    .notification-subscribe-modal__card.notification-subscribe-modal__card--compact {
        width: min(620px, calc(100vw - 16px)) !important;
        max-width: 620px !important;
        max-height: calc(100dvh - 16px) !important;
        border-radius: 14px !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__hero {
        padding: 10px 48px 10px 13px !important;
        gap: 10px !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__logo {
        width: 82px !important;
        max-width: 82px !important;
        height: 28px !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__hero h2 {
        font-size: 15px !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__content {
        padding: 10px 10px 0 !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__grid {
        gap: 5px !important;
    }

    html[data-kisure-design="865"] body .notification-topic {
        min-height: 42px !important;
        grid-template-columns: 28px minmax(0, 1fr) !important;
        gap: 7px !important;
        padding: 5px 7px !important;
    }

    html[data-kisure-design="865"] body .notification-topic > span {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }

    html[data-kisure-design="865"] body .notification-topic > strong {
        font-size: 11.5px !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__actions {
        margin: 9px -10px 0 !important;
        padding: 9px 10px !important;
    }
}

/* Phones: keep two columns while there is enough width; long labels wrap safely. */
@media (max-width: 520px) {
    html[data-kisure-design="865"] body
    .notification-subscribe-modal__card.notification-subscribe-modal__card--compact {
        width: calc(100vw - 12px) !important;
        max-width: none !important;
        max-height: calc(100dvh - 12px) !important;
        overflow-y: auto !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__close {
        top: 7px !important;
        right: 7px !important;
        width: 31px !important;
        height: 31px !important;
        min-width: 31px !important;
        min-height: 31px !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__hero {
        padding-right: 43px !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__topics-heading h3 {
        font-size: 13px !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__actions {
        position: sticky !important;
        bottom: 0 !important;
    }
}

@media (max-width: 380px) {
    html[data-kisure-design="865"] body .notification-subscribe-modal__grid {
        grid-template-columns: 1fr !important;
    }

    html[data-kisure-design="865"] body .notification-subscribe-modal__actions {
        display: grid !important;
        grid-template-columns: 1fr 1.25fr !important;
    }

    html[data-kisure-design="865"] body .notification-link-button,
    html[data-kisure-design="865"] body .notification-subscribe-modal__actions .site-button {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-kisure-design="865"] body .notification-subscribe-modal *,
    html[data-kisure-design="865"] body .notification-subscribe-modal *::before,
    html[data-kisure-design="865"] body .notification-subscribe-modal *::after {
        transition: none !important;
        animation: none !important;
    }
}
