.niw-notification-delivery-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.niw-notification-delivery-heading h2,
.niw-notification-delivery-heading p {
    margin-bottom: 0;
}

.niw-notification-delivery-connection {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 9px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.niw-notification-delivery-connection-error {
    opacity: 0.7;
}

.niw-notification-delivery-notice {
    margin: 16px 0;
    padding: 10px 12px;
}

.niw-notification-delivery-notice[hidden],
.niw-notification-delivery-empty[hidden] {
    display: none;
}

.niw-notification-delivery-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.niw-notification-delivery-item {
    padding: 14px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
}

.niw-notification-delivery-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.niw-notification-delivery-item-header > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.niw-notification-delivery-item-header span {
    overflow-wrap: anywhere;
}

.niw-notification-status,
.niw-customer-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.niw-notification-status-pending {
    background: #f0f0f1;
    color: #3c434a;
}

.niw-notification-status-sent {
    background: #edfaef;
    color: #116329;
}

.niw-notification-status-retrying {
    background: #fcf9e8;
    color: #8a5a00;
}

.niw-notification-status-failed {
    background: #fcf0f1;
    color: #b32d2e;
}

.niw-notification-delivery-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 16px;
    margin: 14px 0 0;
}

.niw-notification-delivery-meta div {
    min-width: 0;
}

.niw-notification-delivery-meta dt {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.niw-notification-delivery-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.niw-notification-delivery-error {
    margin: 12px 0;
    padding: 10px;
    border-left: 4px solid #d63638;
    background: #fcf0f1;
    white-space: pre-wrap;
}

.niw-notification-settings-card {
    max-width: 760px;
    margin-top: 20px;
}

.niw-customer-unread-badge {
    background: #1d2327;
    color: #fff;
}

.woocommerce-MyAccount-navigation-link--design-nook a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.niw-account-menu-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #1d2327;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.niw-customer-project-list-message-status[hidden] {
    display: none;
}

@media screen and (max-width: 782px) {
    .niw-notification-delivery-heading,
    .niw-notification-delivery-item-header {
        align-items: stretch;
        flex-direction: column;
    }

    .niw-notification-delivery-connection,
    .niw-notification-status {
        align-self: flex-start;
    }
}
