/* Outer wrapper – constrain to container width */
.ca-reviews-widget {
    width: 100%;
}

.ca-reviews-inner {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

/* Headings */
.ca-reviews-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ca-reviews-subtitle {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 1.5rem;
}

/* Card */
.ca-reviews-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
}

/* Single review */
.ca-review-item {
    padding: 16px 0;
}

.ca-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* Avatar initials */
.ca-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #313131;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Name + date */
.ca-review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ca-review-name {
    font-weight: 600;
    font-size: 0.98rem;
}

.ca-review-date {
    font-size: 0.8rem;
    color: #888888;
}

/* Rating stars on the right */
.ca-review-rating {
    margin-left: auto;
    font-size: 0.9rem;
    color: #d3d3d3;
    white-space: nowrap;
}

.ca-star {
    display: inline-block;
    margin-left: 2px;
}

.ca-star--filled {
    color: #ffb400;
}

/* Content */
.ca-review-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
    margin-top: 4px;
}

/* Divider between reviews */
.ca-review-divider {
    height: 1px;
    background-color: #e6e6e6;
    margin-top: 16px;
}

/* Empty state */
.ca-reviews-widget--empty .ca-reviews-inner {
    text-align: center;
}

.ca-reviews-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    border: 1px solid #313131;
    padding: 10px 22px;
    border-radius: 999px; /* round pill */
    background-color: #313131;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.ca-reviews-empty-btn:hover{
    background-color: #ffffff;
    color: #313131;
    transform: translateY(-1px);
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .ca-reviews-card {
        padding: 16px 18px;
    }

    .ca-review-header {
        align-items: flex-start;
    }

    .ca-review-rating {
        margin-left: 0;
        margin-top: 4px;
    }
}

.ca-review-form-wrapper {
    max-width: 1140px;
    margin: 2rem auto 0;
    text-align: left;
}

.ca-review-form .comment-form-author,
.ca-review-form .comment-form-email,
.ca-review-form .comment-form-rating,
.ca-review-form .comment-form-comment {
    margin-bottom: 12px;
}

.ca-review-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.ca-review-form input[type="text"],
.ca-review-form input[type="email"],
.ca-review-form select,
.ca-review-form textarea {
    width: 100%;
    max-width: 100%;
}
