/* =========================================================
   WRC Review Carousel — Full Width, Clean Layout
   ========================================================= */

/* Wrapper — force full width inside Elementor containers */
.wrc-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
}

.wrc-wrapper *,
.wrc-wrapper *::before,
.wrc-wrapper *::after {
    box-sizing: border-box;
}

/* Notice */
.wrc-notice {
    padding: 15px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    text-align: center;
    margin: 0;
}

/* ---------------- Product Header ---------------- */
.wrc-product-header {
    text-align: center;
    margin: 0 0 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.wrc-product-title {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 12px;
    color: #222;
}

.wrc-product-rating-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wrc-average-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.wrc-average-rating .star {
    color: #e0e0e0;
    font-size: 20px;
    line-height: 1;
}

.wrc-average-rating .star.filled {
    color: #ffb400;
}

.wrc-rating-text {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
    font-weight: 500;
}

/* ---------------- Carousel ---------------- */
.wrc-carousel-container {
    position: relative;
    margin: 0 0 50px;
    padding: 0 55px;   /* room for arrows */
}

.wrc-carousel-container .swiper {
    overflow: hidden;
    padding: 15px 8px 30px;
}

/* Make each slide same height and stretch card */
.wrc-carousel-container .swiper-wrapper {
    align-items: stretch;
}

.wrc-carousel-container .swiper-slide {
    height: auto;
    display: flex;
}

/* Arrows */
.wrc-carousel-container .swiper-button-next,
.wrc-carousel-container .swiper-button-prev {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    color: #0073aa;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    margin-top: -21px;
}

.wrc-carousel-container .swiper-button-next:hover,
.wrc-carousel-container .swiper-button-prev:hover {
    background: #0073aa;
    color: #fff;
    transform: scale(1.08);
}

.wrc-carousel-container .swiper-button-next::after,
.wrc-carousel-container .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

/* Dots */
.wrc-carousel-container .swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 20px;
    text-align: center;
}

.wrc-carousel-container .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #ccc;
    opacity: 1;
    transition: all 0.2s ease;
}

.wrc-carousel-container .swiper-pagination-bullet-active {
    background: #0073aa;
    width: 26px;
    border-radius: 5px;
}

/* ---------------- Review Card ---------------- */
.wrc-review-item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wrc-review-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.wrc-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.wrc-reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.wrc-reviewer-avatar {
    flex-shrink: 0;
}

.wrc-reviewer-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.wrc-reviewer-details {
    min-width: 0;
    flex: 1;
}

.wrc-reviewer-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #222;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrc-verified-badge {
    display: inline-block;
    font-size: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.wrc-review-rating {
    line-height: 1;
    margin-top: 3px;
}

.wrc-review-rating .star {
    color: #e0e0e0;
    font-size: 16px;
    margin-right: 1px;
}

.wrc-review-rating .star.filled {
    color: #ffb400;
}

.wrc-review-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

.wrc-review-content {
    color: #555;
    font-size: 14px;
    line-height: 1.65;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.wrc-review-content p {
    margin: 0 0 10px;
}

.wrc-review-content p:last-child {
    margin-bottom: 0;
}

/* No reviews */
.wrc-no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-style: italic;
    width: 100%;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
    margin: 0;
}

/* ---------------- Review Form ---------------- */
.wrc-review-form-wrapper {
    background: #f8f9fb;
    border: 1px solid #eaeaea;
    padding: 35px;
    border-radius: 14px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.wrc-form-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 25px;
    color: #222;
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.wrc-form-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 500;
}

.wrc-form-message.success {
    background: #e7f7ed;
    color: #1e7e34;
    border: 1px solid #b7e4c7;
}

.wrc-form-message.error {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
}

.wrc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.wrc-form-group {
    margin-bottom: 22px;
}

.wrc-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.wrc-form-group .required {
    color: #e53935;
}

.wrc-form-group input[type="text"],
.wrc-form-group input[type="email"],
.wrc-form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #d8dbe0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.5;
}

.wrc-form-group input[type="text"]:focus,
.wrc-form-group input[type="email"]:focus,
.wrc-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12);
}

.wrc-form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* ---------------- Star Rating Input ---------------- */
.wrc-star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    padding: 6px 0;
}

.wrc-star-rating-input input {
    display: none;
}

.wrc-star-rating-input label {
    font-size: 34px;
    color: #d8dbe0;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    margin: 0;
    line-height: 1;
    padding: 0 2px;
}

.wrc-star-rating-input label:hover,
.wrc-star-rating-input label:hover ~ label,
.wrc-star-rating-input input:checked ~ label {
    color: #ffb400;
}

.wrc-star-rating-input label:hover {
    transform: scale(1.15);
}

/* ---------------- Submit Button ---------------- */
.wrc-submit-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
    margin-top: 5px;
}

.wrc-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 42px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    letter-spacing: 0.3px;
}

.wrc-submit-btn:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.25);
}

.wrc-submit-btn:disabled {
    background: #b0b7bf;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wrc-loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.wrc-loading-spinner .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: wrc-spin 0.8s linear infinite;
}

