/* TripAdvisor Floating Review Widget */

/* Collapse parent section — all widget elements are position:fixed */
.uk-section:has(#ta-float) {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
}

#ta-float, #ta-float *, #ta-fab, #ta-fab * { box-sizing: border-box; }
#ta-float {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
        "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.ta-hidden { display: none !important; }

.ta-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    z-index: 2147483000;
    overflow: hidden;
}

.ta-float__close {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
    position: absolute;
    right: 2px;
    top: 2px;
}
.ta-float__close:hover { background: rgba(0,0,0,.06); }

.ta-float__body { padding: 10px 12px 12px; }
.ta-widget-slot { min-height: 50px; }

.ta-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    margin-right: 10px;
}
.ta-badge:hover { background: rgba(0,0,0,.04); text-decoration: none; }

.ta-badge__logo { width: 140px; height: auto; display: block; }
.ta-badge__meta { display: grid; gap: 2px; min-width: 90px; justify-items: start; }
.ta-badge__rating { font-weight: 800; font-size: 14px; line-height: 1.1; }
.ta-badge__den { font-weight: 700; opacity: .75; margin-left: 2px; }
.ta-badge__count { font-size: 12px; opacity: .8; line-height: 1.1; }
.ta-rating-fallback { font-size: 13px; opacity: .75; margin-top: 10px; }

.ta-feedback {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,.15);
}
.ta-feedback__label { font-size: 12px; font-weight: 700; margin-bottom: 6px; opacity: .9; }

.ta-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    justify-content: space-around;
    padding: 0 15px;
}

.ta-star {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 35px;
    line-height: 1;
    color: rgba(0,0,0,.25);
    transition: color .12s ease, transform .05s ease;
}
.ta-star:hover { transform: translateY(-1px); }
.ta-star:focus-visible {
    outline: 2px solid rgba(31,111,235,.5);
    outline-offset: 3px;
    border-radius: 6px;
}
.ta-star.is-on { color: var(--ta-star-color, #1f6feb); }
.ta-star.is-lock { color: color-mix(in srgb, var(--ta-star-color, #1f6feb) 70%, #000); }
.ta-stars.is-hovering .ta-star.is-hover { color: color-mix(in srgb, var(--ta-star-color, #1f6feb) 65%, #fff); }
.ta-stars.is-hovering .ta-star.is-lock { color: color-mix(in srgb, var(--ta-star-color, #1f6feb) 70%, #000); }

.ta-feedback__title {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    margin-bottom: 8px;
    background: rgba(222, 190, 122, 0.1);
    border: none;
    border-radius: 4px;
}

.ta-feedback__msg {
    width: 100%;
    resize: vertical;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    background: rgba(222, 190, 122, 0.1);
    border: none;
    border-radius: 4px;
}

.ta-feedback__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.ta-btn {
    appearance: none;
    border: 0;
    background: #debe7a;
    color: #fff;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.ta-btn:hover { opacity: 0.85; color: #fff; text-decoration: none; }

.ta-btn[data-ta-style="default"]   { background: #debe7a; color: #fff; }
.ta-btn[data-ta-style="primary"]   { background: #1e87f0; color: #fff; }
.ta-btn[data-ta-style="secondary"] { background: #222;    color: #fff; }
.ta-btn[data-ta-style="danger"]    { background: #f0506e; color: #fff; }

.ta-feedback__status { margin-top: 8px; font-size: 12px; opacity: .85; min-height: 16px; }

.ta-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: #34e0a1;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    z-index: 2147483001;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.ta-fab__icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #34e0a1;
    display: grid;
    place-items: center;
}
.ta-fab__logo {
    width: 24px;
    height: 24px;
    display: block;
    opacity: 0.95;
    user-select: none;
    pointer-events: none;
}

.ta-ta-probe {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 320px;
    min-height: 90px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

@media (max-width: 420px) {
    .ta-float { left: 10px; bottom: 10px; width: calc(100vw - 20px); }
    .ta-fab { left: 10px; bottom: 10px; }
}
