/* --- Nowe style dla Layoutu i Paska Bocznego Recenzji --- */

.single-post__layout-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-post__main-content {
    flex: 1;
    min-width: 0; /* Zapobiega rozpychaniu przez szerokie elementy */
}

.review-sidebar {
    flex: 0 0 380px; /* Szerokość sidebara */
    position: sticky;
    top: 40px; /* Odstęp od góry */
    align-self: flex-start; /* Zapobiega rozciąganiu na całą wysokość */
}

/* Ukryj sidebar na mniejszych ekranach */
@media (max-width: 1024px) {
    .single-post__layout-container {
        flex-direction: column;
    }
    .review-sidebar {
        position: static;
        height: auto;
        order: -1; /* Przesuń sidebar nad treść na mobilnych */
        margin-bottom: 40px;
    }
}

/* Style dla widgetów w sidebarze */
.review-sidebar > div {
    background-color: var(--review-bg-dark, #2d3748);
    border: 1px solid var(--review-border-dark, #4a5568);
    color: var(--review-text-dark, #edf2f7);
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 16px;
}

/* Review Box Widget */
.review-box-widget h3 {
    text-align: center;
    font-size: 1.4em;
}

.review-box-image {
    display: block;
    max-width: 300px;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 5px;
}

.review-box-rating {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
}

.review-box-stars {
    text-align: center;
    color: var(--review-star-color, #ffb900);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.review-box-stars .empty { color: #555; }

.review-box-summary {
    font-size: .9em;
    text-align: center;
    opacity: 0.9;
    margin-bottom: 20px;
}

.review-box-details {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 0.9em;
}

.review-box-details li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--review-border-dark, #4a5568);
}

.review-box-details li:last-child { border-bottom: none; }

.review-box-cta {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background-color: #007b91;
    color: #fff;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.review-box-cta:hover { background-color: #0094ad; }


/* Styles for Multi Core Plugin's Quick Overview and Table of Contents (Dark Theme) */
.multi-core-overview-toc-wrapper {
    background-color: var(--review-bg-dark, #2d3748); /* Use dark background variable */
    border: 1px solid var(--review-border-dark, #4a5568); /* Use dark border variable */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px; /* Match review-sidebar > div border-radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow for depth */
}

.multi-core-overview-toc-wrapper h2.wp-block-heading {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--review-text-dark, #edf2f7); /* Use light text variable */
    text-align: center; /* Match review-box-widget h3 */
}

.multi-core-overview-toc-wrapper p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--review-text-dark, #edf2f7); /* Use light text variable */
    opacity: 0.9; /* Match review-box-summary opacity */
    text-align: center; /* Match review-box-summary */
}

.multi-core-overview-toc-wrapper .toc-widget {
    background-color: rgba(0, 0, 0, 0.2); /* Slightly darker background for TOC widget */
    border: 1px solid var(--review-border-dark, #4a5568);
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px; /* Slightly smaller border-radius for inner widget */
}

.multi-core-overview-toc-wrapper .toc-widget h3 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--review-text-dark, #edf2f7); /* Use light text variable */
    text-align: center; /* Match review-box-widget h3 */
}

.multi-core-overview-toc-wrapper .toc-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.multi-core-overview-toc-wrapper .toc-widget ul li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.multi-core-overview-toc-wrapper .toc-widget ul li:before {
    content: "•";
    color: var(--review-star-color, #ffb900); /* Use star color for bullet */
    position: absolute;
    left: 0;
}

.multi-core-overview-toc-wrapper .toc-widget ul li a {
    text-decoration: none;
    color: var(--review-text-dark, #edf2f7); /* Use light text variable for links */
    font-weight: normal;
}

.multi-core-overview-toc-wrapper .toc-widget ul li a:hover {
    text-decoration: underline;
    color: var(--review-star-color, #ffb900); /* Use star color on hover */
}

/* Indentation for nested TOC items */
.multi-core-overview-toc-wrapper .toc-widget ul ul {
    margin-left: 20px;
    border-left: 1px dotted var(--review-border-dark, #4a5568); /* Use dark border for indentation */
    padding-left: 10px;
}

.advantages-disadvantages-block {
    background-color: var(--review-bg-dark, #2d3748);
    border: 1px solid var(--review-border-dark, #4a5568);
    color: var(--review-text-dark, #edf2f7);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.review-box-widget .stars {
    text-align: center;
}