/* Passenger route direction: origin starts on the right in the Arabic UI. */
.route {
    direction: rtl;
}

.route-point .route-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    margin-bottom: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eeecff;
    color: #5147b3;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}

.route-destination .route-label {
    background: #e9f8fc;
    color: #117f98;
}

.route-line {
    direction: ltr;
}

.route-line > span {
    top: -13px;
    padding-inline: 9px;
    font-size: 19px;
    font-weight: 800;
    line-height: 24px;
}

.route-line > .route-plane {
    top: -15px;
    width: 30px;
    height: 30px;
    padding: 6px;
    border: 1px solid #ddd9ff;
    border-radius: 50%;
    background: linear-gradient(145deg, #f2f0ff, #e8faff);
    color: #6758e8;
    box-shadow: 0 5px 14px rgba(83, 75, 190, .2);
}

.route-plane svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    transform: rotate(-90deg);
}

.route-line small {
    top: 12px;
}

.valid-until-field.is-hidden {
    display: none !important;
}

.fare-admin-box {
    padding: 14px;
    border: 1px solid #e3e1f7;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7f6ff, #f2fbff);
}

.fare-admin-box h3,
.fare-admin-box p {
    margin: 0 0 8px;
}

.fare-admin-box p {
    color: #72798d;
    font-size: 9px;
}

.trip-card {
    grid-template-columns: 54px 1fr 2fr .85fr 1.65fr;
}

.trip-price.fare-selector {
    display: grid;
    gap: 6px;
    text-align: right;
}

.fare-selector > small {
    margin: 0 0 2px;
    font-weight: 700;
}

.fare-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #e3e1f7;
    border-radius: 11px;
    background: #f7f6ff;
    color: #3f397e;
    transition: .2s;
}

.fare-choice:hover {
    border-color: #887cff;
    background: #efedff;
    transform: translateY(-1px);
}

.fare-choice > span {
    color: #5e6280;
    font-size: 8px;
    font-weight: 700;
}

.fare-choice > b {
    color: #17134f;
    font-size: 12px;
    white-space: nowrap;
}

.fare-choice em {
    color: #6f7290;
    font-size: 8px;
    font-style: normal;
}

.fare-choice.disabled {
    cursor: default;
    opacity: .72;
}

@media (max-width: 1100px) {
    .trip-card {
        grid-template-columns: 50px 1fr 1.8fr 1.4fr;
    }

    .trip-meta {
        display: none;
    }
}

@media (max-width: 820px) {
    .trip-price.fare-selector {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border: 0;
        border-top: 1px solid #e8e9f0;
        padding: 12px 0 0;
    }

    .fare-selector > small {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .route-point .route-label {
        margin-bottom: 4px;
    }

    .trip-price.fare-selector {
        grid-template-columns: 1fr;
    }

    .fare-selector > small {
        grid-column: auto;
    }
}
