html,
body.public-body {
    background: #f6f7f9 !important;
}

body.public-body {
    min-height: 100vh;
}

.skip-link {
    left: 12px;
    top: 12px;
}

.public-main {
    min-height: 100vh !important;
    padding: 0 !important;
}

.figma-page,
.figma-search-page,
.figma-results-page,
.rb-seat-page,
.figma-passenger-page,
.rb-review-page,
.rb-profile-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto !important;
    padding: 20px 0 40px !important;
}

.figma-search-hero {
    min-height: auto !important;
    padding: 0 !important;
    gap: 18px !important;
}

.figma-search-copy {
    max-width: none !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
}

.figma-search-copy .page-title,
.figma-results-head .page-title,
.rb-seat-header .page-title,
.figma-passenger-copy .page-title {
    font-size: clamp(1.45rem, 2.4vw, 2.25rem) !important;
    line-height: 1.15 !important;
    margin: 0 0 6px !important;
}

.figma-search-copy p,
.figma-results-head p,
.rb-seat-header p,
.figma-passenger-copy p {
    margin: 0 !important;
    color: #5f6673 !important;
    font-size: 1rem !important;
}

.figma-search-card,
.figma-shell-card,
.rb-result-card,
.rb-filter-panel,
.figma-results-toolbar,
.rb-seat-coach,
.rb-seat-sidebar .panel,
.figma-passenger-form,
.figma-passenger-sidebar,
.rb-review-card {
    border-radius: 8px !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
}

.figma-search-card {
    margin: 0 auto !important;
    padding: 28px !important;
}

.figma-search-gallery,
.figma-search-note,
.figma-pill-row,
.rb-summary-note,
.figma-sidebar-list {
    display: none !important;
}

.figma-search-row,
.figma-search-footer {
    gap: 16px !important;
}

.figma-search-footer {
    margin-top: 18px !important;
    align-items: end !important;
}

.rb-search-action {
    align-self: end !important;
}

.rb-search-btn,
.btn.primary,
.btn.secondary,
.rb-result-seat-btn,
.figma-review-submit {
    min-height: 44px !important;
    border-radius: 8px !important;
}

.figma-results-head {
    align-items: end !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

.rb-results-layout {
    gap: 18px !important;
    align-items: start !important;
}

.rb-filter-panel {
    top: 16px !important;
    padding: 20px !important;
}

.rb-filter-header {
    margin-bottom: 16px !important;
}

.rb-filter-block {
    padding: 16px !important;
    border-radius: 8px !important;
}

.rb-results-list {
    gap: 14px !important;
}

.rb-result-shell {
    min-height: auto !important;
}

.rb-result-main,
.rb-result-price-panel {
    padding: 22px !important;
}

.rb-route-strip {
    margin: 18px 0 !important;
}

.rb-step-progress {
    width: min(900px, 100%) !important;
    margin: 0 auto 16px !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
}

.rb-step-progress-item {
    min-height: auto !important;
}

.rb-seat-journey-strip {
    margin: 0 0 16px !important;
}

.rb-seat-layout,
.figma-passenger-layout,
.figma-review-layout {
    gap: 18px !important;
}

.rb-seat-header,
.figma-passenger-head {
    margin-bottom: 18px !important;
    padding: 0 !important;
}

.rb-seat-coach,
.figma-passenger-form,
.rb-review-card {
    padding: 24px !important;
}

.rb-seat-sidebar,
.figma-passenger-sidebar {
    gap: 14px !important;
}

.rb-boarding-row,
.form-grid,
.rb-passenger-actions,
.figma-center-actions {
    gap: 14px !important;
}

.rb-gst-card,
.rb-insurance-card,
.rb-coupon-card,
.figma-payment-card {
    border-radius: 8px !important;
}

@media (max-width: 900px) {
    .figma-page,
    .figma-search-page,
    .figma-results-page,
    .rb-seat-page,
    .figma-passenger-page,
    .rb-review-page,
    .rb-profile-main {
        width: min(100% - 20px, 1280px);
        padding: 12px 0 28px !important;
    }

    .figma-search-card,
    .rb-seat-coach,
    .figma-passenger-form,
    .rb-review-card {
        padding: 18px !important;
    }

    .figma-search-row,
    .figma-search-footer,
    .rb-results-layout,
    .rb-seat-layout,
    .figma-passenger-layout {
        grid-template-columns: 1fr !important;
    }

    .figma-search-swap {
        justify-self: start !important;
        transform: none !important;
    }

    .rb-filter-panel {
        position: static !important;
    }
}
