/* Salama Core Styles */

/* Prevent content overflow from breaking sidebar layout (float-based themes) */
.bd-main,
.bdaia-post-content {
    overflow: visible !important;
    max-width: 100%;
}
.bdaia-post-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    width: 100% !important;
}
.bdaia-post-content img {
    max-width: 100%;
    height: auto;
}


/* Ad Slots */
.salama-ad-slot {
    margin: 25px 0 10px 0;
    text-align: center;
    position: relative;
    overflow: visible;

    position: relative !important;
    display: inline-block;
}
.salama-ad-slide {
    display: none;
    width: 100%;
}
.salama-ad-slide.active {
    display: block;
    animation: fadeIn 0.5s;
}
.salama-ad-disclaimer {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    cursor: help;
    margin-top: 5px;
    position: relative;
}
.salama-ad-disclaimer:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 100;
}


/* TTS Player (Floating Round) */
.salama-tts-floating-container {
    position: fixed;
    bottom: 75px;
    left: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 99998;
    width: 60px;
}

@keyframes salama-spin {
    100% { transform: rotate(360deg); }
}
.salama-tts-round-btn {
    width: 60px;
    height: 60px;
    background: #00abe7;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s, background 0.2s;
}
#salama-tts-play svg {
    transform: none !important;
}
.salama-tts-round-btn:hover {
    transform: scale(1.05);
    background: #1e87b8;
}
.salama-tts-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    white-space: nowrap;
    font-size: 12px;
    font-family: inherit;
    color: #444;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}
/* Ensure TTS button hides on invert/monochrome but keeps structure if needed, or adjust z-index */

/* TOC */
.salama-toc {
    background: #f1f1f1;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.salama-toc-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}
.salama-toc ul {
    list-style: none;
    padding-left: 0;
}
.salama-toc li {
    margin-bottom: 5px;
}
.salama-toc-level-2 { padding-left: 10px; }
.salama-toc-level-3 { padding-left: 20px; }


/* Mobile Tables (Karty) */
@media (max-width: 1024px) {
    table.salama-karty {
        display: block;
    }
    table.salama-karty thead {
        display: none;
    }
    table.salama-karty tbody {
        display: block;
    }
    table.salama-karty tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 10px;
        background: #fff;
    }
    table.salama-karty td {
        display: block !important;
        text-align: right !important;
        padding: 5px 0 !important;
        border-bottom: 1px solid #eee !important;
    }
    table.salama-karty td:last-child {
        border-bottom: none !important;
    }
    table.salama-karty td::before {
        content: attr(data-label);
        float: left !important;
        font-weight: bold !important;
        color: #555 !important;
        padding-right: 30px !important;
    }
    

}

