.nde-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--nde-size, 45px);
    height: var(--nde-size, 45px);
    min-width: var(--nde-size, 45px);
    min-height: var(--nde-size, 45px);
    border-radius: var(--nde-radius, 14px);
    background: var(--nde-bg, #e9f7ef);
    color: var(--nde-fg, #111827);
    border: 1px solid var(--nde-border, transparent);
    box-shadow: 0 6px 16px var(--nde-shadow, rgba(15, 23, 42, 0.06));
    font-size: var(--nde-font-size, 24px);
    line-height: 1;
    vertical-align: middle;
    text-decoration: none;
    transition: transform .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.nde-icon:hover {
    background: var(--nde-hover-bg, var(--nde-bg, #e9f7ef));
    color: var(--nde-hover-fg, var(--nde-fg, #111827));
    border-color: var(--nde-hover-border, var(--nde-border, transparent));
    box-shadow: 0 10px 24px var(--nde-hover-shadow, var(--nde-shadow, rgba(15, 23, 42, 0.06)));
    transform: translateY(-1px);
}

.nde-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--nde-bg, #e9f7ef);
    color: var(--nde-fg, #111827);
    border: 1px solid var(--nde-border, transparent);
    box-shadow: 0 4px 12px var(--nde-shadow, rgba(15, 23, 42, 0.06));
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.nde-badge:hover {
    background: var(--nde-hover-bg, var(--nde-bg, #e9f7ef));
    color: var(--nde-hover-fg, var(--nde-fg, #111827));
    border-color: var(--nde-hover-border, var(--nde-border, transparent));
    box-shadow: 0 6px 16px var(--nde-hover-shadow, var(--nde-shadow, rgba(15, 23, 42, 0.06)));
}

.nde-button,
.nde-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--nde-bg, #009933);
    color: var(--nde-fg, #ffffff) !important;
    border: 1px solid var(--nde-border, transparent);
    box-shadow: 0 6px 16px var(--nde-shadow, rgba(0, 153, 51, 0.25));
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: transform .16s ease, box-shadow .16s ease;
}

.nde-button:hover,
.nde-button:focus {
    background: var(--nde-hover-bg, var(--nde-bg, #009933));
    color: var(--nde-hover-fg, var(--nde-fg, #ffffff)) !important;
    border-color: var(--nde-hover-border, var(--nde-border, transparent));
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--nde-hover-shadow, var(--nde-shadow, rgba(0, 153, 51, 0.25)));
}

.nde-notice {
    display: grid;
    grid-template-columns: var(--nde-size, 52px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 22px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--nde-bg, #e9f7ef) 14%, #ffffff);
    border: 1px solid var(--nde-border, #cdebd7);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.nde-notice-icon {
    width: var(--nde-size, 52px);
    height: var(--nde-size, 52px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--nde-radius, 16px);
    background: var(--nde-bg, #009933);
    color: var(--nde-fg, #ffffff);
    font-size: var(--nde-font-size, 24px);
    line-height: 1;
    box-shadow: 0 6px 16px var(--nde-shadow, rgba(0, 153, 51, 0.25));
}

.nde-notice-title {
    display: block;
    margin: 0 0 6px;
    color: #111827;
    font-size: 19px;
    line-height: 1.25;
}

.nde-notice-content,
.nde-notice-content p {
    margin-top: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.55;
}

.nde-notice-content p:last-child {
    margin-bottom: 0;
}

@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
    .nde-notice {
        background: #ffffff;
    }
}


.nde-notice {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.nde-notice:hover {
    border-color: var(--nde-hover-border, var(--nde-border, #cdebd7));
    box-shadow: 0 18px 45px var(--nde-hover-shadow, rgba(15, 23, 42, 0.10));
}

.nde-notice:hover .nde-notice-icon {
    background: var(--nde-hover-bg, var(--nde-bg, #009933));
    color: var(--nde-hover-fg, var(--nde-fg, #ffffff));
    box-shadow: 0 10px 24px var(--nde-hover-shadow, var(--nde-shadow, rgba(0, 153, 51, 0.25)));
}

/* Notice action button alignment */
.nde-notice-content p:has(.nde-button) {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nde-notice-content p:has(.nde-button) .nde-button {
    margin-left: auto;
    flex: 0 0 auto;
}

.nde-notice-content > .nde-button,
.nde-notice-content p > .nde-button:only-child {
    margin-left: auto;
}

@media (max-width: 700px) {
    .nde-notice-content p:has(.nde-button) {
        display: block;
    }

    .nde-notice-content p:has(.nde-button) .nde-button,
    .nde-notice-content > .nde-button {
        margin-top: 12px;
        margin-left: 0;
    }
}
