/* 도매마켓 홈 공지 팝업 전용 - 기존 wholesale.css 영향 최소화 */
.wnp-overlay[hidden],
.wnp-pinned[hidden],
.wnp-pagination[hidden] {
    display: none !important;
}

.wnp-overlay,
.wnp-overlay * {
    box-sizing: border-box;
}

.wnp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-size: 12px;
    color: #172536;
}

.wnp-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(13, 27, 45, .56);
    cursor: default;
}

.wnp-dialog {
    position: relative;
    width: min(500px, 100%);
    max-height: min(85vh, 760px);
    max-height: min(85dvh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 28px 84px rgba(0, 0, 0, .24);
    outline: none;
}

.wnp-header {
    flex-shrink: 0;
    padding: 19px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf0f4;
}

.wnp-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.wnp-brand-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: white;
    background: #2362e8;
    border-radius: 11px;
    font-size: 17px;
    font-weight: 800;
}

.wnp-brand strong,
.wnp-brand small {
    display: block;
    line-height: 1.45;
}

.wnp-brand strong {
    font-size: 14px;
    font-weight: 750;
}

.wnp-brand small {
    font-size: 10px;
    font-weight: 700;
    color: #8190a4;
    letter-spacing: .055em;
}

.wnp-icon-button {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    color: #5b6776;
    background: #f3f6fa;
    cursor: pointer;
}

.wnp-icon-button:hover {
    background: #e7edf5;
}

.wnp-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 26px 22px;
}

.wnp-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.wnp-pinned {
    padding: 4px 8px;
    border-radius: 6px;
    background: #eaf1ff;
    color: #205bd3;
    font-size: 11px;
    font-weight: 700;
}

.wnp-date {
    font-size: 11px;
    color: #8491a3;
}

.wnp-title {
    margin: 0 0 16px;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.wnp-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.85;
    color: #435267;
}

.wnp-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 23px;
    padding-bottom: 2px;
    color: #2362e8;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.wnp-detail-link:hover {
    color: #144ab6;
}

.wnp-footer {
    flex-shrink: 0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f7f9fc;
    border-top: 1px solid #edf0f4;
}

.wnp-today-button,
.wnp-close-button,
.wnp-pagination button {
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.wnp-today-button {
    border: 0;
    color: #667588;
    background: transparent;
    padding: 7px 0;
    text-align: left;
}

.wnp-today-button:hover {
    color: #2362e8;
}

.wnp-footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wnp-pagination {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.wnp-pagination button {
    border: 1px solid #dce4ee;
    background: #fff;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 19px;
    line-height: 1;
    color: #556578;
}

.wnp-pagination span {
    min-width: 30px;
    text-align: center;
    font-size: 11px;
    color: #637286;
}

.wnp-close-button {
    flex-shrink: 0;
    padding: 9px 18px;
    border: 0;
    border-radius: 8px;
    background: #233852;
    color: #fff;
    font-weight: 700;
}

.wnp-close-button:hover {
    background: #17263b;
}

.wnp-overlay button:focus-visible,
.wnp-overlay a:focus-visible {
    outline: 3px solid #7ca8ff;
    outline-offset: 3px;
}

body.wnp-scroll-locked {
    overflow: hidden;
}

@media (max-width: 520px) {
    .wnp-overlay { padding: 14px; }
    .wnp-dialog {
        width: 100%;
        border-radius: 14px;
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
    }
    .wnp-header { padding: 16px; }
    .wnp-body { padding: 22px 18px 20px; }
    .wnp-title { font-size: 17px; }
    .wnp-footer { padding: 12px 14px; }
    .wnp-today-button { font-size: 11px; }
    .wnp-footer-right { gap: 7px; }
    .wnp-close-button { padding: 9px 12px; }
}
