/* FE1004_R2_SINGLE_COLUMN_PUSH_MODAL
   Final override loaded last in head.
   Matches/exceeds legacy Kisure selector specificity.
   Push topic data and JS hooks remain unchanged. */

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

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

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

html[data-kisure-design="865"] body
.notification-subscribe-modal[data-notification-subscribe-modal]
.notification-subscribe-modal__hero {
    box-sizing: border-box !important;
    flex: 0 0 48px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 7px 42px 7px 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #E8F7F7 !important;
    color: #102d2f !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(11,156,160,.17) !important;
}

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

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

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

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

html[data-kisure-design="865"] body
.notification-subscribe-modal[data-notification-subscribe-modal]
.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-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    letter-spacing: -.01em !important;
    font-weight: 800 !important;
    color: #102d2f !important;
    -webkit-text-fill-color: #102d2f !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

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

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

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

html[data-kisure-design="865"] body
.notification-subscribe-modal[data-notification-subscribe-modal]
.notification-subscribe-modal__grid {
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 390px !important;
    margin: 0 !important;
    padding: 0 2px 0 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    grid-auto-rows: minmax(38px,auto) !important;
    align-content: start !important;
    gap: 5px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
}

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

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

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

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

html[data-kisure-design="865"] body
.notification-subscribe-modal[data-notification-subscribe-modal]
.notification-topic > strong {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.15 !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[data-notification-subscribe-modal]
.notification-subscribe-modal__actions {
    box-sizing: border-box !important;
    flex: 0 0 46px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 8px -10px 0 !important;
    padding: 6px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
    flex-wrap: nowrap !important;
    position: static !important;
    overflow: visible !important;
    border-top: 1px solid #e1eded !important;
    background: #fff !important;
}

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

html[data-kisure-design="865"] body
.notification-subscribe-modal[data-notification-subscribe-modal]
.notification-link-button,
html[data-kisure-design="865"] body
.notification-subscribe-modal[data-notification-subscribe-modal]
.notification-subscribe-modal__actions .site-button {
    box-sizing: border-box !important;
    min-height: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    font-weight: 760 !important;
    white-space: nowrap !important;
}

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

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

/* Dark mode */
html[data-kisure-design="865"][data-theme="dark"] body
.notification-subscribe-modal[data-notification-subscribe-modal]
.notification-subscribe-modal__card.notification-subscribe-modal__card--compact {
    background: #1c2424 !important;
    border-color: rgba(11,156,160,.34) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.46) !important;
}

html[data-kisure-design="865"][data-theme="dark"] body
.notification-subscribe-modal[data-notification-subscribe-modal]
.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[data-notification-subscribe-modal]
.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[data-notification-subscribe-modal]
.notification-subscribe-modal__content,
html[data-kisure-design="865"][data-theme="dark"] body
.notification-subscribe-modal[data-notification-subscribe-modal]
.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[data-notification-subscribe-modal]
.notification-subscribe-modal__topics-heading h3 {
    color: #f3fbfb !important;
}

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

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

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

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

@media (max-width: 500px) {
    html[data-kisure-design="865"] body
    .notification-subscribe-modal[data-notification-subscribe-modal]
    .notification-subscribe-modal__card.notification-subscribe-modal__card--compact {
        width: calc(100vw - 12px) !important;
        max-width: none !important;
        max-height: calc(100dvh - 12px) !important;
        border-radius: 12px !important;
    }

    html[data-kisure-design="865"] body
    .notification-subscribe-modal[data-notification-subscribe-modal]
    .notification-subscribe-modal__grid {
        max-height: calc(100dvh - 135px) !important;
    }
}

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