.mage_container {
    max-width: 1366px !important;
    width: 100% !important;
    margin: 0 auto !important;
    /* No horizontal padding: the container is always rendered inside a
       theme's own content area, which already supplies the side gutter, so
       15px on the sides only inset the plugin's content further than
       everything around it. */
    padding: 15px 0;
    font-size: 16px !important;
}

div.mage_container p {
    font-size: 16px !important;
}

div.mage_row {
    min-height: 1px;
}

.mage_container ul,
ul.mage_route_list li,
.mage_container label {
    display: block;
}

.mage_container ul {
    list-style-type: none;
}

.mage_hidden,
div.mage_hidden {
    display: none !important;
}

.mage_error {
    background-color: red !important;
    color: #fff !important;
}

/* Offline booking result banner (see templates/single-bus.php and
   inc/wbbm-offline-booking.php) -- a plain success/error notice shown
   after a non-WooCommerce booking attempt redirects back to the bus page. */
.mage_notice {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.mage_notice p {
    margin: 0 0 6px;
}

.mage_notice p:last-child {
    margin-bottom: 0;
}

.mage_notice-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.mage_notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wbbm-offline-booking-details {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
    font-size: 13.5px;
}

.wbbm-offline-booking-details th,
.wbbm-offline-booking-details td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(6, 95, 70, .15);
}

.wbbm-offline-booking-details th {
    font-weight: 600;
    width: 40%;
}

.wbbm-offline-booking-details tr:last-child th,
.wbbm-offline-booking-details tr:last-child td {
    border-bottom: none;
}

.wbbm-offline-booking-total th,
.wbbm-offline-booking-total td {
    font-weight: 700;
    font-size: 15px;
    border-top: 1px solid rgba(6, 95, 70, .3);
}

.mage_disabled {
    cursor: no-drop !important;
    opacity: 0.2 !important;
    pointer-events: none;

}


/**********************/

div.mage_container h2,
div.mage_container h3,
div.mage_container h4,
div.mage_container p,
form.mage_form,
.mage_container ul {
    margin: 0;
    padding: 0;
    line-height: 1;
}


/************flex**********/

div.mage_flex,
div[class*="mage_qty"],
div.mage_center_space,
div.mage_row,
div.mage_flex_equal,
div.mage_form_group,
div.mage_form_list_body,
div.mage_customer_info_area label,
.search_form_horizontal form.mage_form,
.mage_form_radio label,
button.mage_button,
div.mage_sub_price {
    display: -webkit-flex;
    display: flex;
}

