
/* Container principal */
.scs-prc {
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    padding: 0;
    box-sizing: border-box;
}

/* Zona caruselului */
.scs-prc-viewport {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.scs-prc-track {
    width: 100%;
    position: relative;
}

/* Caseta recenziei */
.scs-prc-card {
    width: 100%;
    padding: 20px 22px;
    box-sizing: border-box;
    background: #f5f7f4;
    border: none;
    border-radius: 5px;
}

.scs-prc-card[hidden] {
    display: none !important;
}

/* Nume, dată și stele */
.scs-prc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.scs-prc-author-date {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.scs-prc-author {
    font-weight: 700;
    color: inherit;
    font-size: 15px;
}

.scs-prc-date {
    font-size: 13px;
    font-weight: 400;
    color: #777;
}

/* Stelele evaluării existente */
.scs-prc-stars {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
    color: #e1c26d;
}

.scs-prc-empty-stars {
    color: #d9d9d9;
}

/* Comentariu centrat */
.scs-prc-content {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
    color: inherit;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Navigare centrată */
.scs-prc-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 0;
}

/* Săgeți în cerc */
.scs-prc-navigation button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #d9dfd6;
    border-radius: 50%;
    background: #f5f7f4;
    color: inherit;
    font-family: inherit;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

/* Efect hover */
.scs-prc-navigation button:hover {
    background: #dfe7dc;
    border-color: #c5d1c0;
    color: #333;
}

.scs-prc-navigation button:focus-visible {
    outline: 2px solid #8a9b83;
    outline-offset: 3px;
}

/* =========================================
   RÂNDUL 2 - FORMULAR RECENZIE
   ========================================= */

.scs-prc-form-row {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 20px 22px;
    box-sizing: border-box;
    background: #f5f7f4;
    border: none;
    border-radius: 5px;
    color: inherit;
}

.scs-prc .scs-prc-form-title {
    display: block;
    margin: 0 0 20px;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.scs-prc-review-form {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.scs-prc-form-rating,
.scs-prc-form-content {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
}

.scs-prc .scs-prc-form-label {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Selector rating - ordine vizuală stânga spre dreapta */
.scs-prc .scs-prc-star-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 0;
    padding: 3px 0;
    width: 100%;
}

.scs-prc .scs-prc-star-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #b8b8b8;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.15s ease;
}

.scs-prc .scs-prc-star-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.scs-prc .scs-prc-star-option span {
    display: inline-block;
    visibility: visible;
    opacity: 1;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

/* Stelele evidențiate la hover și selectare */
.scs-prc .scs-prc-star-option:hover,
.scs-prc .scs-prc-star-option.is-hovered,
.scs-prc .scs-prc-star-option.is-selected {
    color: #f5b301;
}

.scs-prc .scs-prc-star-option input:focus-visible + span {
    outline: 2px solid #8a9b83;
    outline-offset: 3px;
    border-radius: 3px;
}

/* Câmpul pentru textul recenziei */
.scs-prc .scs-prc-form-content textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    margin: 0;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1px solid #d9dfd6;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    box-shadow: none;
    resize: vertical;
}

.scs-prc .scs-prc-form-content textarea:focus {
    outline: 2px solid #8a9b83;
    outline-offset: 1px;
    border-color: #8a9b83;
}

.scs-prc .scs-prc-form-content textarea::placeholder {
    color: #888;
    opacity: 1;
}

/* Buton Postează */
.scs-prc .scs-prc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 10px 24px;
    border: 1px solid #d9dfd6;
    border-radius: 4px;
    background: #dfe7dc;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.scs-prc .scs-prc-submit:hover {
    background: #cbd8c6;
    border-color: #b7c7b1;
}

/* Mesajele formularului */
.scs-prc .scs-prc-form-message,
.scs-prc .scs-prc-purchase-required {
    display: block;
    margin: 0 0 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
}

.scs-prc .scs-prc-form-message-success {
    background: #eaf4e7;
    color: #285b2a;
}

.scs-prc .scs-prc-form-message-error {
    background: #fbeaea;
    color: #8b2929;
}

/* Adaptare pentru telefoane */
@media (max-width: 600px) {
    .scs-prc {
        margin: 40px 0;
    }

    .scs-prc-card {
        padding: 16px 12px;
    }

    .scs-prc-header {
        align-items: flex-start;
        gap: 10px;
    }

    .scs-prc-author-date {
        gap: 4px 7px;
    }

    .scs-prc-author {
        font-size: 14px;
    }

    .scs-prc-date {
        font-size: 12px;
    }

    .scs-prc-stars {
        font-size: 16px;
        letter-spacing: 0;
    }

    .scs-prc-content {
        margin-top: 12px;
        font-size: 14px;
    }

    .scs-prc-navigation button {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .scs-prc-form-row {
        padding: 16px 12px;
    }

    .scs-prc .scs-prc-form-title {
        font-size: 18px;
    }

    .scs-prc .scs-prc-star-option {
        font-size: 30px;
    }

    .scs-prc .scs-prc-submit {
        width: 100%;
    }
}

/* Păstrează spațierea caruselului pe pagina produsului */
.single-product .scs-prc {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

/* Corecție layout pentru tema custom */
.single-product .scs-prc {
    display: flow-root;
    clear: both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.single-product .scs-prc-review-row,
.single-product .scs-prc-form-row {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