/* CSV Features */
.salama-section {
    content-visibility: visible;
    contain-intrinsic-size: 1px 1000px;
}
table.salama-tabela-referencyjna {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* PDF Viewer */
.salama-pdf-viewer {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.salama-pdf-toolbar {
    background: #1e293b;
    color: white;
    padding: 6px 12px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.salama-pdf-toolbar button {
    color: white !important;
    border: none !important;
    padding: 0 14px !important;
    height: 30px !important;
    line-height: 30px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.salama-pdf-toolbar .salama-pdf-prev {
    background: #475569 !important;
}
.salama-pdf-toolbar .salama-pdf-prev:hover {
    background: #334155 !important;
}
.salama-pdf-toolbar .salama-pdf-next {
    background: #00abe7 !important;
}
.salama-pdf-toolbar .salama-pdf-next:hover {
    background: #1e87b8 !important;
}
.salama-pdf-toolbar button:disabled {
    background: #64748b !important;
    color: #cbd5e1 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}
.salama-pdf-page-info {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    user-select: none !important;
}
.salama-pdf-canvas {
    width: 100%;
    height: auto;
    display: block;
    background: white;
}

/* Fullscreen expand button in toolbar */
.salama-pdf-toolbar .salama-pdf-fullscreen {
    background: transparent !important;
    padding: 0 8px !important;
    height: 30px !important;
    line-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.7;
    transition: opacity 0.2s ease !important;
}
.salama-pdf-toolbar .salama-pdf-fullscreen:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1) !important;
}
.salama-pdf-toolbar .salama-pdf-fullscreen svg {
    stroke: #fff;
}

/* PDF Fullscreen Overlay */
.salama-pdf-fullscreen-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}
.salama-pdf-fs-inner {
    position: relative;
    width: 95vw;
    height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.salama-pdf-fs-canvas {
    display: block;
    background: white;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    border-radius: 4px;
    max-width: 100%;
    max-height: calc(95vh - 60px);
    object-fit: contain;
}
.salama-pdf-fs-toolbar {
    background: #1e293b;
    color: white;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 8px 8px;
    width: 100%;
    max-width: 800px;
    margin-top: 0;
    box-sizing: border-box;
}
.salama-pdf-fs-toolbar button {
    color: white !important;
    border: none !important;
    padding: 0 14px !important;
    height: 30px !important;
    line-height: 30px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}
.salama-pdf-fs-toolbar .salama-pdf-prev { background: #475569 !important; }
.salama-pdf-fs-toolbar .salama-pdf-prev:hover { background: #334155 !important; }
.salama-pdf-fs-toolbar .salama-pdf-next { background: #00abe7 !important; }
.salama-pdf-fs-toolbar .salama-pdf-next:hover { background: #1e87b8 !important; }
.salama-pdf-fs-toolbar button:disabled {
    background: #64748b !important;
    color: #cbd5e1 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}
.salama-pdf-fs-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    border: none !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}
.salama-pdf-fs-close:hover {
    background: rgba(255,255,255,0.3) !important;
}

/* Download Attachment Button */
.salama-download-btn {
    display: inline-flex;
    align-items: center;
    background: #00abe7;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
    margin: 15px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.salama-download-btn:hover {
    background: #1e87b8;
    color: #fff !important;
    transform: translateY(-2px);
}
.salama-download-btn svg {
    margin-right: 8px;
}

/* ============================================
   SALAMA CORE v2.0 ÔÇö New Module Styles
   ============================================ */

/* --- Glossary Tooltips --- */
.salama-glossary-term {
    border-bottom: 1px dotted #4a7c59;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: help;
}
.salama-glossary-term:hover {
    color: #4a7c59;
}
.salama-glossary-term[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 320px;
    min-width: 180px;
    white-space: normal;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    pointer-events: none;
}
.salama-glossary-term[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 6px solid transparent;
    border-top-color: #333;
    z-index: 10001;
}

/* --- Accessibility Toolbar (Dark Theme) --- */
#salama-a11y-toggle {
    position: fixed;
    bottom: 155px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #00abe7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    transition: transform .2s;
}
#salama-a11y-toggle:hover { transform: scale(1.05); }

#salama-a11y-panel.salama-a11y-dark-theme {
    position: fixed;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    right: 20px;
    width: 380px;
    background: #222;
    color: #eee;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    z-index: 99999;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.salama-a11y-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
}
.salama-a11y-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.salama-a11y-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.salama-a11y-header-actions button {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}
.salama-a11y-header-actions button:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.salama-a11y-close-btn {
    background: #00abe7 !important;
    color: #fff !important;
    width: 32px;
    height: 32px;
    font-size: 20px;
}
.salama-a11y-close-btn:hover {
    background: #3367d6 !important;
}

.salama-a11y-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid #333;
}
.salama-a11y-btn {
    background: #333;
    border: 1px solid #444;
    color: #eee;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: left;
}
.salama-a11y-btn:hover {
    background: #444;
}
.salama-a11y-btn.active {
    border-color: #00abe7;
    box-shadow: 0 0 0 1px #00abe7;
    color: #fff;
}

.salama-a11y-sliders {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.salama-a11y-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.salama-a11y-slider-row label {
    flex: 1;
    font-size: 13px;
    color: #ccc;
    margin: 0;
}
.salama-a11y-slider-row input[type="range"] {
    width: 80px;
    accent-color: #00abe7;
}
.salama-a11y-val {
    width: 40px;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    color: #fff;
}
.salama-a11y-ctrl-btn {
    background: #333;
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}
.salama-a11y-ctrl-btn:hover {
    background: #444;
}

/* Accessibility States */
html.salama-filter-invert body { background-color: #111 !important; color: #eee !important; }
html.salama-filter-dark-contrast body { background-color: #000 !important; color: #fff !important; }
html.salama-filter-monochrome body { background-color: #fff !important; }

html.salama-filter-invert body > *:not(#salama-a11y-panel):not(#salama-a11y-toggle):not(#salama-tts-floating-container):not(#salama-cookie-banner):not(.salama-toc-progress-container) { filter: invert(1) hue-rotate(180deg); }
html.salama-filter-monochrome body > *:not(#salama-a11y-panel):not(#salama-a11y-toggle):not(#salama-tts-floating-container):not(#salama-cookie-banner):not(.salama-toc-progress-container) { filter: grayscale(100%); }
html.salama-filter-dark-contrast body > *:not(#salama-a11y-panel):not(#salama-a11y-toggle):not(#salama-tts-floating-container):not(#salama-cookie-banner):not(.salama-toc-progress-container) { filter: invert(1) contrast(1.2); }
html.salama-filter-light-contrast body > *:not(#salama-a11y-panel):not(#salama-a11y-toggle):not(#salama-tts-floating-container):not(#salama-cookie-banner):not(.salama-toc-progress-container) { filter: contrast(1.2) brightness(1.1); }
html.salama-filter-low-saturation body > *:not(#salama-a11y-panel):not(#salama-a11y-toggle):not(#salama-tts-floating-container):not(#salama-cookie-banner):not(.salama-toc-progress-container) { filter: saturate(0.5); }
html.salama-filter-high-saturation body > *:not(#salama-a11y-panel):not(#salama-a11y-toggle):not(#salama-tts-floating-container):not(#salama-cookie-banner):not(.salama-toc-progress-container) { filter: saturate(2); }

html.salama-highlight-links body a { text-decoration: underline !important; text-decoration-color: #ffeb3b !important; text-decoration-thickness: 2px !important; }
html.salama-highlight-headings body h1, html.salama-highlight-headings body h2, html.salama-highlight-headings body h3, html.salama-highlight-headings body h4, html.salama-highlight-headings body h5, html.salama-highlight-headings body h6 { border: 2px dashed #00abe7 !important; padding: 4px !important; }

/* --- Cookie Consent Banner --- */
#salama-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.97);
    color: #f0f0f0;
    z-index: 100000;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
.salama-cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: none !important;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.salama-cookie-inner p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    min-width: 280px;
}
.salama-cookie-inner a { color: #90caf9; }
.salama-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.salama-cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity .2s;
}
.salama-cookie-btn:hover { opacity: .85; }
.salama-cookie-btn.primary {
    background: #4caf50;
    color: #fff;
}
.salama-cookie-btn.secondary {
    background: transparent;
    color: #ccc;
    border: 1px solid #666;
}

/* --- Recent Comments Widget --- */
.salama-recent-comments {
    list-style: none;
    padding: 0;
    margin: 0;
}
.salama-recent-comments li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.salama-recent-comments li:last-child { border-bottom: none; }
.salama-comment-avatar img {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
}
.salama-comment-body { font-size: 13px; line-height: 1.4; }
.salama-comment-body a { color: #555; text-decoration: none; }
.salama-comment-body a:hover { color: #333; }
.salama-comment-post { display: block; color: #999; font-size: 11px; margin-top: 2px; }

/* --- Lightbox (enhanced) --- */
.salama-lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.92);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: salama-fade-in .2s ease;
}
@keyframes salama-fade-in { from { opacity: 0; } to { opacity: 1; } }
.salama-lightbox-overlay img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,.5);
    cursor: default;
}
.salama-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,.5);
}

@media (max-width: 768px) {
    
    .salama-cookie-inner { flex-direction: column; padding: 14px 16px; }
    .salama-cookie-buttons { width: 100%; }
    .salama-cookie-btn { flex: 1; text-align: center; }
}
/* ============================================
   SALAMA CORE v2.0.1 ÔÇö Position Fixes
   ============================================ */

/* Cookie banner MUST be fixed at bottom */
#salama-cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    display: none;
}

/* Accessibility toggle MUST be fixed at bottom-right */
#salama-a11y-toggle {
    position: fixed !important;
    bottom: 155px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 999998 !important;
}

/* Accessibility panel MUST be fixed */
#salama-a11y-panel {
    position: fixed !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    right: 20px !important;
    left: auto !important;
    z-index: 999999 !important;
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
}

/* Glossary tooltip - ensure pseudo-elements work */
.salama-glossary-term {
    position: relative !important;
    display: inline !important;
}
.salama-glossary-term[data-tooltip]:hover::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    bottom: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #333 !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    max-width: 320px !important;
    min-width: 180px !important;
    white-space: normal !important;
    z-index: 100000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.25) !important;
    pointer-events: none !important;
    word-wrap: break-word !important;
}
.salama-glossary-term[data-tooltip]:hover::before {
    content: '' !important;
    position: absolute !important;
    bottom: calc(100% + 2px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 6px solid transparent !important;
    border-top-color: #333 !important;
    z-index: 100001 !important;
}

/* TOC Progress Bar */
.salama-toc-progress-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 6px !important;
    background-color: transparent !important;
    z-index: 9999999 !important;
    pointer-events: none;
    display: none !important;
}

@media (max-width: 1024px) {
    .salama-toc-progress-container {
        display: block !important;
    }
}

.salama-toc-progress-bar {
    height: 100% !important;
    background-color: #4caf50 !important;
    width: 0%;
    transition: width 0.1s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* Salama cards table - centered text */
table.salama-karty td,
table.salama-karty th {
    text-align: center;
}

/* Fix text wrapping in news/blocks */
.bdaia-post-content, .bdaia-blocks, .bdaia-block-wrap, .bdaia-blocks-container {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
}

/* ============================================
   CLIENT CORRECTIONS - v2.0.2
   ============================================ */
/* 1. Kolory domy┼Ťlne link├│w i czcionek */
body {
    color: #6a655e !important;
}
a, .entry-content a {
    color: #00abe7;
}

/* 2. Klawisze dopasowane do "Dodaj komentarz" */
.read-more, .more-link, .post-more-link {
    background-color: #2c2f33;
    color: #ffffff;
    border-radius: 3px;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}
.read-more:hover, .more-link:hover {
    background-color: #00abe7 !important;
    color: #fff !important;
}

/* 3. Czarna ramka wychodz─ůca do g├│ry */
.bdaia-header-default, .header-wrapper {
    margin-top: 0 !important;
}

/* 4. Tabele na mobile i pliki - overflow */
@media (max-width: 1024px) {
    .entry-content table:not(.salama-karty), 
    .post-content table:not(.salama-karty), 
    .bdaia-post-content table:not(.salama-karty),
    .wp-block-table table:not(.salama-karty) {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .wp-block-file {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        word-break: break-all;
    }
}

/* 5. Ujednolicenie zaznacze┼ä element├│w */
::selection {
    background-color: #00abe7;
    color: #fff;
}
::-moz-selection {
    background-color: #00abe7;
    color: #fff;
}

/* 6. Spis tre┼Ťci - padding pod header (offset dla link├│w z TOC) */
html {
    scroll-padding-top: 100px;
}

/* 7. Dymki s┼éownika ucinka */
.entry-content {
    overflow-x: hidden !important; overflow-y: visible !important;
}

/* 8. Ikony TTS na mobile przenie┼Ť─ç w prawy g├│rny r├│g */
@media (max-width: 1024px) {
    .salama-tts-floating-container {
        top: 10px !important;
        bottom: auto !important;
        right: 57px !important;
        left: auto !important;
        transform: none !important;
        z-index: 99999 !important;
        margin-left: 0 !important;
        width: 44px !important;
    }
    .salama-tts-floating-container .salama-tts-label {
        display: none !important;
    }
    .salama-tts-round-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }
    .salama-tts-round-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
    #salama-a11y-toggle {
        top: 10px !important;
        bottom: auto !important;
        right: 109px !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 99999 !important;
    }
    #salama-a11y-toggle svg {
        width: 22px !important;
        height: 22px !important;
    }
    #salama-a11y-panel {
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        right: 5px !important;
        width: 320px !important;
        max-width: calc(100vw - 30px) !important;
        max-height: calc(100vh - 40px) !important;
        overflow-y: auto !important;
    }
    #salama-cookie-banner {
        top: 0 !important;
        bottom: auto !important;
    }
}

/* 9. Zmiana tooltipa reklamy */
.salama-ad-slot {
    padding-bottom: 10px; /* space for tooltip */

    position: relative !important;
    display: inline-block;
}
.salama-ad-disclaimer {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    color: #555;
    border-radius: 50%;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    cursor: help;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0;
}
.salama-ad-disclaimer::after {
    content: "REKLAMA";
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #333;
    color: #fff;
    padding: 3px 6px;
    font-size: 10px;
    border-radius: 3px;
    display: none;
    white-space: nowrap;
    z-index: 99;
}
.salama-ad-disclaimer:hover::after {
    display: block;
}

/* 10. Fix ad tooltip clipping */
.salama-ad-slot,
.salama-ad-slider,
.salama-ad-slide,
.salama-ad-slide.active {
    overflow: visible !important;
}
.salama-ad-info-box {
    z-index: 9999 !important;
}

.salama-ad-slide {
    position: relative !important;
}


/* =========================================================================
   Unified Floating TOC (Desktop & Mobile)
   ========================================================================= */
/* Floating TOC Button (Sticky) */
.salama-toc-floating-btn {
    display: flex !important;
    position: fixed !important;
    bottom: 161px !important;
    left: 80px !important;
    transform: translateX(-50%) !important;
    background: #00abe7 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important; /* Slightly decreased padding! */
    font-size: 13px !important; /* Slightly decreased font size! */
    line-height: 1.2 !important;
    text-transform: none !important; /* Prevent theme uppercase overrides! */
    letter-spacing: normal !important;
    border-radius: 24px !important; /* Adjusted border radius! */
    z-index: 9999999 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
    cursor: pointer !important;
    font-weight: bold !important;
    align-items: center !important;
    justify-content: center !important; /* Centering the text perfectly! */
    text-align: center !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    transition: transform 0.3s ease, background 0.3s ease !important;
}
.salama-toc-floating-btn:hover {
    transform: translateX(-50%) translateY(-2px) !important;
    background: #008fbb !important;
}

/* Floating TOC Panel */
.salama-toc-floating-panel {
    position: fixed;
    top: 0; 
    left: -350px; /* Hidden by default */
    bottom: 0;
    width: 340px;
    background: #ffffff;
    z-index: 99999999 !important;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    font-family: inherit;
}
.salama-toc-floating-panel.active {
    left: 0;
}

/* Better styling for TOC contents */
.salama-toc-floating-panel .salama-toc-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #6a655e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.salama-toc-floating-panel .salama-toc {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
.salama-toc-floating-panel .salama-toc ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.salama-toc-floating-panel .salama-toc li {
    list-style: none !important;
    list-style-type: none !important;
    background-image: none !important;

    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}
.salama-toc-floating-panel .salama-toc li::before {
    content: "\2022" !important;
    position: absolute;
    left: 0;
    color: #00abe7;
    font-weight: bold;
}
.salama-toc-floating-panel .salama-toc-level-3 {
    margin-left: 15px;
    font-size: 0.9em;
}
.salama-toc-floating-panel .salama-toc a {
    color: #444 !important;
    text-decoration: none;
    line-height: 1.4;
    display: inline-block;
    transition: color 0.2s;
}
.salama-toc-floating-panel .salama-toc a:hover {
    color: #00abe7 !important;
}
.salama-toc-floating-panel .salama-toc li.active > a {
    color: #00abe7 !important;
    font-weight: bold;
}

/* Close Button */
.salama-toc-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    line-height: 1;
    transition: color 0.2s;
    padding: 5px;
}
.salama-toc-close:hover {
    color: #d9534f;
}

@media (max-width: 1024px) {
    /* Hide inline TOC on mobile to save space, rely on floating TOC */
    #salama-toc-inline { display: none; }
}

@media (max-width: 768px) {
    .salama-toc-floating-panel {
        width: 100%;
        left: -100%;
    }
    .salama-toc-floating-btn {
        bottom: 220px !important;
    }
}

/* Mobile inline TOC button */
.salama-mobile-inline-btn {
    position: static !important;
    display: inline-flex !important;
    margin-bottom: 20px !important;
    width: auto !important;
    z-index: 10 !important;
}




/* Mobile Ad Disclaimer Fix */
@media (max-width: 768px) {
    .salama-ad-slot {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
        padding-bottom: 35px !important;
        line-height: 0 !important;
    }
    .salama-ad-slide img {
        width: 100%;
        height: auto;
        display: block;
    }
    .salama-ad-disclaimer {
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        transform: none !important;
        right: 5px !important;
        z-index: 99 !important;
        margin: 0 !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        font-size: 16px !important;
    }
}

@keyframes salama-spin {
    100% { transform: rotate(360deg); }
}
.salama-spin {
    animation: salama-spin 1s linear infinite;
}

/* CookieYes Revisit Icon Adjustments */
.cky-btn-revisit-wrapper {
    background-color: #00abe7 !important;
    left: auto !important;
    right: 20px !important;
    bottom: 75px !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    padding: 0 !important;
}
.cky-btn-revisit-wrapper img, .cky-btn-revisit-wrapper svg {
    width: 28px !important;
    height: 28px !important;
}

@media (max-width: 1024px) {
    .cky-btn-revisit-wrapper {
        top: 20px !important;
        bottom: auto !important;
        left: 10px !important;
        right: auto !important;
        width: 44px !important;
        height: 44px !important;
        z-index: 999999 !important;
    }
}

/* Fix "Sprawdź Również" popup z-index to cover floating buttons */
#bdCheckAlso, .bdCheckAlso, 
#bdaia-check-also, .bdaia-check-also, 
.check-also-post {
    z-index: 99999999 !important;
}

/* Fix Post Metadata Wrapping (Author, Categories, Views) */
article footer,
.block-article footer,
.bdaia-meta-info,
.bdaia-post-meta {
    display: block !important;
    clear: both !important;
}

.bdaia-post-author-name,
.bdaia-post-cat-list,
.bdaia-post-comment,
.bdaia-post-view {
    display: inline !important;
    float: none !important;
    clear: none !important;
    white-space: normal !important;
    margin-right: 8px !important;
    vertical-align: baseline !important;
}

/* Added font-size per user request */
table.salama-karty,
table.salama-karty th,
table.salama-karty td {
    font-size: 12px !important;
}





/* Hide floating Table of Contents button on mobile */
@media (max-width: 1024px) {
    .salama-toc-floating-btn,
    #salama-toc-floating-btn {
        display: none !important;
    }
}


/* Move CookieYes consent preference button next to top-right header buttons on mobile, and bottom-left on desktop */
@media (max-width: 1024px) {
    /* Style the outer wrapping container on mobile */
    html body [data-cky-tag="revisit-consent"],
    html body .cky-revisit-top-left,
    html body .cky-revisit-bottom-left,
    html body .cky-revisit-consent,
    html body #cky-revisit-consent {
        right: 103px !important;
        left: auto !important;
        top: 10px !important;
        bottom: auto !important;
        position: fixed !important;
        z-index: 99999999 !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Style the inner button inside the container to be perfectly round and centered */
    html body [data-cky-tag="revisit-consent"] button,
    html body .cky-btn-revisit {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #00a9ec !important; /* Match primary button color */
        border: none !important;
        outline: none !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
        position: static !important; /* Strip any shifting positions */
    }

    /* Style the icon inside to be perfectly centered and 22px in size */
    html body [data-cky-tag="revisit-consent"] button svg,
    html body [data-cky-tag="revisit-consent"] button img,
    html body .cky-btn-revisit svg,
    html body .cky-btn-revisit img {
        width: 22px !important;
        height: 22px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
}


/* Shift logo to the left on mobile to make room for three top-right header buttons */
@media (max-width: 1024px) {
    .logo, 
    .site--logo, 
    .logo.site--logo, 
    .bdaia-header-default .header-container .logo,
    div.logo.site--logo {
        text-align: left !important;
        margin-left: 50px !important;
        margin-right: 0 !important;
        float: left !important;
        position: relative !important;
        left: 0 !important;
        display: inline-block !important;
        clear: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
}


/* Center play triangle icon visually inside the round button globally and force it to be white */
.salama-tts-round-btn {
    color: #ffffff !important;
}
.salama-tts-round-btn svg {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    fill: #ffffff !important;
    color: #ffffff !important;
    display: block !important;
}

/* Fix mobile TTS button: show triangle icon centered */
@media (max-width: 1024px) {
    .salama-tts-round-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 0 !important;
        overflow: visible !important;
    }
    .salama-tts-round-btn svg {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        fill: #ffffff !important;
        color: #ffffff !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
    }
    .salama-tts-round-btn svg path {
        fill: #ffffff !important;
    }
}

/* Single toggle TTS button - icon styles */
.salama-tts-icon-play,
.salama-tts-icon-pause,
.salama-tts-icon-loader {
    fill: #ffffff !important;
    color: #ffffff !important;
}
.salama-tts-icon-pause rect {
    fill: #ffffff !important;
}
.salama-tts-icon-loader circle,
.salama-tts-icon-loader path {
    stroke: #ffffff !important;
}

/* Hide loader and pause buttons - only play button visible, it toggles its own icon */
#salama-tts-loader,
#salama-tts-pause {
    display: none !important;
}

/* === TABLE FIX: constrain to content area === */
/* Force the post content area and all its children to not exceed parent width */
.bdaia-post-content,
.bdaia-post-content > *,
.bdaia-post-content section,
.bdaia-post-content .salama-section {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.bdaia-post-content,
.bd-main,
.bdMain {
    overflow: visible !important;
}

/* The table wrapper scrolls horizontally and vertically, acting as a spreadsheet widget with frozen headers */
.pb-table-wrap {
    overflow-x: auto !important;
    overflow-y: auto !important;
    max-height: 550px !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    /* Firefox standard scrollbar: thick and always visible */
    scrollbar-width: auto !important;
    scrollbar-color: #3b82f6 #f1f1f1 !important;
}

/* Chrome/Edge/Safari custom scrollbar (16px thick) */
.pb-table-wrap::-webkit-scrollbar {
    height: 16px !important;
    width: 16px !important;
}
.pb-table-wrap::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 8px !important;
}
.pb-table-wrap::-webkit-scrollbar-thumb {
    background: #3b82f6 !important;
    border-radius: 8px !important;
    border: 3px solid #f1f1f1 !important;
}
.pb-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8 !important;
}

/* Excel-style frozen top header row (pin headers during vertical scroll) */
.pb-table-wrap table thead tr:first-child th,
.pb-table-wrap table thead tr:first-child td,
.pb-table-wrap table > tbody:first-child > tr:first-child th,
.pb-table-wrap table > tbody:first-child > tr:first-child td {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background-color: #ffffff !important; /* Opaque background so scrolled content doesn't bleed through */
    box-shadow: inset 0 -1px 0 #e0ddd8, 0 2px 5px rgba(0,0,0,0.05) !important;
}

/* Allow table to overflow horizontally when wider than container */
.pb-table-wrap table {
    display: table !important;
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
}

/* Table column borders */
table.salama-karty th,
table.salama-karty td {
    border: 1px solid #e0ddd8 !important;
    padding: 5px 6px !important;
}
table.salama-karty th {
    background-color: #ffffff !important;
    font-weight: bold !important;
    color: #3a3733 !important;
}
table.salama-karty tr:nth-child(even) {
    background-color: #faf9f8 !important;
}
table.salama-karty {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    font-size: 13px !important;
}

/* Ensure Cookie banners are always on top */
#usercentrics-root, 
.cmplz-cookiebanner, 
#cmplz-cookiebanner-container, 
#cookie-notice, 
#CybotCookiebotDialog,
.cookie-notice-container,
#cookie-law-info-bar,
.cli-modal-dialog {
    z-index: 2147483647 !important;
}

.cky-box-bottom-left {
    z-index: 2147483647 !important; /* Maksymalna dozwolona wartość w przeglądarkach */
}

/* =========================================================================
   CLIENT CORRECTIONS - v2.0.3 (Calculators & Scaling & Layout Gaps)
   ========================================================================= */

/* 1. Mobile Tables Image Scaling */
@media (max-width: 1024px) {
    table.salama-karty td:has(img) {
        display: block !important;
        padding-left: 10px !important;
        text-align: center !important;
    }
    table.salama-karty td:has(img)::before {
        position: static !important;
        display: block !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        text-align: left !important;
    }
    table.salama-karty td img {
        max-width: 100% !important;
        height: auto !important;
        display: inline-block !important;
    }
}

/* 2. Mobile Floating Icons Order & Gaps Redesign */
@media (max-width: 1024px) {
    /* Articles with TTS: Accessibility (109px), TTS (57px), Cookie (5px) — 8px gaps */
    body.single .salama-tts-floating-container {
        right: 57px !important;
        left: auto !important;
        transform: none !important;
        width: 44px !important;
    }
    body.single #salama-a11y-toggle {
        right: 109px !important;
    }
    html body.single [data-cky-tag="revisit-consent"],
    html body.single .cky-revisit-top-left,
    html body.single .cky-revisit-bottom-left,
    html body.single .cky-revisit-consent,
    html body.single #cky-revisit-consent {
        right: 5px !important;
    }

    /* Pages without TTS: Accessibility (54px), Cookie (5px) */
    body:not(.single) #salama-a11y-toggle {
        right: 54px !important;
    }
    html body:not(.single) [data-cky-tag="revisit-consent"],
    html body:not(.single) .cky-revisit-top-left,
    html body:not(.single) .cky-revisit-bottom-left,
    html body:not(.single) .cky-revisit-consent,
    html body:not(.single) #cky-revisit-consent {
        right: 5px !important;
    }
}