.mage_flex_equal>*,
.search_form_horizontal form.mage_form .mage_form_list {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.mage_center_space,
[class*="mage_qty"],
div.mage_customer_info_area label,
button.mage_button,
div.mage_sub_price {
    -webkit-align-items: center;
    align-items: center;
}

[class*="mage_qty"],
button.mage_button,
div.mage_sub_price {
    -webkit-justify-content: center;
    justify-content: center;
}

.mage_center_space,
.mage_form_list_body,
.search_form_horizontal form.mage_form,
.search_form_horizontal div.mage_form_radio {
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

div.mage_row,
.mage_form_list_body,
.mage_flex_equal,
.mage_book_now_area,
.search_form_horizontal form.mage_form {
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    position: relative
}


/**********************/

.mage_search_box_small,
.mage_container img,
form.mage_form .mage_form_control,
.mage_form_group,
button.mage_button,
.mage_sidebar_search_form,
form .mage_form,
form .mage_form_full,
input[type='text'].mage_form_full,
.mage_customer_info_area .mage_form_list {
    -webkit-border-radius: 5px !important;
    border-radius: 5px !important;
}

ul.mage_route_list {
    -webkit-border-radius: 0 0 5px 5px;
    border-radius: 0 0 5px 5px;
}


/**********************/


/************Title**********/

.mage_container h2 {
    font-size: 25px !important;
    font-weight: 700 !important;
}

.mage_container h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
}

.mage_container h4 {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Colors here stay whatever the admin configured (Style Settings --
   background-color/color come through as an inline style on the element
   itself, see SearchClass::mage_search_list()) -- this modernizes the
   shape/spacing/type around that color instead of replacing it. */
.mage_route_title {
    /* Default fallback only -- an admin-configured Style Settings color
       comes through as a valid inline background-color and wins over
       this. Needed because the text color below is unconditionally
       forced to white (also inline, mirroring the PHP default) whenever
       no custom color is set -- without a background here too, that
       white text would sit on nothing and disappear. */
    background-color: #0a4b78;
    padding: 14px 20px;
    margin: 0 0 18px 0;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}

div.mage_route_title p,
div.mage_route_title div {
    text-align: center;
    font-size: 16px !important;
    font-weight: 600;
    letter-spacing: .01em;
    color: #fff;
}

.mage_route_title .fas,
.mage_route_title .fa {
    margin: 0 6px;
    opacity: .85;
}


/**********Button************/

button.mage_button {
    padding: 0 !important;
    color: #fff;
    background-color: #22D02D;
    font-size: 16px !important;
    font-weight: 700;
    min-width: 150px;
    width: 100%;
    cursor: pointer;
    height: 45px;
    text-transform: capitalize;
    transition: 0.2s;
    border: none;
}

button.mage_button:hover {
    background-color: #0FA218;
    transition: 0.2s;
}

button.mage_button span {
    padding: 0 7px 0 0;
}

button.mage_button:hover,
button.mage_button:focus {
    text-decoration: none;
    opacity: 0.9;
}


/**********************/

.mage_mini_cart:hover,
.mage_search_list.booked {
    -webkit-box-shadow: 0 2px 10px #444;
    box-shadow: 0 2px 10px #444;
}


/**********************/


/***********search area***********/

.mage_search_box_small {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #d3d3d3;
    background-color: #b30c3b12;
}

div.mage_search_box_small h2 {
    margin: 0 !important;
    padding: 20px 0 0 0 !important;
    color: #000;
}

ul.mage_route_list {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    right: 0;
    border: 1px solid #ddd;
    z-index: 11;
    overflow: auto;
    max-height: 300px;
    background-color: #F2F2F2;
}

ul.mage_route_list li {
    padding: 10px;
    cursor: pointer;
    border-top: 1px solid #ddd;
    margin: 0;
}

ul.mage_route_list li span {
    padding: 0 7px 0 0;
}

ul.mage_route_list li:first-child {
    border-top: none;
}

.mage_search_box_sidebar {
    width: 100%;
    max-width: 300px;
}

.mage_sidebar_search_form {
    padding: 15px;
    border: 1px solid #ddd;
}

.mage_search_area {
    width: 100%;
    max-width: calc(100% - 315px);
    margin: 0 0 0 15px;
}

.mage_search_list {
    padding: 20px;
    border: 1px solid #e4e4df;
    margin: 8px 0 0 0;
    background-color: #f5f5f5;
}

.mage_search_list.theme_minimal {
    /* No overflow:hidden and no transform here (even hover-only) on
       purpose -- the offline booking modal (position:fixed) is nested
       inside this element's own markup (mage_book_now_area(), several
       levels down), and either property turns this element into the
       modal's containing block instead of the viewport, trapping/clipping
       a "fixed" modal inside this card rather than covering the page. */
    padding: 0;
    border: 1px solid #eceef1;
    border-radius: 10px;
    margin: 0 0 12px 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    transition: box-shadow .15s ease;
}

.mage_search_list.theme_minimal:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, .1);
}

.mage_search_list.theme_minimal:last-child {
    margin-bottom: 0;
}

.mage_search_list button.mage_button {
    min-width: 150px;
}


/**********Form************/

form.mage_form {
    display: block;
}

.mage_form_list {
    margin: 15px 0 0 0;
}

form.mage_form .mage_form_control,
form .mage_form_full {
    width: 100%;
    border: 1px solid #ddd !important;
    padding: 5px 15px !important;
    height: 40px !important;
    color: #222;
    font-size: 16px !important;
}

form.mage_form label {
    color: #555;
    font-weight: 500;
    padding: 0 0 7px 10px;
    margin: 0;
}

form.mage_form label span {
    padding: 0 7px 0 0;
}

form.mage_form .mage_form_list .mage_form_control:focus {
    -webkit-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0;
    border-color: #ddd;
}

