/* Review audio clip player (Pages/CompanyCard/_ReviewAudio.cshtml) — the company page and the carousel embed share it. */
.trust-audio {
    display: flex;
    flex-direction: column;
    gap: 6px;
    direction: rtl;
}

.trust-audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    max-width: 440px;
    padding: 6px 6px 6px 14px;
    border: 1px solid #F3D3DE;
    border-radius: 10px;
    background: #FBEFF3;
    min-width: 0;
    /* Pulled out by its padding + border so the play button, not the pink frame, lines up with the review text. */
    margin-inline-start: -7px;
}

.trust-audio-play {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #BD1854 !important;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(189, 24, 84, 0.25);
}

/* Stronger than swiperRanks.css's button[class^="trust-"]:focus/:hover reset (the carousel, and site.min.css in production). */
.trust-audio button.trust-audio-play:hover,
.trust-audio button.trust-audio-play:focus {
    background-color: #BD1854 !important;
    box-shadow: 0 2px 6px rgba(189, 24, 84, 0.25);
}

.trust-audio button.trust-audio-play:focus-visible {
    outline: 3px solid #186DBD !important;
    outline-offset: 2px;
}

.trust-audio-icon-pause,
.trust-audio.is-playing .trust-audio-icon-play {
    display: none;
}

.trust-audio.is-playing .trust-audio-icon-pause {
    display: block;
}

.trust-audio-label {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    color: #212529;
    white-space: nowrap;
}

/* Bars that don't fit wrap to a hidden second line, so narrow players show fewer of them. */
.trust-audio-wave {
    flex: 1 1 auto;
    min-width: 0;
    height: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0 2px;
    overflow: hidden;
}

.trust-audio-wave i {
    flex: 0 0 3px;
    width: 3px;
    border-radius: 2px;
    background: #E7B3C6;
}

.trust-audio-wave i.is-played {
    background: #BD1854;
}

.trust-audio-time {
    flex: 0 0 auto;
    margin-inline-start: auto;
    font-size: 13px;
    color: #6C757D;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.trust-audio-elapsed {
    color: #BD1854;
}

.trust-audio-note {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-inline-start: 4px;
    font-size: 12px;
    font-weight: 300;
    color: #6C757D;
}

.trust-audio-note svg {
    flex: 0 0 auto;
}

/* Carousel card (_SwiperRanks.cshtml): the carousel board's player, and a text box shortened by the player's height so the text ends level with cards without a clip. */
.trust-has-audio .trust-audio {
    margin-bottom: 3px;
}

.trust-has-audio .trust-audio-player {
    gap: 8px;
    max-width: none;
    padding: 5px 5px 5px 10px;
    margin-inline-start: -6px;
}

.trust-has-audio .trust-audio-play {
    width: 44px;
    height: 44px;
}

/* Host pages may force their own font with !important (see swiperRanks.css). */
.trust-has-audio .trust-audio-label,
.trust-has-audio .trust-audio-time,
.trust-has-audio .trust-audio-note {
    font-family: 'EzerKashiach' !important;
}

.trust-has-audio .trust-audio-label {
    font-size: 14px;
    font-weight: 800;
}

.trust-has-audio .trust-audio-wave {
    height: 22px;
    justify-content: safe center;
}

.trust-has-audio .trust-audio-time {
    font-size: 12px;
    font-weight: 700;
    color: #5C636A;
}

.trust-has-audio .trust-audio-note {
    gap: 6px;
    padding-inline-start: 6px;
    font-weight: 400;
}

.trust-has-audio .trust-VerbalReviewDiv {
    height: 72px;
}

.trust-has-audio .trust-VerbalReview.active {
    max-height: 72px;
}

@media (max-width: 767px) {
    .trust-has-audio .trust-VerbalReviewDiv {
        height: 105px;
    }

    .trust-has-audio .trust-VerbalReview.active {
        max-height: 97px;
    }
}