/* --- Premium Article Tables Custom Styling (Desktop & Mobile) --- */
.entry-content table,
.post-content table,
.bdaia-post-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #e0ddd8 !important;
    border-radius: 0 !important;
    margin: 24px 0 !important;
    box-shadow: none !important;
    transition: none !important;
    background: #fff !important;
    table-layout: auto !important;
}

.entry-content table:hover,
.post-content table:hover,
.bdaia-post-content table:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #e0ddd8 !important;
}

/* Dense layout, sharp borders, and consistent spacing for both headers and cells on all tables */
.entry-content table th,
.post-content table th,
.bdaia-post-content table th,
.entry-content table td,
.post-content table td,
.bdaia-post-content table td {
    padding: 6px 8px !important;
    border: 1px solid #e0ddd8 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    vertical-align: middle !important;
    color: #475569 !important;
    background: #ffffff !important;
}

/* Premium header styling */
.entry-content table th,
.post-content table th,
.bdaia-post-content table th {
    background-color: #ffffff !important;
    font-weight: bold !important;
    color: #3a3733 !important;
}

/* Ensure images inside tables are centered and fit nicely */
.entry-content table td img,
.post-content table td img,
.bdaia-post-content table td img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease !important;
}

.entry-content table td img:hover,
.post-content table td img:hover,
.bdaia-post-content table td img:hover {
    transform: scale(1.02) !important;
}