form.mage_form .mage_form_list .mage_form_control:focus~ul.mage_route_list {
    display: block;
}

.mage_form_group {
    max-width: 140px;
    border: 1px solid #ddd;
    margin: 0;
    background-color: #f7f7f7;
    text-align: center;
}

div.mage_form_group .mage_form {
    width: 50%;
    border-top: none;
    border-bottom: none;
    text-align: center;
    height: 40px;
    font-size: 18px !important;
    padding: 0 !important;
}

div.mage_form_group .mage_form:focus,
form .mage_form:focus,
form .mage_form_full:focus {
    border: 1px solid #aaa;
}

[class*="mage_qty"] {
    width: 25%;
    color: #777;
    font-size: 14px !important;
    cursor: pointer;
}

.mage_customer_info_area .mage_form_list {
    margin: 15px 0 0 0;
    display: none;
    border: 1px solid #ddd;
}

div.mage_form_list_title h4 {
    background-color: #f5f5f5;
    color: #000;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    font-size: 14px !important;
    margin: 0;
}

.mage_form_list_body {
    padding: 0 15px 15px 15px;
}

.mage_form_list .mage_form_full,
.mage_customer_info_area label {
    margin: 15px 0 0 0;
    /* width: calc(50% - 8px); */
    display: inline-block;
    font-size: 14px !important;
}

.mage_customer_info_area .mage_form_list label>span {
    width: 50%;
    display: inline-block;
   /* text-align: center; */
}

.mage_customer_info_area .mage_form_list label .mage_form_full {
   /* width: 50%; */
    margin: 0;
}

.mage_form_radio label input {
    margin: 0 7px 0 0;
}

.mage_form_list textarea.mage_form_full {
    height: auto !important;
    padding: 15px !important;
}

.search_form_horizontal {
    background-color: #fff;
    padding: 15px 15px 15px 15px;
    border: 1px solid #ddd;
}

div.mage_container .search_form_horizontal h2 {
    margin-bottom: 20px;
}

.search_form_horizontal form.mage_form .mage_form_list {
    margin: 2px;
    display: flex;
flex-direction: column;
}

.search_form_horizontal div.mage_form_radio,
.search_form_horizontal div.mage_form_search {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-end;
    align-items: flex-end;
}

.search_form_horizontal form.mage_form label {
    font-size: 16px;
    position: relative;
    margin-bottom: 5px;
    margin-top: 5px;
    color: #000;
    width: auto;
}

.search_form_horizontal form .mage_form_control {
    font-size: 14px !important;
    width: 100%;
    height: 40px !important;
}

.search_form_horizontal form.mage_form label span {
    padding: 0 5px 0 0;
}

.search_form_horizontal button.mage_button {
    height: 52px;
    border: none
}


/**********************/

.mage_mini_cart {
    position: fixed;
    right: 0;
    top: 47%;
    background-color: #ddd;
    padding: 10px;
    text-align: center;
    min-width: 120px;
}


/**********************/

.mage_thumb {
    width: 20%;
}

.mage_thumb img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.mage_bus_details,
.mage_book_now_area .mage_flex_equal {
    width: 80%;
}

.mage_bus_info,
.mage_price_info {
    padding: 20px;
    margin: 0 0 0 15px;
    border: 3px dashed #d3d3d3;
    background: #fff;
}

.mage_price_info .mage_center_space {
    margin: 0 0 7px 0;
}

.mage_book_now_area {
    margin: 15px 0 0 0;
}

/* Contact fields shown in place of the WooCommerce add-to-cart step for a
   bus set to Offline Payment (see inc/clean/layout/book-now-area.php). */
.mage_offline_contact_fields {
    width: 100%;
    margin: 0 0 12px;
    text-align: left;
}

.mage_offline_instructions {
    margin: 0 0 10px;
    font-size: 12.5px;
    color: #6b7280;
}

/* Only rendered at all when more than one of Offline/Stripe/PayPal is
   enabled (see wbbm_get_active_custom_gateways()) -- a single-gateway site
   (today's default) never sees this markup, so its booking modal looks
   exactly as it always did. */
.mage_offline_gateway_picker_heading {
    margin: 0 0 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b7280;
}

h4.mage_offline_gateway_picker_heading {
    margin-bottom: 20px !important;
}

