/* EZ Room Rating - Public Styles */

.ezrr-rating-form,
.ezrr-breakdown,
.ezrr-overall {
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.ezrr-rating-form.ezrr-locked {
    background: #f7f7f8;
    border: 1px solid #e2e2e5;
    border-radius: 8px;
    padding: 16px 20px;
    color: #555;
}

.ezrr-rating-form {
    background: #fff;
    border: 1px solid #e2e2e5;
    border-radius: 10px;
    padding: 20px;
    max-width: 560px;
}

.ezrr-message {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.ezrr-message.ezrr-success {
    background: #eafaf0;
    color: #1e7e42;
    border: 1px solid #b8e6c9;
}

.ezrr-message.ezrr-error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2bd;
}

.ezrr-criteria-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ezrr-criteria-label {
    flex: 1;
    font-size: 14px;
    color: #333;
}

/* Stars - interactive input */
.ezrr-stars {
    position: relative;
    display: inline-block;
    unicode-bidi: bidi-override;
    direction: ltr; /* so star order stays visually left-to-right for click math */
    font-size: 22px;
    line-height: 1;
}

.ezrr-stars-input .ezrr-star {
    cursor: pointer;
    color: #d9d9d9;
    transition: color 0.15s ease;
}

.ezrr-stars-input .ezrr-star.is-filled,
.ezrr-stars-input .ezrr-star.is-hover {
    color: #f5a623;
}

/* Stars - readonly display (breakdown/overall shortcodes) */
.ezrr-stars-readonly {
    position: relative;
    color: #d9d9d9;
}

.ezrr-stars-readonly .ezrr-stars-empty {
    color: #d9d9d9;
}

.ezrr-stars-readonly .ezrr-stars-filled {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    overflow: hidden;
    white-space: nowrap;
    color: #f5a623;
    direction: ltr;
}

.ezrr-comment-row {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ezrr-comment-row label {
    font-size: 13px;
    color: #555;
}

.ezrr-comment-row textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
}

.ezrr-submit-btn {
    margin-top: 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ezrr-submit-btn:hover {
    background: #1a5a8a;
}

.ezrr-submit-btn:disabled {
    background: #a9c4d9;
    cursor: not-allowed;
}

/* Breakdown shortcode */
.ezrr-breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.ezrr-breakdown-label {
    flex: 1;
    color: #333;
}

.ezrr-breakdown-number {
    font-weight: 600;
    color: #333;
}

.ezrr-breakdown-votes {
    color: #888;
    font-size: 12px;
}

/* Overall shortcode */
.ezrr-overall {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.ezrr-overall-number {
    font-weight: 700;
    color: #333;
}

.ezrr-overall-votes {
    color: #888;
    font-size: 12px;
}

.ezrr-error {
    color: #b3261e;
    direction: rtl;
}
