/* Styling for rating summary */
.cr-c0c1be49-rating-summary {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    margin-bottom: 10px;
    width: 100%;
}
.cr-c0c1be49-stars-display {
    display: inline-flex;
    gap: 2px;
}
.cr-c0c1be49-star {
    display: inline-flex;
}
.cr-c0c1be49-star svg {
    width: 20px;
    height: 20px;
    fill: #e0e0e0;
    transition: fill 0.2s, color 0.2s;
}
.cr-c0c1be49-star.active svg {
    fill: #ffcc00;
}
.cr-c0c1be49-rating-text {
    font-size: 14px;
    font-weight: 500;
}

/* Reviews wrapper and layout */
.cr-c0c1be49-reviews-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin: 40px 0;
    font-family: inherit;
    width: 100%;
}
@media (max-width: 768px) {
    .cr-c0c1be49-reviews-wrapper {
        flex-direction: column !important;
        gap: 30px !important;
    }
}

.cr-c0c1be49-reviews-list,
.cr-c0c1be49-review-form-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.cr-c0c1be49-reviews-list h3,
.cr-c0c1be49-review-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

.cr-c0c1be49-reviews-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
    width: 100%;
}

/* Review Card styling */
.cr-c0c1be49-review-card {
    background: #fdfdfd;
    border: 1px solid #eef2f5;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    position: relative;
}
.cr-c0c1be49-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
    padding-right: 30px; /* Room for delete button */
}
.cr-c0c1be49-reviewer {
    font-size: 16px;
    color: #333;
}
.cr-c0c1be49-review-rating {
    display: inline-flex;
    gap: 2px;
}
.cr-c0c1be49-review-rating svg {
    width: 18px;
    height: 18px;
    fill: #e0e0e0;
}
.cr-c0c1be49-review-rating .cr-c0c1be49-star.active svg {
    fill: #ffcc00;
}
.cr-c0c1be49-review-date {
    font-size: 12px;
    color: #888;
}
.cr-c0c1be49-review-content p {
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.5;
}

/* Review Photo Styling */
.cr-c0c1be49-review-photo {
    margin-top: 10px;
}
.cr-c0c1be49-review-photo img {
    width: 100px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Admin delete button */
.cr-c0c1be49-delete-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s, background-color 0.2s;
}
.cr-c0c1be49-delete-btn:hover {
    background: #cc0000;
}

/* Review Form styling */
.cr-c0c1be49-review-form-container {
    background: #fafafa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
}
.cr-c0c1be49-review-form {
    width: 100%;
}
.cr-c0c1be49-form-group {
    margin-bottom: 20px;
    text-align: left;
}
.cr-c0c1be49-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}
.cr-c0c1be49-form-group input[type="text"],
.cr-c0c1be49-form-group textarea,
.cr-c0c1be49-form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.cr-c0c1be49-form-group input[type="text"]:focus,
.cr-c0c1be49-form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
}

/* Stars Selector input */
.cr-c0c1be49-stars-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.cr-c0c1be49-stars-input input {
    display: none;
}
.cr-c0c1be49-stars-input label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
    margin-right: 5px;
}
.cr-c0c1be49-stars-input label:hover,
.cr-c0c1be49-stars-input label:hover ~ label,
.cr-c0c1be49-stars-input input:checked ~ label {
    color: #ffcc00;
}

.cr-c0c1be49-submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.cr-c0c1be49-submit-btn:hover {
    background-color: #005177;
}
.cr-c0c1be49-message {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