.mage_offline_gateway_picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.mage_offline_gateway_card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    color: #374151;
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.mage_offline_gateway_card:hover {
    border-color: #fdba74;
    transform: translateY(-1px);
}

.mage_offline_gateway_card.is-selected {
    border-color: #f97316;
    background: #fff7ed;
    color: #9a3412;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .14);
}

/* Small checkmark badge in the corner, the same "this one's picked" signal
   as the admin mode-selector cards (.wbbm-bm-card-active) use elsewhere in
   this plugin, just a plain dot+check here since there's no room for a
   text pill at this size. */
.mage_offline_gateway_card.is-selected::after {
    /* Sits fully inside the card's own box (not poking above/past its
       edge) -- .mage_offline_modal_box scrolls (overflow-y:auto) when the
       modal's content is taller than the viewport, and anything hanging
       outside a card's bounds gets flatly clipped by that scroll container
       the moment the card scrolls near its top edge, which a negative
       offset here used to do. */
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.mage_offline_gateway_card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Icon sits in its own rounded badge, matching the same treatment the
   admin mode-selector cards give theirs (.wbbm-bm-card-icon), just sized
   down to fit this more compact frontend card. */
.mage_offline_gateway_card .fas,
.mage_offline_gateway_card .fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 15px;
    transition: background-color .15s ease, color .15s ease;
}

.mage_offline_gateway_card.is-selected .fas,
.mage_offline_gateway_card.is-selected .fab {
    background: #ffe4cc;
    color: #c2410c;
}

.mage_offline_unavailable {
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 13px;
}

.mage_offline_input {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.mage_offline_input:focus {
    outline: none;
    border-color: #f97316;
}

/* The generic .mage_error utility above (solid red fill) reads fine on a
   quantity box but is too jarring on a text field -- a red border + light
   red tint is enough here. */
.mage_offline_input.mage_error {
    background-color: #fef2f2 !important;
    color: inherit !important;
    border-color: #ef4444 !important;
}

/* Stripe's `card` Element, mounted in-page (js/mage_style.js) when Card
   (Stripe) is the selected payment method -- styled to match
   .mage_offline_input above so it doesn't look like a different form. */
.mage_stripe_card_box {
    margin: 0 0 12px;
}

.mage_stripe_card_label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 6px;
}

.mage_stripe_card_element {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.mage_stripe_card_errors {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: #ef4444;
}

/* "Book Now" confirmation modal for Offline Payment buses -- opened by
   js/mage_style.js's wbbmOpenOfflineModal() instead of submitting
   immediately, so the customer sees a fare/tax breakdown and enters their
   contact details before the booking is actually recorded. */
.mage_offline_modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 100010;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mage_offline_modal.is-open {
    display: flex;
}

.mage_offline_modal_box {
    background: #fff;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
}

.mage_offline_modal_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mage_offline_modal_head strong {
    font-size: 16px;
}

.mage_offline_modal_close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 8px;
}

.mage_offline_modal_close:hover {
    color: #111827;
}

.mage_offline_modal_body {
    padding: 16px 20px;
}

.mage_offline_summary {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.mage_offline_summary h4 {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b7280;
}

.mage_offline_summary_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    padding: 4px 0;
}

.mage_offline_summary_subtotal,
.mage_offline_summary_tax {
    border-top: 1px dashed #d1d5db;
    margin-top: 4px;
    padding-top: 8px;
}

.mage_offline_summary_total {
    border-top: 1px solid #d1d5db;
    margin-top: 4px;
    padding-top: 8px;
    font-weight: 700;
    font-size: 15px;
}

.mage_offline_modal_foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px 18px;
    border-top: 1px solid #e5e7eb;
}

/* Booking-confirmed panel -- built by wbbmRenderOfflineResult() in
   js/mage_style.js. css/wbbm-search-modern.css restyles this in the modern
   skin; these values are literal so the panel still reads as a proper
   confirmation on pages where only this stylesheet is loaded. */
.wbbm-offline-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 0 16px;
    padding: 22px 18px 18px;
    border: 1px solid #b7e3c8;
    border-radius: 12px;
    background: #f4fcf7;
}

.wbbm-offline-success-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #e7f7ee;
}

