
.tr-compare-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0b315f;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.tr-compare-button::before {
    content: "⇄";
    margin-left: 6px;
    font-size: 16px;
}

.tr-compare-button.is-selected {
    color: #fff;
    border-color: #0b315f;
    background: #0b315f;
}

.tr-place-card .tr-compare-button {
    width: 100%;
    margin-top: 8px;
}

.tr-compare-bar {
    position: fixed;
    right: 50%;
    bottom: 18px;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(calc(100% - 24px), 620px);
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    color: #fff;
    background: rgba(11,49,95,.96);
    box-shadow: 0 18px 48px rgba(11,49,95,.3);
    transform: translateX(50%);
    backdrop-filter: blur(10px);
}

.tr-compare-bar[hidden] {
    display: none !important;
}

.tr-compare-bar > div {
    display: flex;
    gap: 6px;
    align-items: baseline;
    margin-left: auto;
}

.tr-compare-bar strong {
    font-size: 22px;
}

.tr-compare-bar a,
.tr-compare-bar button {
    min-height: 38px;
    padding: 7px 12px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.tr-compare-bar a {
    color: #0b315f !important;
    background: #fff;
    text-decoration: none !important;
}

.tr-compare-bar button {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.tr-compare-page,
.tr-report-page,
.tr-report-simple {
    --tr-navy: #0B315F;
    --tr-red: #EF334F;
    --tr-green: #2E8B3C;
    --tr-muted: #64748B;
    --tr-border: #E2E8F0;
    width: min(calc(100% - 28px), 1240px);
    margin: clamp(34px, 5vw, 72px) auto;
    color: #10233F;
}

.tr-compare-hero,
.tr-report-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--tr-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 90%, rgba(239,51,79,.11), transparent 24rem),
        linear-gradient(135deg, #fff, #f4f8fc);
    box-shadow: 0 20px 54px rgba(11,49,95,.08);
}

.tr-compare-hero span,
.tr-report-hero span {
    color: var(--tr-red);
    font-size: 13px;
    font-weight: 900;
}

.tr-compare-hero h1,
.tr-report-hero h1 {
    margin: 7px 0;
    color: var(--tr-navy);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.2;
}

.tr-compare-hero p,
.tr-report-hero p {
    margin: 0;
    color: var(--tr-muted);
}

.tr-compare-hero > a,
.tr-report-hero > a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 12px;
    color: #fff !important;
    background: var(--tr-navy);
    font-weight: 900;
    text-decoration: none !important;
}

.tr-compare-empty,
.tr-report-simple {
    margin-top: 18px;
    padding: 36px;
    border: 1px solid var(--tr-border);
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.tr-compare-empty strong,
.tr-report-simple h2 {
    color: var(--tr-navy);
    font-size: 22px;
}

.tr-compare-empty p,
.tr-report-simple p {
    color: var(--tr-muted);
}

.tr-compare-empty a,
.tr-report-simple a {
    display: inline-flex;
    padding: 9px 15px;
    border-radius: 11px;
    color: #fff !important;
    background: var(--tr-navy);
    font-weight: 900;
    text-decoration: none !important;
}

.tr-compare-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid var(--tr-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(11,49,95,.06);
}

.tr-compare-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.tr-compare-table th,
.tr-compare-table td {
    min-width: 210px;
    padding: 16px;
    border-bottom: 1px solid var(--tr-border);
    border-left: 1px solid var(--tr-border);
    text-align: right;
    vertical-align: top;
}

.tr-compare-table thead th {
    background: #f8fafc;
}

.tr-compare-table th:first-child {
    min-width: 155px;
    color: var(--tr-navy);
    background: #f8fafc;
    font-weight: 900;
}

.tr-compare-place-head {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.tr-compare-place-head img,
.tr-compare-place-head > span {
    display: grid;
    width: 72px;
    height: 72px;
    object-fit: contain;
    place-items: center;
    border: 1px solid var(--tr-border);
    border-radius: 17px;
    color: var(--tr-navy);
    background: #fff;
    font-size: 22px;
    font-weight: 900;
}

.tr-compare-place-head strong {
    color: var(--tr-navy);
    font-size: 16px;
}

.tr-compare-remove-button {
    margin-top: 10px;
}

.tr-compare-yes {
    color: #166534;
    font-weight: 900;
}

.tr-compare-neutral {
    color: var(--tr-muted);
}

.tr-compare-actions {
    display: grid;
    gap: 7px;
}

.tr-compare-actions a {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #fff !important;
    background: var(--tr-navy);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
}

.tr-report-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 18px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--tr-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(11,49,95,.06);
}

.tr-report-form label {
    display: grid;
    gap: 7px;
}

.tr-report-form label > span {
    color: var(--tr-navy);
    font-size: 13px;
    font-weight: 900;
}

.tr-report-form input,
.tr-report-form select,
.tr-report-form textarea {
    width: 100%;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid var(--tr-border);
    border-radius: 12px;
    font: inherit;
}

.tr-report-full,
.tr-report-form > button {
    grid-column: 1 / -1;
}

.tr-report-consent {
    display: flex !important;
    grid-template-columns: auto 1fr;
    gap: 9px !important;
    align-items: flex-start;
    padding: 13px;
    border-radius: 11px;
    background: #f8fafc;
}

.tr-report-consent input {
    width: auto;
    margin-top: 5px;
}

.tr-report-form > button {
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: var(--tr-navy);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.tr-report-message,
.tr-form-preserved-notice {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 800;
}

.tr-report-message-success {
    color: #166534;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.tr-report-message-error {
    color: #991b1b;
    border: 1px solid #fecaca;
    background: #fef2f2;
}

@media (max-width: 700px) {
    .tr-compare-hero,
    .tr-report-hero {
        display: block;
    }

    .tr-compare-hero > a,
    .tr-report-hero > a {
        display: inline-flex;
        margin-top: 16px;
    }

    .tr-report-form {
        grid-template-columns: 1fr;
    }

    .tr-report-full,
    .tr-report-form > button {
        grid-column: auto;
    }

    .tr-compare-bar {
        gap: 7px;
        padding: 10px;
    }

    .tr-compare-bar > div span {
        display: none;
    }
}