/* Responsive Table Cards on Mobile */
@media (max-width: 767px) {
    .entry-content table,
    .post-content table,
    .bdaia-post-content table,
    .entry-content table tbody,
    .post-content table tbody,
    .bdaia-post-content table tbody,
    .entry-content table tr,
    .post-content table tr,
    .bdaia-post-content table tr,
    .entry-content table td,
    .post-content table td,
    .bdaia-post-content table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .entry-content table tr,
    .post-content table tr,
    .bdaia-post-content table tr {
        border-bottom: 1px solid #f1f5f9 !important;
        margin-bottom: 10px !important;
    }
    
    .entry-content table tr:last-child,
    .post-content table tr:last-child,
    .bdaia-post-content table tr:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }

    .entry-content table td,
    .post-content table td,
    .bdaia-post-content table td {
        padding: 20px !important;
        text-align: left !important;
    }

    /* Center images in their blocks on mobile and add margin */
    .entry-content table td:has(img),
    .post-content table td:has(img),
    .bdaia-post-content table td:has(img),
    .entry-content table td img,
    .post-content table td img,
    .bdaia-post-content table td img {
        text-align: center !important;
        margin: 0 auto 10px auto !important;
    }
}

/* =========================================================================
   CLIENT CORRECTIONS - v2.0.4 (Avatar Squish & Featured Image Shifting)
   ========================================================================= */