.wbbm-offline-success-mark svg {
    display: block;
    width: 42px;
    height: 42px;
    overflow: visible;
}

.wbbm-offline-success-mark-ring {
    fill: none;
    stroke: #16a34a;
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
    animation: wbbm-success-ring 0.55s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.wbbm-offline-success-mark-tick {
    fill: none;
    stroke: #16a34a;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 44;
    stroke-dashoffset: 44;
    animation: wbbm-success-tick 0.35s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}

@keyframes wbbm-success-ring {
    to { stroke-dashoffset: 0; }
}

@keyframes wbbm-success-tick {
    to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .wbbm-offline-success-mark-ring,
    .wbbm-offline-success-mark-tick {
        animation: none;
        stroke-dashoffset: 0;
    }
}

.mage_offline_result_heading {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f7a42;
}

.wbbm-offline-success-note {
    max-width: 34ch;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.wbbm-offline-success-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.6;
}

.wbbm-offline-success-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.wbbm-offline-success-pill.is-paid {
    background: #e7f7ee;
    color: #0f7a42;
}

.wbbm-offline-success-pill.is-pending {
    background: #fff4e5;
    color: #a35a07;
}

.wbbm-offline-success-ref {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    margin-top: 14px;
    padding: 10px 16px;
    border: 1px dashed #b7e3c8;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.wbbm-offline-success-ref small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.6;
    color: #6b7280;
}

.wbbm-offline-success-ref strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.wbbm-offline-route-arrow {
    color: #9ca3af;
    padding: 0 2px;
}

.mage_offline_modal_result .wbbm-offline-booking-details {
    color: inherit;
}

.mage_offline_submit_error {
    margin: 10px 0 0;
    padding: 8px 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #991b1b;
    font-size: 13px;
}

.mage_sub_price,
.mage_book_now {
    padding: 0 0 0 15px;
}

div.mage_container p.mage_sub_total {
    text-align: center;
    font-size: 18px !important;
}

div.mage_container p.mage_sub_total strong {
    margin-left: 10px;
}

.mage_search_list.booked {
    border-color: #039f25;
}

.return_title {
    margin: 15px 0 15px 0;
}

p.already_cart {
    font-size: 20px !important;
    font-weight: 700;
    color: #1aa638;
    margin: 15px 0 0 0 !important;
}

p.already_cart span {
    margin: 0 7px 0 0;
}

div.mage_bus_info p:not(div.mage_center_space p),
div.mage_bus_info h3,
.mage_price_info .mage_center_space,
.mage_bus_info .mage_center_space {
    margin-bottom: 10px;
    border-bottom: 1px dashed #d3d3d3;
    padding-bottom: 10px;
}

.mar_b {
    margin-bottom: 10px !important;
}

.mar_r {
    margin-right: 7px !important;
}

.bor_tb {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 5px !important;
    margin-top: 10px !important;
}


/*change search form*/

.mage_input_select {
    position: relative;
}

.search_form_horizontal .mage_input_select {
    position: initial;
}

.route-input-wrap {
    position: relative;
    display: flex;
}

.mage_form .mage_form_radio {
    visibility: hidden;
}

.mage_input_select_list,
.mage_input_select_list_static {
    display: none;
    max-width: 100%;
    position: absolute;
    left: 0;
    top: 103%;
    right: 0;
    margin: 0 auto;
    z-index: 9999;
    background: #FFF;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 5px;
}

.mage_input_select_list>ul,
.mage_input_select_list_static>ul {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0;
}

.mage_input_select_list>ul>li,
.mage_input_select_list_static>ul>li {
    flex-basis: 25%;
    padding: 10px;
    margin: 0px;
    border-bottom: 1px solid #f5f5f5;
    text-align: center;
    border-right: 1px solid #f5f5f5;
}

.mage_input_select_list>ul>li:hover,
.mage_input_select_list_static>ul>li:hover {
    color: #fff;
    cursor: pointer;
    background: #22D02D;
    transition: 0.2s;
}

.mage_input_select_list>ul>li span,
.mage_input_select_list_static>ul>li span {
    margin-right: 7px;
}

#wbtm_show_msg {
    position: absolute;
    top: 0px;
    right: 0;
    margin-bottom: 0 !important;
    line-height: .7em;
    color: #FFC107;
}