/* =========================================================
   Submit Review button — styled to match the theme's SHOP NOW button
   ========================================================= */

.wrc-submit-btn {
    display: inline-block;
    background: #5a3a1e !important;        /* dark brown — match your Shop Now */
    color: #f5e6d3 !important;             /* cream / tan text */
    border: none !important;
    border-radius: 50px !important;        /* pill shape */
    padding: 15px 42px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;  /* matches SHOP NOW */
    font-family: inherit !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    line-height: 1;
}

.wrc-submit-btn:hover:not(:disabled) {
    background: #3d2612 !important;        /* slightly darker on hover */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 58, 30, 0.3);
}

.wrc-submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(90, 58, 30, 0.3);
}

.wrc-submit-btn:disabled {
    background: #b0a090 !important;
    color: #ffffff !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* =========================================================
   Review Link widget — fixed layout + theme-proof button
   ========================================================= */

/* Root wrapper — bulletproof flex layout */
.wrc-rl,
.wrc-rl.wrc-rl-inline,
.wrc-rl.wrc-rl-stacked {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px;
    line-height: 1.4;
    box-sizing: border-box;
}

.wrc-rl *,
.wrc-rl *::before,
.wrc-rl *::after {
    box-sizing: border-box;
}

/* --- Inline variant: stars + button side by side --- */
.wrc-rl-inline {
    flex-direction: row !important;
    justify-content: flex-start;
}

/* --- Stacked variant: one below the other --- */
.wrc-rl-stacked {
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* --- Stars group --- */
.wrc-rl-stars {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px;
    line-height: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* --- Individual star --- */
.wrc-rl-star {
    display: inline-block !important;
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-style: normal;
    text-decoration: none !important;
}

.wrc-rl-star.filled {
    color: #ffb400;
}

/* --- Count text --- */
.wrc-rl-count {
    display: inline-block;
    font-size: 13px !important;
    color: #666 !important;
    font-weight: 500;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
}

/* =========================================================
   The button — FULL override, ignores theme styles
   ========================================================= */

.wrc-rl a.wrc-rl-btn,
.wrc-rl .wrc-rl-btn,
a.wrc-rl-btn,
.wrc-rl-btn {
    /* Reset everything the theme might set */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    /* Shape */
    padding: 9px 22px !important;
    border: 2px solid #5a3a1e !important;
    border-radius: 50px !important;
    background: transparent !important;

    /* Text */
    color: #5a3a1e !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-shadow: none !important;
    line-height: 1 !important;
    white-space: nowrap !important;

    /* Kill any theme link underline / pseudo-elements */
    box-shadow: none !important;
    outline: none !important;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    min-height: 40px;
    max-width: 100%;
    vertical-align: middle;
}

/* Kill any theme underline ::after / ::before */
.wrc-rl-btn::before,
.wrc-rl-btn::after {
    content: none !important;
    display: none !important;
}

/* Hover */
.wrc-rl-btn:hover,
.wrc-rl-btn:focus,
.wrc-rl-btn:active,
.wrc-rl a.wrc-rl-btn:hover,
a.wrc-rl-btn:hover {
    background: #5a3a1e !important;
    color: #f5e6d3 !important;
    border-color: #5a3a1e !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(90, 58, 30, 0.25) !important;
    outline: none !important;
}

/* Button text span */
.wrc-rl-btn-text {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

/* Button icon */
.wrc-rl-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.wrc-rl-btn-icon svg,
.wrc-rl-btn-icon i {
    width: 13px !important;
    height: 13px !important;
    font-size: 13px !important;
    display: block !important;
    fill: currentColor !important;
    stroke: none !important;
}

.wrc-rl-btn:hover .wrc-rl-btn-icon {
    transform: translateY(3px);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 640px) {
    .wrc-rl-inline {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .wrc-rl-btn {
        padding: 9px 18px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   Smooth scroll + anchor offset
   ========================================================= */

html {
    scroll-behavior: smooth;
}

#reviews,
[id^="reviews"] {
    scroll-margin-top: 100px;
}

@keyframes wrc-spin {
    to { transform: rotate(360deg); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .wrc-carousel-container {
        padding: 0 45px;
    }

    .wrc-review-form-wrapper {
        padding: 28px;
    }

    .wrc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .wrc-wrapper {
        padding: 10px 0;
    }

    .wrc-product-title {
        font-size: 22px;
    }

    .wrc-carousel-container {
        padding: 0 10px;
        margin-bottom: 35px;
    }

    .wrc-carousel-container .swiper-button-next,
    .wrc-carousel-container .swiper-button-prev {
        display: none;
    }

    .wrc-review-form-wrapper {
        padding: 20px;
        border-radius: 10px;
    }

    .wrc-form-title {
        font-size: 18px;
    }

    .wrc-star-rating-input label {
        font-size: 28px;
    }

    .wrc-submit-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .wrc-review-header {
        flex-direction: column;
        gap: 8px;
    }

    .wrc-review-date {
        padding-top: 0;
    }
}