/* Force avatars to be perfect circles and prevent any layout squishing/stretching into eggs */
.salama-comment-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: block !important;
    box-sizing: border-box !important;
}

.salama-comment-avatar img,
.salama-letter-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* Bulletproof fix for featured image alignment and shifting on single posts */
.bdaia-post-featured-image {
    margin: 0 0 26px 0 !important; /* Revert negative margins that cause left shifting! */
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 0 !important; /* Sharp corners to match site design */
}
.bdaia-post-featured-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Remove paragraph margins inside table cells to eliminate unnecessary vertical space and align Chrome/Firefox */
.entry-content table td p,
.post-content table td p,
.bdaia-post-content table td p,
.entry-content table th p,
.post-content table th p,
.bdaia-post-content table th p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
}

/* Hide cookie consent icon and other floating buttons when lightbox is open */
body.salama-lightbox-open [data-cky-tag="revisit-consent"],
body.salama-lightbox-open .cky-btn-revisit-wrapper,
body.salama-lightbox-open .cky-revisit-bottom-left,
body.salama-lightbox-open #salama-a11y-toggle,
body.salama-lightbox-open .salama-tts-floating-container,
body.salama-lightbox-open .salama-toc-floating-btn {
    display: none !important;
}




/* Fix widget title line overlap on Chrome and layout alignment */
.bd-sidebar h4.block-title {
    display: flex !important;
    align-items: center !important;
    background-color: transparent !important;
    background-image: none !important;
    height: 12px !important;
    line-height: 12px !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    overflow: visible !important;
}

