/* VC buttons stay hidden only when LinkSwitch is not configured/detected. */
a.rhc-vc-link[data-rhcm-vc-required="1"][data-rhcm-vc-state="pending"] {
    display: none !important;
}
a.rhc-vc-link[data-rhcm-vc-required="1"][data-rhcm-vc-state="ready"],
a.rhc-vc-link[data-rhcm-vc-required="1"][data-rhcm-vc-state="verified"] {
    display: flex !important;
}
/* Server-side fallback while the plugin is active.
   This selector is intentionally more specific than the scoped CSS embedded in
   cards generated by v1.4.7-v1.4.10, so old cards recover without regeneration. */
html body.rhcm-linkswitch-enabled .rhc-output .rhc-section.rhc-ota-section .rhc-ota-grid a.rhc-vc-link[data-rhcm-vc-required="1"] {
    display: flex !important;
}

/* When a two-column booking grid has an odd number of buttons, center the final button without stretching it. */
@media (min-width: 641px) {
    .rhc-output .rhc-ota-grid > .rhc-ota-button:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 5px);
        justify-self: center;
    }
}

/* v1.4.15: Club Tourism is not LinkSwitch-compatible; hide legacy saved buttons. */
.rhc-output a.rhc-ota-clubtour {
    display: none !important;
}
