.routeos-location-seat-field {
    transition: border-color 0.2s ease;
}

.routeos-location-seat-row {
    gap: 16px;
}

.routeos-location-seat-info {
    flex: 1 1 280px;
    min-width: 220px;
}

.routeos-location-seat-input-wrap {
    flex: 0 0 160px;
}

.routeos-location-seat-input-wrap label {
    font-size: 12px;
    margin-bottom: 6px;
}

.routeos-location-seat-input-wrap input {
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    height: 44px;
    margin: 0;
    text-align: center;
    width: 100%;
}

.routeos-location-seat-summary {
    border-top: 1px solid #e5e7eb;
}

/* Present the two allowance controls as one compact panel when both are shown. */
.wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
    > .wu-col-span-2:has(> .routeos-general-seat-field) {
    position: relative;
    z-index: 1;
}

.wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
    > .wu-col-span-2:has(> .routeos-location-seat-field) {
    margin-top: calc(-1rem - 6px);
}

.wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
    .routeos-general-seat-field {
    border-bottom-width: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    padding: 18px 22px !important;
}

.wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
    .routeos-location-seat-field {
    border-top-width: 1px !important;
    box-shadow: none !important;
    padding: 18px 22px !important;
}

.wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
    :is(.routeos-general-seat-row, .routeos-location-seat-row) {
    align-items: center !important;
    display: grid !important;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) 128px;
}

.wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
    :is(.routeos-general-seat-info, .routeos-location-seat-info) {
    min-width: 0;
}

.wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
    :is(.routeos-general-seat-input-wrap, .routeos-location-seat-input-wrap) {
    min-width: 0;
    width: 128px;
}

.wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
    :is(.routeos-general-seat-info, .routeos-location-seat-info) p,
.wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
    :is(.routeos-general-seat-summary, .routeos-location-seat-summary) {
    display: none !important;
}

@media (max-width: 480px) {
    .wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
        :is(.routeos-general-seat-field, .routeos-location-seat-field) {
        padding: 16px !important;
    }

    .wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
        :is(.routeos-general-seat-row, .routeos-location-seat-row) {
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) 104px;
    }

    .wu-grid:has(> .wu-col-span-2 > .routeos-general-seat-field):has(> .wu-col-span-2 > .routeos-location-seat-field)
        :is(.routeos-general-seat-input-wrap, .routeos-location-seat-input-wrap) {
        width: 104px;
    }
}
