/* =========================================================
   RIDE GUDAURI · Trustindex reviews widget · brand skin
   ---------------------------------------------------------
   How to use:
   1. In Elementor, give the container that holds the
      Trustindex widget the CSS class:  rg-reviews
   2. Paste this file into Appearance > Customize > Additional
      CSS (or the child theme stylesheet).
   3. In the Trustindex settings pick a plain slider layout,
      light background, and switch autoplay off.

   Rules follow the brand book: one main colour (black),
   orange only for the stars, no rounded corners, no shadows.
   ========================================================= */

.rg-reviews {
    --rg-black: #0C0C0C;
    --rg-orange: #FA4936;
    --rg-grey: #5c5c5c;
    --rg-line: #d9d9d9;
}

/* ---------- base: font and colour ---------- */

.rg-reviews .ti-widget,
.rg-reviews .ti-widget * {
    font-family: inherit !important;
    letter-spacing: 0 !important;
}

.rg-reviews .ti-widget-container,
.rg-reviews .ti-reviews-container {
    color: var(--rg-black) !important;
}

/* ---------- card ---------- */

.rg-reviews .ti-review-item {
    padding: 0 12px !important;
}

.rg-reviews .ti-review-item > .ti-inner {
    display: flex !important;
    flex-direction: column !important;

    height: 100% !important;
    min-height: 300px;

    padding: 36px !important;

    border: 1px solid var(--rg-black) !important;
    border-radius: 0 !important;

    background: #fff !important;
    background-image: none !important;

    box-shadow: none !important;
}

/* kill decorative corners / quote marks some layouts add */
.rg-reviews .ti-review-item > .ti-inner::before,
.rg-reviews .ti-review-item > .ti-inner::after {
    display: none !important;
    content: none !important;
}

/* ---------- order inside the card:
   stars, text, read more, then author at the bottom ---------- */

.rg-reviews .ti-stars {
    order: 1;
    display: flex !important;
    align-items: center;
    gap: 3px;

    margin: 0 0 20px !important;
}

.rg-reviews .ti-review-content,
.rg-reviews .ti-review-text-container {
    order: 2;
}

.rg-reviews .ti-read-more {
    order: 3;
}

.rg-reviews .ti-review-header {
    order: 4;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px;

    margin: auto 0 0 !important;
    padding: 24px 0 0 !important;

    border-top: 1px solid var(--rg-line);
}

/* ---------- stars: orange squares-free stars drawn with a mask
   (the plugin loads stars as <img>, so colour cannot be set
   directly; the image is pushed out of its box and the box is
   painted with our own star shape) ---------- */

.rg-reviews .ti-stars img.ti-star {
    width: 18px !important;
    height: 18px !important;

    margin: 0 !important;

    object-position: -9999px -9999px;

    background-color: var(--rg-orange);

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.6 7.1.9-5.2 5 1.3 7.1L12 18.1 5.7 21.6 7 14.5l-5.2-5 7.1-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.6 7.1.9-5.2 5 1.3 7.1L12 18.1 5.7 21.6 7 14.5l-5.2-5 7.1-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* empty star (file name e.svg) */
.rg-reviews .ti-stars img.ti-star[src$="/e.svg"] {
    background-color: var(--rg-line);
}

/* half star (file name h.svg) */
.rg-reviews .ti-stars img.ti-star[src$="/h.svg"] {
    background: linear-gradient(90deg, var(--rg-orange) 50%, var(--rg-line) 50%);
}

/* "verified" badge: extra icon, not needed */
.rg-reviews .ti-verified-review {
    display: none !important;
}

/* ---------- review text ---------- */

.rg-reviews .ti-review-content,
.rg-reviews .ti-review-text-container {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--rg-black) !important;

    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* review title, first line in bold */
.rg-reviews .ti-review-content strong {
    display: inline-block;
    margin-bottom: 6px;

    font-weight: 700 !important;
    text-transform: uppercase;
}

/* emoji inside reviews: keep them small and calm */
.rg-reviews .ti-review-content img.emoji {
    width: 1em !important;
    height: 1em !important;

    filter: grayscale(1);
}

.rg-reviews .ti-read-more {
    margin: 12px 0 0 !important;
    padding: 0 !important;
}

.rg-reviews .ti-read-more span {
    color: var(--rg-black) !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-transform: uppercase;
}

/* ---------- author row ---------- */

/* avatars off: fewer colours and icons */
.rg-reviews .ti-profile-img {
    display: none !important;
}

.rg-reviews .ti-profile-details {
    margin: 0 !important;
    padding: 0 !important;

    text-align: left !important;
}

.rg-reviews .ti-name {
    color: var(--rg-black) !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
}

.rg-reviews .ti-date,
.rg-reviews .ti-date span {
    color: var(--rg-grey) !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    text-transform: lowercase;
}

/* platform mark (Google / Tripadvisor): kept as the source
   credit, moved to the right and shown in black and white */
.rg-reviews .ti-platform-icon {
    position: static !important;
    order: 2;

    margin: 0 !important;
}

.rg-reviews .ti-platform-icon img {
    width: 20px !important;
    height: 20px !important;

    filter: grayscale(1) contrast(1.2);
}

/* ---------- slider arrows: square, black ---------- */

.rg-reviews .ti-controls .ti-next,
.rg-reviews .ti-controls .ti-prev {
    width: 52px !important;
    height: 52px !important;

    border: 1px solid var(--rg-black) !important;
    border-radius: 0 !important;

    background-color: #fff !important;

    box-shadow: none !important;
}

.rg-reviews .ti-controls .ti-next {
    background-color: var(--rg-black) !important;
}

.rg-reviews .ti-controls .ti-next::before,
.rg-reviews .ti-controls .ti-next::after {
    background-color: #fff !important;
    border-color: #fff !important;
}

.rg-reviews .ti-controls .ti-prev::before,
.rg-reviews .ti-controls .ti-prev::after {
    background-color: var(--rg-black) !important;
    border-color: var(--rg-black) !important;
}

/* progress line under the slider */
.rg-reviews .ti-controls-line {
    height: 1px !important;

    border-radius: 0 !important;

    background: var(--rg-line) !important;
}

.rg-reviews .ti-controls-line .dot {
    border-radius: 0 !important;

    background: var(--rg-black) !important;
}

/* ---------- mobile ---------- */

@media (max-width: 767px) {
    .rg-reviews .ti-review-item {
        padding: 0 6px !important;
    }

    .rg-reviews .ti-review-item > .ti-inner {
        min-height: 0;
        padding: 24px !important;
    }

    .rg-reviews .ti-review-content,
    .rg-reviews .ti-review-text-container {
        font-size: 16px !important;
    }
}