.activeMageSelect:after {
    content: '';
    position: absolute;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 5px solid #00BCD4;
    top: 97%;
    left: 0;
    display: block;
    right: 0;
    width: 3px;
    margin: 0 auto;
}


/*change search form END*/


/* Minimal Bus search theme */

.mage-search-res-wrapper .mage-search-res-header,
.mage-search-res-wrapper .mage-search-brief-row {
    display: flex;
    align-items: center;
}

.mage-search-res-wrapper .mage-search-res-header {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 12.5px;
    margin: 0 0 10px 0;
}

.mage-search-res-wrapper .mage-search-brief-row {
    padding: 16px 20px;
}

.mage-search-res-wrapper .mage-search-res-header span {
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff9f9;
}

.mage-search-res-header .mage-search-res-header--img,
.mage-search-brief-row .mage-search-res-header--img {
    flex-basis: 8%;
    margin-right: 2%;
    text-align: center;
}

.mage-search-res-header .mage-search-res-header--left,
.mage-search-brief-row .mage-search-res-header--left {
    flex-basis: 45%;
    display: flex;
    align-items: center;
}

.mage-search-brief-row .mage-search-res-header--left p,
.mage-search-brief-row .mage-search-res-header--left span {
    font-size: 13px;
}

.mage-search-res-header .mage-search-res-header--left>span {
    flex-basis: 50%;
}

.mage-search-brief-row .mage-search-res-header--left>div {
    flex-basis: 50%;
}