.bd-sidebar h4.block-title::before {
    content: "" !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    background-color: #00abe7 !important;
    margin-right: 12px !important;
    position: static !important;
    transform: none !important;
    flex-shrink: 0 !important;
    z-index: 1 !important;
}

.bd-sidebar h4.block-title a {
    display: inline-block !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bd-sidebar h4.block-title span,
.bd-sidebar h4.block-title a span {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    display: inline-block !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    z-index: 1 !important;
}

.bd-sidebar h4.block-title::after {
    content: "" !important;
    display: block !important;
    flex-grow: 1 !important;
    height: 12px !important;
    background-color: #00abe7 !important;
    margin-left: 12px !important;
    position: static !important;
    transform: none !important;
    z-index: 1 !important;
}

/* Disable old pseudo-element CSS tooltips */
.salama-glossary-term::before,
.salama-glossary-term::after,
.salama-glossary-term[data-tooltip]:hover::before,
.salama-glossary-term[data-tooltip]:hover::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Styles for the new JS portal tooltip */
.salama-glossary-tooltip {
    position: absolute !important;
    background: #333 !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    max-width: 320px !important;
    min-width: 180px !important;
    white-space: normal !important;
    z-index: 2147483647 !important; /* Render on top of everything! */
    box-shadow: 0 4px 12px rgba(0,0,0,.25) !important;
    pointer-events: none !important;
    word-wrap: break-word !important;
    display: none;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}
.salama-glossary-tooltip.visible {
    opacity: 1;
}
.salama-glossary-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 6px solid transparent !important;
    border-top-color: #333 !important;
}

