/* Keep the shared header compact, including rental pages with their own styles. */
body .topbar:has([data-loyalty-chip]) {
    flex-wrap: wrap;
    gap: .75rem;
}
body .topbar:has([data-loyalty-chip]) .topbar-actions {
    flex-wrap: wrap !important;
    gap: .5rem !important;
    min-width: 0;
    max-width: 100%;
}
body .topbar .topbar-actions .topbar-loyalty-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: 0 1 184px;
    width: 184px;
    max-width: 100%;
    min-height: 36px;
    padding: .375rem .625rem;
    margin: 0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ui-custom-text, var(--text-main));
    letter-spacing: 0;
}
body .topbar .topbar-loyalty-chip[hidden] {
    display: none !important;
}
.topbar-loyalty-chip:focus-visible {
    outline: 2px solid var(--ui-custom-accent, var(--accent));
    outline-offset: 3px;
}
.topbar-loyalty-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}
.topbar-loyalty-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    font-size: .75rem;
    line-height: 1.25;
    font-weight: 600;
    white-space: normal;
}
[data-loyalty-label] {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
[data-loyalty-percent] {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.topbar-loyalty-progress {
    display: block;
    appearance: none;
    width: 100%;
    height: 4px;
    border: 0;
    border-radius: 2px;
    overflow: hidden;
    background: var(--ui-custom-border, var(--border-subtle));
    accent-color: var(--ui-custom-accent, var(--accent));
}
.topbar-loyalty-progress::-webkit-progress-bar {
    background: var(--ui-custom-border, var(--border-subtle));
}
.topbar-loyalty-progress::-webkit-progress-value {
    background: var(--ui-custom-accent, var(--accent));
    border-radius: 2px;
}
.topbar-loyalty-progress::-moz-progress-bar {
    background: var(--ui-custom-accent, var(--accent));
    border-radius: 2px;
}
.topbar-loyalty-chip[aria-busy="true"] .topbar-loyalty-progress {
    opacity: .4;
}
#loyalty-program {
    scroll-margin-top: 7rem;
}
