/* ==========================================================================
   No-Match Modal
   Centered, blocking, accessible modal shown when a complete selection
   resolves to no variation. Replaces WooCommerce's suppressed "no products
   matched" message (and the earlier inline notice). Audience-aware: admins
   get an extra amber cache/stale-data note. See assets/js/src/no-match-notice.js.
   Font is inherited so it matches the active theme; accent is themable via
   --hvp-nm-accent (defaults to the 360Print brand cyan).
   ========================================================================== */

.hvp-nm-lock {
    overflow: hidden !important;
}

.hvp-nm-overlay {
    --hvp-nm-accent: #00b9ff;
    --hvp-nm-accent-700: #0089c2;
    --hvp-nm-accent-800: #00689a;
    --hvp-nm-ink: #111827;
    --hvp-nm-body: #6b7280;
    --hvp-nm-muted: #9ca3af;
    --hvp-nm-line: #ececec;
    --hvp-nm-red: #ef4444;
    --hvp-nm-red-tint: #fef2f2;
    --hvp-nm-red-700: #b91c1c;
    --hvp-nm-amber: #f59e0b;
    --hvp-nm-amber-tint: #fffbeb;
    --hvp-nm-amber-800: #92600a;
    --hvp-nm-amber-line: #f4dca0;

    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 18, 26, 0.52);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0.26s;
    font-family: inherit;
    line-height: 1.5;
}

.hvp-nm-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.hvp-nm-modal {
    width: 100%;
    max-width: 432px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 48px -12px rgba(8, 20, 32, 0.3), 0 4px 14px -8px rgba(8, 20, 32, 0.2);
    overflow: hidden;
    transform: translateY(12px) scale(0.985);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}

.hvp-nm-overlay.is-open .hvp-nm-modal {
    transform: none;
    opacity: 1;
}

.hvp-nm-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px 15px 18px;
    border-bottom: 1px solid var(--hvp-nm-line);
    position: relative;
}

.hvp-nm-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--hvp-nm-red);
}

.hvp-nm-logo {
    height: 20px;
    width: auto;
    display: block;
}

.hvp-nm-divider {
    width: 1px;
    height: 20px;
    background: var(--hvp-nm-line);
}

.hvp-nm-glyph {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--hvp-nm-red-tint);
    color: var(--hvp-nm-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hvp-nm-glyph svg {
    width: 16px;
    height: 16px;
}

.hvp-nm-eyebrow {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hvp-nm-red-700);
}

.hvp-nm-close {
    appearance: none;
    border: none;
    background: transparent;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--hvp-nm-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.14s;
}

.hvp-nm-close svg {
    width: 16px;
    height: 16px;
}

.hvp-nm-close:hover {
    background: #f4f4f4;
    color: #333;
}

.hvp-nm-close:focus-visible {
    outline: 2px solid var(--hvp-nm-accent);
    outline-offset: 2px;
}

.hvp-nm-body {
    padding: 22px 22px 20px;
}

.hvp-nm-title {
    margin: 0;
    font-weight: 600;
    color: var(--hvp-nm-ink);
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hvp-nm-text {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--hvp-nm-body);
}

.hvp-nm-ctx {
    margin: 18px 0 0;
    border: 1px solid var(--hvp-nm-line);
    border-radius: 8px;
    overflow: hidden;
}

.hvp-nm-ctx[hidden] {
    display: none;
}

.hvp-nm-ctx-name {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #3a3a3a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #fafafa;
    border-bottom: 1px solid var(--hvp-nm-line);
}

.hvp-nm-ctx-rows {
    padding: 6px 14px 10px;
    max-height: 200px;
    overflow-y: auto;
}

.hvp-nm-ctx-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: 13px;
}

.hvp-nm-ctx-row:last-child {
    border-bottom: none;
}

.hvp-nm-ctx-row .k {
    color: var(--hvp-nm-body);
    font-weight: 400;
}

.hvp-nm-ctx-row .v {
    color: var(--hvp-nm-ink);
    font-weight: 600;
    text-align: right;
}

.hvp-nm-admin {
    display: none;
    margin-top: 16px;
    padding: 13px 14px;
    background: var(--hvp-nm-amber-tint);
    border: 1px solid var(--hvp-nm-amber-line);
    border-radius: 8px;
}

.hvp-nm-overlay[data-state="admin"] .hvp-nm-admin {
    display: block;
}

.hvp-nm-admin-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hvp-nm-admin-pill {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--hvp-nm-amber);
    border-radius: 4px;
    padding: 3px 7px;
    line-height: 1;
}

.hvp-nm-admin-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--hvp-nm-amber-800);
}

.hvp-nm-admin-body {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: #7c5e16;
}

