/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
table.oddw-dashboard {
    border: 1px solid #DDD;
}

table.oddw-dashboard thead {
    background: #f1f1f1;
    font-weight: 700;
}

table.oddw-dashboard td {
    padding: 10px;
}

table.oddw-dashboard tr {
    border-bottom: 1px solid #f1f1f1;
}

table.oddw-dashboard tr:last-child {
    border-bottom: 0;
}

table.oddw-dashboard tr.delivery-charge,
table.oddw-dashboard tr.order-total {
    background: #f1f1f1;
}

.oddw-dashboard {
    font-size: 14px;
}

h3.oddw {
    margin-top: 0;
    margin-bottom: 24px;
}

h3.oddw {
    position: relative;
}

h3.oddw span {
    background: transparent;
    border-radius: 3px;
    border: 1px solid #454545;
    color: #454545;
    display: inline-block;
    font-size: 16px;
    margin: 0 10px;
    margin-top: 0px;
    padding: 6px 12px;
    position: absolute;
    top: 0;
    text-transform: uppercase;
}

h3.oddw span.completed {
    border-color: #76bd1d;
    color: #76bd1d;
}

h3.oddw span.out-for-delivery {
    color: #56A8C7;
    border-color: #56A8C7;
}

h3.oddw span.cancelled,
h3.oddw span.refunded,
h3.oddw span.failed {
    color: #C94C42;
    border-color: #C94C42;
}

/* Button Defaults */

a.button.oddw-button {
    background: #222;
    padding: 0.75em 2em;
    border-radius: 3px;
    color: #FFF;
    font-weight: 600;
}

a.button.oddw-button:hover,
a.button.oddw-button:focus,
a.button.oddw-button:active {
    background: #767676;
    color: #ffffff;
    border: 0;
    box-shadow: none;
}

.oddw-display-options {
    font-size: 14px;
    float: left;
    line-height: 1;
    margin-bottom: 12px;
    padding: 5px;
    width: 100%;
}

/** Driver Details on Order page */

.oddw-driver-picture {
    position: relative;
    width: 140px;
    display: inline-block;
}

button.remove-oddw-driver-picture {
    background: #FF0000;
    border: 0;
    color: #FFF;
    border-radius: 50%;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1px;
    padding: 10px 6.61px;
    position: absolute;
    top: -5px;
    right: -5px;
    text-align: center;
}

button.remove-oddw-driver-picture:hover {
    background: #DF0000;
    color: #FFF;
}

.oddw-driver-details {
    position: relative;
    float: left;
    width: 100%;
}

.oddw-driver-details td {
    vertical-align: middle;
}

.oddw-driver-details td:first-child {
    font-weight: bold;
}

.oddw-star-rating {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.oddw-star-rating .oddw-star {
    border: 0;
    background: transparent;
    color: #d2d2d2 !important;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.oddw-star-rating .oddw-star.is-active {
    color: #edb867 !important;
    background: transparent;
}

.oddw-star-rating .oddw-star:hover,
.oddw-star-rating .oddw-star:focus {
    color: #edb867 !important;
    background: transparent;
    outline: none;
}

.oddw-star-rating .oddw-star[disabled] {
    cursor: default;
}

.oddw-rating-form {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.oddw-submit-rating {
    margin-top: 0;
    display: inline-block;
}

.oddw-rating-message {
    margin-bottom: 10px;
    text-align: center;
}

.oddw-rating-success {
    color: #2f7a1f;
}

.driver-rating-container {
    text-align: center;
}

.driver-rating-container h3 {
    text-align: center;
}

.driver-rating-container .oddw-star-rating {
    justify-content: center;
}

.oddw-driver-details img {
    width: 100px;
    height: 100px;
    box-shadow: 0 0 5px 0 rgb(0 0 0 / 20%);
}

.oddw-driver-details h4,
.oddw-driver-details p {
    margin-bottom: 12px !important;
}


table.oddw-driver-details {
    margin-bottom: 12px !important;
}

table.oddw-driver-details tr {
    border: 1px solid #ddd;
}

table.oddw-driver-details tr td {
    padding: 10px;
}

/** Bar Rating */

.br-theme-fontawesome-stars .br-widget {
    height: 28px;
    white-space: nowrap;
}
.br-theme-fontawesome-stars .br-widget a {
    font: normal normal normal 20px/1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
    margin-right: 2px;
}
.br-theme-fontawesome-stars .br-widget a:after {
    content: '\f005';
    color: #d2d2d2;
}
.br-theme-fontawesome-stars .br-widget a.br-active:after {
    color: #EDB867;
}
.br-theme-fontawesome-stars .br-widget a.br-selected:after {
    color: #EDB867;
}
.br-theme-fontawesome-stars .br-widget .br-current-rating {
    display: none;
}
.br-theme-fontawesome-stars .br-readonly a {
    cursor: default;
}
@media print {
    .br-theme-fontawesome-stars .br-widget a:after {
        content: '\f006';
        color: black;
    }
    .br-theme-fontawesome-stars .br-widget a.br-active:after,
    .br-theme-fontawesome-stars .br-widget a.br-selected:after {
        content: '\f005';
        color: black;
    }
}

/** Driver's "Out for Delivery" message to administrators */

input.oddw-ofdmsg {
    margin-bottom: 12px;
}

.oddw-orders form input[type="submit"].oddw-changestatus {
    padding: 0.75em 2em;
}

/** ODDW Pro SMS Updates title on checkout */

.oddw-pro-sms-updates h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

/** Driver Dashboard - Driver availability */

.oddw-availability {
    padding: 5px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media screen and (max-width: 767px) {
    .oddw-availability {
        margin-top: 24px;
    }
}

.oddw-availability h4 {
    font-size: 20px;
    display: inline-block;
    line-height: 34px;
    margin: 0 0 0 5px;
}
.oddw-availability label.switch {
    float: right;
    margin-top: 2px;
}

/* The switch - the box around the slider */
.oddw-availability .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

/* Hide default HTML checkbox */
.oddw-availability .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.oddw-availability .switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.oddw-availability .switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.oddw-availability input:checked + .slider {
    background-color: #76bd1d;
}

.oddw-availability input:focus + .slider {
    box-shadow: 0 0 1px #76bd1d;
}

.oddw-availability input:checked + .slider:before {
    -webkit-transform: translateX(28px);
    -ms-transform: translateX(28px);
    transform: translateX(28px);
}

/* Rounded sliders */
.oddw-availability .switch .slider.round {
    border-radius: 22px;
}

.oddw-availability .switch .slider.round:before {
    border-radius: 50%;
}

form.order-filters {
    display: flex;
    align-items: flex-end;
    column-gap: 10px;
    padding: 10px;
}
div.oddw-driver-picture-preview, div.oddw-car-picture-preview {
    position: relative;
    width: fit-content;
}
button.oddw-button-remove-picture {
    border: 0;
    position: absolute;
    left: 0;
}
.oddw-pending-status-notice {
    padding: 10px;
    margin: 5px;
    border-radius: 8px;
    border: 1px solid #000;
}