.mage-search-res-header .mage-search-res-header--right,
.mage-search-brief-row .mage-search-res-header--right {
    flex-basis: 45%;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.mage-search-brief-row .mage-search-res-header--right > div {
    font-size: 13.5px;
    color: #374151;
    text-align: center;
}

/* Fare is the one value on this row that deserves to stand out --
   everything else here is just informational text. */
.mage-search-brief-row .mage-search-fare-value {
    font-weight: 700;
    color: #111827;
    font-size: 14.5px;
}
input#r_date,
input#j_date{width: auto;}
.mage-search-brief-row .mage-bus-detail-action {
    background: #22D02D;
    color: #fff;
    padding: 11px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    text-transform: capitalize;
    width: 100%;
    box-shadow: 0 3px 8px rgba(34, 208, 45, .3);
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.mage-search-brief-row .mage-bus-detail-action:hover {
    background: #0FA218;
    box-shadow: 0 5px 12px rgba(15, 162, 24, .38);
    transform: translateY(-1px);
}

.mage-search-brief-row .bus-title {
    line-height: 1.3em;
    display: block;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.mage-search-brief-row .mage-bus-stopage {
    line-height: 1.6em;
    color: #4b5563;
}

.mage-search-brief-row .mage-bus-stopage i {
    color: #4CAF50;
}

.mage-search-brief-row .mage-bus-stopage+.mage-bus-stopage i {
    color: #ff5722;
}

.mage-bus-booking-wrapper .mage_bus_details {
    width: 100%;
}

.mage-bus-booking-wrapper {
    padding: 15px;
    display: none;
}

.mage-bus-booking-wrapper .mage_bus_info {
    padding: 20px;
    margin: 0;
    flex-basis: 45%;
    background-color: #fff;
}

.mage_search_list .mage_bus_info h3 a {
    text-decoration: none;
    color: #000;
}

.mage-bus-booking-wrapper .mage_bus_info p strong {
    min-width: 122px;
    display: inline-block;
}

.mage-bus-booking-wrapper .mage_bus_info p {
    line-height: 1.5em;
}
.wbbm_dropoff-desc {
    display: block;
    margin-left: 128px;
    color: #B37626;
    font-size: 14px;
}
.wbbm_dropoff-desc-single {
    margin-left: 82px;
}

.mage-bus-booking-wrapper .mage_price_info {
    flex-basis: 40%;
    margin-left: 2%;
    padding: 20px;
    background: #fff;
}

.mage-search-res-wrapper--footer {
    width: 100%;
    height: 20px;
    background: #c5c3bb;
    border-radius: 0 0 3px 3px;
    margin-top: 8px;
}

.single-wbbm_bus .mage_search_list {
    padding: 10px;
}

.mage-sm-show {
    display: none;
}

.mage-notification-area {
    display: flex;
    align-items: center;
}

.mage-notification.mage-seat-available {
    font-weight: 700;
    color: #f40101;
    display: none;
}


/* Minimal Bus search theme END */

@media only screen and (max-width: 1200px) {
    .mage_search_box_sidebar {
        max-width: 100%;
    }
    .mage_search_area {
        max-width: 100%;
        margin: 15px 0 0 0;
    }
    .mage_sidebar_search_form form.mage_form {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: space-between;
        justify-content: space-between;
    }
    .mage_sidebar_search_form form.mage_form .mage_form_list {
        width: calc(33% - 15px);
    }
    .mage_route_title p {
        font-size: 20px !important;
    }
    div.mage_form_radio {
        padding: 0 0 8px 0;
    }
    .search_form_horizontal div.mage_form_radio {
        padding: 0;
    }
    div.mage_form_radio,
    div.mage_form_search {
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: flex-end;
        align-items: flex-end;
    }
}

@media only screen and (max-width: 1100px) {
    .search_form_horizontal form.mage_form .mage_form_list {
        -webkit-flex: inherit;
        -ms-flex: inherit;
        flex: inherit;
        width: calc(50% - 15px);
    }
    .search_form_horizontal .mage_input_select {
        position: relative
    }
}

@media only screen and (max-width: 900px) {
    .search_form_horizontal form .mage_form_control {
        width: 100%;
    }
    .mage-form-field.mage-form-pickpoint-field select {
        float: right !important;
    }
    .mage_sidebar_search_form form.mage_form .mage_form_list {
        width: calc(50% - 15px);
    }
    div.mage_flex_equal.mage_bus_details>* {
        -webkit-flex: inherit;
        flex: inherit;
        width: 100%;
    }
    div.mage_flex_equal .mage_price_info,
    .mage-bus-booking-wrapper .mage_price_info {
        margin: 15px 0 0 0;
        padding: 20px;
    }
    .mage_container h3 {
        font-size: 20px !important;
    }
    .mage_route_title p {
        font-size: 18px !important;
    }
    div.mage_container p,
    .mage-form-field.mage-form-pickpoint-field label,
    .mage_search_list .mage_book_now_area .mage_sub_total div,
    div.mage_form_group .mage_form,
    .mage-form-field.mage-form-pickpoint-field select,
    .mage_form_list .mage_form_full,
    button.mage_button,
    .mage-search-brief-row .mage-bus-detail-action,
    .mage-search-res-wrapper .mage-search-res-header {
        font-size: 14px !important;
    }
    .mage_book_now_area .mage_thumb,
    .mage_book_now_area .mage_flex_equal {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .mage_input_select_list>ul>li,
    .mage_input_select_list_static>ul>li {
        flex-basis: 100%;
        padding: 10px;
    }
}

@media only screen and (max-width: 700px) {
    .xs_not_flex {
        display: block !important;
    }
    .xs_not_flex .mage_bus_details,
    .xs_not_flex .mage_thumb {
        width: 100%;
    }
    .mage_bus_info,
    .mage_price_info {
        border: none;
        margin: 15px 0 0 15px;
        padding: 0;
    }
}

@media only screen and (max-width: 600px) {
    .mage-search-res-header--left div,
    .mage-search-res-header--right div {
        border-bottom: 1px dashed #d3d3d3;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .mage-search-res-header--right div p {
        display: inline-block;
    }
    .mage_book_now_area div.mage_flex_equal>* {
        -webkit-flex: inherit;
        flex: inherit;
        width: 100%;
    }
    .mage_sub_price {
        margin: 0 0 15px 0;
        padding: 0;
    }
    .mage_book_now {
        margin: 0;
        padding: 0;
    }
}

@media only screen and (max-width: 500px) {
    .mage_container {
        font-size: 14px !important;
    }
    .mage_sidebar_search_form form.mage_form .mage_form_list {
        width: 100%;
    }
    .mage_form_list .mage_form_full,
    .mage_customer_info_area label {
        width: 100%;
    }
    .mage_container h3 {
        font-size: 18px !important;
    }
    .mage_container h4 {
        font-size: 15px !important;
    }
    .mage_form_list .mage_form_full,
    .mage_customer_info_area label,
    .mage_route_title p,
    div.mage_form_group .mage_form {
        font-size: 14px !important;
        ;
    }
    .mage_form_group {
        max-width: 50%;
    }
    .search_form_horizontal form.mage_form .mage_form_list {
        width: 100%;
    }
    .mage-search-res-wrapper .mage-search-brief-row {
        padding: 15px 15px 15px;
    }
    .mage-search-res-wrapper .mage-search-brief-row,
    .mage-search-brief-row .mage-search-res-header--left,
    .mage-search-brief-row .mage-search-res-header--right {
        align-items: initial;
        flex-direction: column;
    }
    .mage-sm-show {
        display: inline-block;
        min-width: 98px;
    }
    .mage-search-brief-row .mage-search-res-header--img {
        text-align: initial;
        margin-bottom: 10px;
    }
    .mage-search-brief-row .mage-search-res-header--img img {
        width: 100%;
    }
    .mage-search-brief-row .mage-bus-title {
        font-size: 1.5em;
        line-height: 1em;
        margin-bottom: 10px;
    }
    .mage-bus-booking-wrapper .mage_price_info {
        border-left: none;
        padding: 0;
        margin-left: 0!important;
    }
    .mage-bus-booking-wrapper .mage_price_info>p>strong {
        text-decoration: underline;
    }
    .mage-search-res-wrapper .mage-search-res-header {
        display: none;
    }
    .mage_bus_info,
    .mage_price_info,
    div.mage_flex_equal .mage_price_info {
        margin: 15px 0 0;
    }
}

.mage_search_list .mage_book_now_area .mage-notification-area {
    width: 100%;
}

.mage_search_list .mage_book_now_area .mage_flex_equal {
    display: block;
    width: 100%;
    margin: 0;
}

.mage_search_list .mage_book_now_area .mage_flex_equal .mage_sub_price {
    display: block;
    margin: 0;
    padding: 0;
}

.mage_search_list .mage_book_now_area .mage_book_now {
    display: block;
    padding: 0;
}

.mage_search_list .mage_book_now_area .mage_button.mage_book_now {
    margin: 0;
    margin-bottom: 20px;
}

.mage_search_list .mage_book_now_area .mage_sub_total {
    display: flex;
    border: 1px solid #d3d3d3;
    margin-bottom: 10px;
    align-items: center;
}

.mage_search_list .mage_book_now_area .mage_sub_total .mage_subtotal_figure {
    margin-left: 5px;
}

.mage_search_list .mage_book_now_area .mage_sub_total div {
    padding: 8px;
}

.mage_search_list .mage_book_now_area .mage_sub_total div:nth-child(1) {
    background-color: #727272;
    color: #fff;
    font-weight: bold;
}

.mage-form-field.mage-form-pickpoint-field label {
    float: left;
    display: inline-block;
    width: auto;
}

.mage-form-field.mage-form-pickpoint-field select {
    float: right;
    display: inline-block;
    width: auto;
}

.mage-form-field.mage-form-pickpoint-field select option:not([disabled]),
select.mage_pickpoint option:not([disabled]) {
    font-weight: 700;
}

.mage-search-brief-row .mage-search-res-header--img img {
    width: 100px;
    height: auto;
    border-radius: 8px;
}

.search_form_horizontal div.mage_form_radio {
    display: none;
}

.search_form_horizontal div.mage_form_search {
    padding-top: 35px;
}

.mage-form-field select {
    font-size: 14px;
}
div.mage_form_list_body .mage_group_input label input{margin:0 10px 0 0;}
div.mage_form_list_body .mage_group_input label{width: auto;
margin: 10px 10px 0 0;}

/* Leg separator inside the confirmation's details table -- a return trip
   lists both buses, and without a heading the two blocks of Bus/Route/Date
   rows read as one contradictory list. */
.wbbm-offline-leg-heading th {
    padding-top: 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.6;
    color: #6b7280;
    width: auto;
}

.wbbm-offline-booking-details tr:first-child.wbbm-offline-leg-heading th {
    padding-top: 0;
}