/* --- AD CAROUSEL CONTROLS & INDICATORS --- */
.salama-ad-slot:hover .salama-ad-prev,
.salama-ad-slot:hover .salama-ad-next {
    opacity: 1;
}
.salama-ad-prev,
.salama-ad-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    z-index: 100 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}
.salama-ad-prev {
    left: 10px !important;
}
.salama-ad-next {
    right: 10px !important;
}
.salama-ad-prev:hover,
.salama-ad-next:hover {
    background: rgba(0, 0, 0, 0.75) !important;
}
.salama-ad-indicators {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 99 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 5px 10px !important;
    border-radius: 10px !important;
    pointer-events: auto !important;
}
.salama-ad-indicator-bar {
    width: 25px !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.35) !important;
    border-radius: 1.5px !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}
.salama-ad-indicator-bar.active {
    background: #ffffff !important;
    transform: scaleY(1.3) !important;
}
.salama-ad-indicator-bar:hover {
    background: rgba(255, 255, 255, 0.7) !important;
}




/* ==========================================================================
   Salama Cookie Consent: Bottom-Left Rectangular Banner Styling (CookieYes look)
   ========================================================================== */

#salama-cookie-banner {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    right: auto !important;
    top: auto !important;
    width: 360px !important;
    max-width: calc(100vw - 48px) !important;
    background: #ffffff !important;
    color: #212121 !important;
    z-index: 999997 !important;
    padding: 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #f0f0f0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif !important;
}

#salama-cookie-banner .cky-notice {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

#salama-cookie-banner .cky-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #212121 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

#salama-cookie-banner .cky-notice-des {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #555555 !important;
    margin: 0 0 20px 0 !important;
    text-align: left !important;
}

#salama-cookie-banner .cky-notice-des p {
    margin: 0 !important;
}

#salama-cookie-banner .cky-notice-des p span {
    color: #555555 !important;
}

#salama-cookie-banner .cky-notice-btn-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

#salama-cookie-banner .cky-notice-btn-subrow {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
}

