#form_review_popup .lg-label-error {
    background: #FFAAAA;
    border: 1px solid #DD0000;
    color: #DD0000;
    font-size: 15px;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

#form_review_popup > p {
    font-size: 1.125rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    margin: 0 0 20px 0;
    color: inherit;
}

.form-review-message {
    font-size: 16px;
    padding: 20px;
    text-align: center;
}

.form-block {
    margin-bottom: 20px;
}

.form-block * {
    display: block;
    width: 100%;
    text-align: left;
}

.form-block.star-rating select {
    width: 70px;
    margin-right: 5px;
    display: inline-block;
}

.form-block.star-rating img {
    float: right;
}

.form-block textarea {
    height: 100px;
    border: 1px solid #888888;
}

.form-block input {
    border: 1px solid #888888;
}

#form_review_popup #submit_review {
    background: var(--lgcomments-accent, var(--lgcomments-accent, #3498db));
    border: 1px solid var(--lgcomments-accent, var(--lgcomments-accent, #3498db));
    padding: 10px;
    border-radius: 50px;
    display: inline-block;
    color: var(--lgcomments-accent-text, #ffffff);
    text-align: center;
    cursor: pointer;
}

#form_review_popup .required.empty {
    border-color: #CC0000;
}

#form_review_popup #submit_review:hover {
    background: #f9f9f9;
    color: #333333;
}

#form_review_popup .empty {
    border: 1px solid red;
}

#form_review_popup #submit_review.disabled,
#form_review_popup #submit_review.disabled:hover {
    background: #D9D4D1;
    border: 1px solid #D9D4D1;
    color: #333333;
    cursor: none;
}

.lgcomments-fancybox.fancybox-opened {
    z-index: 9999999 !important;
}

.lgcomments-fancybox .fancybox-skin {
    background: #fff;
    border-radius: 14px;
    border-top: 5px solid var(--lgcomments-accent, #3498db);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.22);
    color: #333;
}

.lgcomments-fancybox .fancybox-close {
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: none;
    font-size: 22px;
    line-height: 28px;
    text-align: center;
    color: #aaa;
    text-decoration: none;
}

.lgcomments-fancybox .fancybox-close::after {
    content: '×';
    font-size: 24px;
    color: #aaa;
}

.lgcomments-fancybox .fancybox-close:hover::after {
    color: #555;
}

.lgcomments-fancybox .fancybox-close img {
    display: none;
}

.lgcomments-toast-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999998;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lgcomments-toast-backdrop.lgcomments-toast--show {
    opacity: 1;
}

.lgcomments-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    background: #fff;
    color: #333;
    padding: 48px 56px 40px;
    border-radius: 14px;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.22);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    z-index: 9999999;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    min-width: 340px;
    max-width: 500px;
    text-align: center;
    border-top: 5px solid var(--lgcomments-accent, #3498db);
}

.lgcomments-toast.lgcomments-toast--show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.lgcomments-toast.lgcomments-toast--error {
    border-top-color: #e74c3c;
}

.lgcomments-toast-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0;
}

.lgcomments-toast-close:hover {
    color: #555;
}

.lg-char-counter {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 3px;
    margin-bottom: 4px;
    display: flex !important;
    width: 100% !important;
    justify-content: space-between;
    transition: color 0.3s;
}
.lg-char-count,
.lg-char-motivation {
    display: inline !important;
    text-align: right;
}
.lg-char-count {
    font-weight: 600;
}
.lg-char-counter.lg-motivation-low  { color: #e74c3c; }
.lg-char-counter.lg-motivation-mid  { color: #e67e22; }
.lg-char-counter.lg-motivation-good { color: #f0b429; }
.lg-char-counter.lg-motivation-great{ color: #27ae60; }