/* ---------- Carousel Wrapper ---------- */
#ewt-reviews-carousel {
    width: 100%;
    margin: 80px auto;
    position: relative;
    display: flex;
    align-items: center;
}

.ewt-carousel-viewport {
    overflow: hidden;
    width: 100%;
    /*background: #f8f9fb; */
}

.ewt-carousel-track {
    display: flex;
    gap: 30px;
}

/* ---------- Review Card ---------- */
.ewt-review-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* pushes <small> to bottom */
    min-width: 250px;
    background: #ffffff;
    color: #333;
    padding: 30px 25px;
    border: 1px solid #4472C4;
    border-radius: 16px;
    position: relative;
}

.ewt-review-content {
    display: flex;
    flex-direction: column;
    gap: 8px; /* controls spacing between header, stars, paragraph */
}

/* ---------- Review Title ---------- */
.ewt-review-card h4 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #4472C4; /* primary color */
}

/* ---------- Star Ratings ---------- */
.ewt-stars {
    color: #f5b301; /* gold stars */
    font-size: 18px;
    margin-bottom: 12px;
}

/* ---------- Review Text ---------- */
.ewt-review-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 12px;
}

/* ---------- Review Date / Small Text ---------- */
.ewt-review-card small {
    margin-top: 0;
    color: #999;
    font-style: italic;
    font-size: 13px;
}

.ewt-review-card small::before {
    content: "";
    display: block;
    height: 1px;
    background: #eef0f4;
    margin: 6px 0;
}

/* ---------- Arrows ---------- */
.ewt-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ddd;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

/* Arrow hover effect */
.ewt-arrow:hover {
    color: #4472C4;
    transform: scale(1.08);
    background: #f0f4fb;
}

.ewt-arrow.left {
    margin-right: 15px;
}

.ewt-arrow.right {
    margin-left: 15px;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .ewt-review-card {
        min-width: 280px;
    }
}

/* ---------- Leave a Review Button ---------- */
.ewt-add-review-btn {
    background: #4472C4;  /* primary color */
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.ewt-add-review-btn:hover {
    background: #2e5aa8; /* slightly darker primary on hover */
    transform: translateY(-2px);
}

/* ---------- Modal ---------- */
.ewt-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ewt-modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 420px;
    color: #333;
}

.ewt-modal input,
.ewt-modal textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ---------- Modal Submit Button ---------- */
.ewt-modal #ewt-submit-review {
    background: #4472C4;  /* same as leave a review button */
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.emt-modal #ewt-submit-review:hover {
    background: #2e5aa8; /* slightly darker on hover */
    transform: translateY(-2px);
}

/* ---------- Star Rating ---------- */
.ewt-rating {
    display: inline-flex;
    flex-direction: row-reverse;
}

.ewt-rating span {
    font-size: 26px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease;
}

.ewt-rating span:hover,
.ewt-rating span:hover ~ span {
    color: #f7b84a;
}

.ewt-rating span.active {
    color: #f5a623;
}

/* ---------- Close Button ---------- */
.ewt-close {
    float: right;
    cursor: pointer;
    font-size: 22px;
    color: #333;
}