#salama-cookie-banner .cky-btn {
    text-align: center !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
}

#salama-cookie-banner .cky-btn-accept {
    width: 100% !important;
    background: #1866ec !important;
    border: 1px solid #1866ec !important;
    color: #ffffff !important;
}

#salama-cookie-banner .cky-btn-accept:hover {
    background: #1252c7 !important;
    border-color: #1252c7 !important;
}

#salama-cookie-banner .cky-btn-reject,
#salama-cookie-banner .cky-btn-customize {
    width: 50% !important;
    background: transparent !important;
    border: 1px solid #1866ec !important;
    color: #1866ec !important;
}

#salama-cookie-banner .cky-btn-reject:hover,
#salama-cookie-banner .cky-btn-customize:hover {
    background: #f4f8ff !important;
}

@media (max-width: 576px) {
    #salama-cookie-banner {
        bottom: 12px !important;
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        width: auto !important;
        max-width: none !important;
        padding: 20px !important;
    }
}

/* ==========================================================================
   Salama Cookie Consent: Premium Modal Preferences Center (CookieYes Look)
   ========================================================================== */

#salama-cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999998;
    backdrop-filter: blur(2px);
    transition: opacity 0.2s ease;
}

#salama-cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    color: #2b2b2b;
    overflow: hidden;
    animation: salamaCookieFadeIn 0.25s ease-out;
}

@keyframes salamaCookieFadeIn {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.salama-cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.salama-cookie-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #111111;
    line-height: 1.3;
}

#salama-cookie-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    color: #888888;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s ease;
}

#salama-cookie-modal-close:hover {
    color: #111111;
}

.salama-cookie-modal-body {
    padding: 8px 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.salama-cookie-modal-cat-row {
    border-bottom: 1px solid #f3f3f3;
    padding: 14px 0;
}

.salama-cookie-modal-cat-row:last-child {
    border-bottom: none;
}

.salama-cookie-modal-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.salama-cookie-modal-cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.salama-cookie-modal-arrow {
    font-size: 10px;
    color: #777777;
    transition: transform 0.2s ease;
    display: inline-block;
}

.salama-cookie-modal-arrow.expanded {
    transform: rotate(90deg);
}

.salama-cookie-modal-cat-name {
    font-size: 15px;
    font-weight: 600;
    color: #222222;
}

/* Custom Toggle Switch */
.salama-cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.salama-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.salama-cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .2s ease;
    border-radius: 24px;
}

.salama-cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.salama-cookie-switch input:checked + .salama-cookie-slider {
    background-color: #1866ec;
}

.salama-cookie-switch input:checked + .salama-cookie-slider:before {
    transform: translateX(20px);
}

.salama-cookie-switch input:disabled + .salama-cookie-slider {
    background-color: #1866ec;
    opacity: 0.6;
    cursor: not-allowed;
}

.salama-cookie-modal-cat-desc {
    margin-left: 20px;
    margin-top: 6px;
}

.salama-cookie-modal-cat-desc p {
    font-size: 13px;
    color: #555555;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

/* Cookie Audit Details */
.salama-cookie-detail-container {
    background: #f8f9fa;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    margin-top: 10px;
    padding: 10px 14px;
}

.salama-cookie-detail-empty {
    font-size: 12px;
    color: #666666;
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 4px;
    font-style: italic;
    border: 1px solid #e5e7eb;
}

.salama-cookie-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.salama-cookie-detail-table th {
    padding: 6px 8px;
    font-weight: 600;
    color: #444444;
    border-bottom: 2px solid #e9ecef;
}

.salama-cookie-detail-table td {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
    color: #555555;
    vertical-align: top;
    line-height: 1.4;
}

.salama-cookie-detail-table tr:last-child td {
    border-bottom: none;
}

.salama-cookie-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    gap: 12px;
}

.salama-cookie-modal-btn {
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.salama-cookie-modal-footer .reject-btn,
.salama-cookie-modal-footer .save-btn {
    background: #ffffff;
    border: 1px solid #1866ec;
    color: #1866ec;
}

.salama-cookie-modal-footer .reject-btn:hover,
.salama-cookie-modal-footer .save-btn:hover {
    background: #f4f8ff;
}

.salama-cookie-modal-footer .accept-btn {
    background: #1866ec;
    border: 1px solid #1866ec;
    color: #ffffff;
    flex-grow: 1;
}

.salama-cookie-modal-footer .accept-btn:hover {
    background: #1252c7;
}

/* Sticky Revisit Tab button styling */
#salama-cookie-revisit {
    position: fixed !important;
    bottom: 75px !important;
    right: 20px !important;
    left: auto !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background-color: #00abe7 !important; /* Light blue matching accessibility and other buttons */
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    z-index: 999997 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, background-color 0.15s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

#salama-cookie-revisit:hover {
    transform: scale(1.05) !important;
    background-color: #1e87b8 !important;
}

#salama-cookie-revisit svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1024px) {
    #salama-cookie-revisit {
        top: 10px !important;
        bottom: auto !important;
        right: 5px !important;
        left: auto !important;
        width: 44px !important;
        height: 44px !important;
        background-color: #00a9ec !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
        z-index: 99999999 !important;
    }
    #salama-cookie-revisit svg {
        width: 22px !important;
        height: 22px !important;
    }
}

@media (max-width: 576px) {
    #salama-cookie-modal {
        width: 95%;
        max-height: 90vh;
    }
    .salama-cookie-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .salama-cookie-modal-btn {
        width: 100%;
    }
}
