/*
    Project-authored styles for the public pages.

    Not app.css, which belongs to the purchased theme and is replaced wholesale
    when the theme is. Not custom.css either: the admin panel's theme editor
    reads that file into a textarea and writes the textarea back, so anything
    put there is one save away from being gone - which is worth knowing, because
    the category-label wrapping fix is still sitting in it.
*/

/* --------------------------------------------------------------- review provenance */

/*
    Where a review came from. Small and quiet: it sits beside a review title,
    and a badge that shouts is a badge that gets ignored on the tenth review
    down the page.
*/
.rv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: middle;
}

.rv-badge i {
    font-size: 0.78rem;
}

/*
    Green, and the only one of the two that is. A verified review is the one
    claim on this page that somebody was actually a customer, and it should not
    look like the weaker statement beside it.
*/
.rv-badge-verified {
    color: #146c43;
    background: rgba(25, 135, 84, 0.12);
}

/*
    Deliberately neutral. "Requested" means the business asked through a link
    anybody could have followed - it is a fact about the business, not about the
    reviewer, and colouring it like an endorsement would be the quickest way to
    make the green one mean nothing.
*/
.rv-badge-requested {
    color: rgb(var(--text_muted_color));
    background: rgba(var(--text_muted_color), 0.1);
}

/* --------------------------------------------------------------- account chooser */

/*
    The two doors on the sign-in page. Sized to be pressed on a phone and to
    read as a choice rather than a list: whichever one a person picks is the
    only thing standing between them and typing a password into the wrong form.
*/
.rv-door {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border: 1px solid rgba(var(--text_color), 0.14);
    border-radius: var(--border_radius);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}

.rv-door:hover,
.rv-door:focus-visible {
    border-color: rgb(var(--primary_color));
    background: rgba(var(--primary_color), 0.04);
    color: inherit;
}

.rv-door:active {
    transform: translateY(1px);
}

.rv-door-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 19px;
    color: rgb(var(--primary_color));
    background: rgba(var(--primary_color), 0.1);
}

/* The business door is coloured like the rest of the business area, so the
   person who belongs there recognises it before reading the label. */
.rv-door-icon-business {
    color: #8a5a00;
    background: rgba(214, 158, 46, 0.14);
}

.rv-door-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rv-door-text strong {
    font-size: 0.98rem;
    font-weight: 600;
}

.rv-door-text span {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgb(var(--text_muted_color));
}

.rv-door-arrow {
    margin-inline-start: auto;
    color: rgb(var(--text_muted_color));
}
