/* --- KONTENER (WRAPPER) - To on ustala pozycję na karcie --- */
.nmsb-container {
    position: absolute;
    z-index: 25;
    display: flex;
    flex-direction: column; /* Układamy jeden pod drugim */
    gap: 6px; /* Odstęp między labelami w stosie */
    pointer-events: none; /* Żeby nie blokować klikania w zdjęcie */
}

/* Pozycje Kontenerów */
.nmsb-container.nmsb-pos-top-left { top: 15px; left: 15px; align-items: flex-start; }
.nmsb-container.nmsb-pos-top-right { top: 15px; right: 15px; align-items: flex-end; }
.nmsb-container.nmsb-pos-bottom-left { bottom: 15px; left: 15px; align-items: flex-start; }
.nmsb-container.nmsb-pos-bottom-right { bottom: 15px; right: 15px; align-items: flex-end; }
.nmsb-container.nmsb-pos-center { 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    align-items: center; 
    z-index: 30; 
}

/* --- SAM BADGE (ELEMENT W ŚRODKU) --- */
.nmsb-badge {
    position: relative; /* Już nie absolute! */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    pointer-events: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    
    /* Zmienne */
    background-color: var(--nmsb-bg);
    color: var(--nmsb-text);
    font-size: var(--nmsb-size, 11px);
    text-transform: var(--nmsb-transform, uppercase);
    padding: var(--nmsb-pv, 6px) var(--nmsb-ph, 12px);
    
    /* Zapobiega rozciąganiu w Flexboxie */
    width: max-content; 
}

/* --- STYLIZACJE --- */

/* 1. GLASS */
.style-glass {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* 2. NEON */
.style-neon {
    background-color: #000 !important;
    color: var(--nmsb-border) !important;
    border: 1px solid var(--nmsb-border);
    box-shadow: 0 0 10px var(--nmsb-border), inset 0 0 5px var(--nmsb-border);
    text-shadow: 0 0 5px var(--nmsb-border);
    font-family: monospace;
}

/* 3. RIBBON */
.style-ribbon {
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
/* Wstęga w stosie - upraszczamy, żeby nie psuła układu */
.style-ribbon::after {
    content: none; /* Cień zagięcia wyłączamy w stosie dla czystości */
}

/* 4. FLOAT */
.style-float {
    background-color: #fff !important;
    color: var(--nmsb-border) !important;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 2px solid var(--nmsb-border);
    /* Animacja tylko jeśli jest jeden w kontenerze? Nie, niech pływają razem */
    animation: nmsb-float 3s ease-in-out infinite;
}
@keyframes nmsb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* 5. OUTLINE */
.style-outline {
    background-color: transparent !important;
    border: 2px solid var(--nmsb-border);
    color: var(--nmsb-border) !important;
}

/* 6. GLITCH */
.style-glitch {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 100%, 0 100%);
}
.nmgp-product-card:hover .style-glitch {
    animation: nmsb-glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}
@keyframes nmsb-glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* 7. LIQUID */
.style-liquid {
    background: linear-gradient(45deg, var(--nmsb-bg), #fff, var(--nmsb-bg));
    background-size: 200% 200%;
    animation: nmsb-liquid 3s ease infinite;
}
@keyframes nmsb-liquid { 0% {background-position: 0% 50%} 50% {background-position: 100% 50%} 100% {background-position: 0% 50%} }

/* 8. STAMP */
.style-stamp {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.7);
    transform: rotate(-15deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 9px !important;
    white-space: normal; text-align: center;
    padding: 0;
}