/* 1. Reset wrapperów Oxygena - kluczowe dla pozycjonowania */
.ct-shortcode:has(.otomoto-badge-overlay) {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 0 !important;
    z-index: 999 !important;
}

/* 2. Główny styl wstążki */
.otomoto-badge-overlay {
    display: block !important;
    position: absolute !important;
    top: 15px !important;    /* Wysokość od góry */
    left: -45px !important;  /* Przesunięcie w lewo dla rotacji */
    width: 160px !important;
    padding: 6px 0 !important;
    transform: rotate(-45deg) !important;
    transform-origin: center center !important;
    text-align: center !important;
    pointer-events: none !important;
    
    /* Wygląd wizualny */
    color: #ffffff !important;
    font-family: sans-serif !important;
    font-weight: 900 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4) !important;
    line-height: 1.4 !important;
}

/* 3. Kolory statusów */
.badge-sold { background-color: #d63638 !important; }
.badge-reserved { background-color: #f5a623 !important; }

/* 4. Automatyczna naprawa kontenerów w Oxygenie */
.ct-section:has(.otomoto-badge-overlay),
.ct-div-block:has(.otomoto-badge-overlay),
.otomoto-ad-card:has(.otomoto-badge-overlay) {
    position: relative !important;
    overflow: hidden !important;
}