:root {
    --cr-primary: #000000;
    --cr-secondary: #EEEEEE;

    --cr-input-bg: #ffffff;

    --cr-font-size-small: 15px;

    --cr-border-radius: 20px;
    --cr-border-width: 2px;
    --cr-border-color: #000000;

    --cr-btn-color-primary: #ffffff;
    --cr-btn-bg-primary: var(--cr-primary);
    --cr-btn-bg-secondary: var(--cr-secondary);
}

.cr-modal {
    display: none;
    flex-direction: column;
    z-index: 999999;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 16px;
    background-color: #ffffff;
}

.cr-show {
    display: flex;
}

.cr-modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

.cr-modal-close {
    position: absolute;
    right: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    padding: 0;
}

.cr-modal-body {
    overflow-y: scroll;
    flex-grow: 1;
}

.cr-modal-footer {
    padding: 12px 0;
}

.cr-modal-footer .cr-btn {
    width: 100%;
}

.cr-hide {
    display: none !important;
}

.cr-modal-datepicker .air-datepicker {
    --adp-width: 100%;
    --adp-border-color-inline: transparent;
}

.cr-modal-places {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cr-modal-places .cr-place {
    --cr-border-radius: 12px;
    background-color: var(--cr-secondary);
    border-radius: var(--cr-border-radius);
    padding: 8px 16px;
    transition: color .2s ease-in-out, background-color .2s ease-in-out;
    cursor: pointer;
}

.cr-modal-places .cr-place:hover {
    color: var(--cr-btn-color-primary);
    background-color: var(--cr-primary);
}

.cr-modal-title-calendar,
.cr-modal-title-pick-up,
.cr-modal-title-drop-off,
.cr-modal-datepicker,
.cr-modal-places {
    display: none !important;
}

.cr-modal-calendar .cr-modal-title-calendar,
.cr-modal-pick-up .cr-modal-title-pick-up,
.cr-modal-drop-off .cr-modal-title-drop-off,
.cr-modal-calendar .cr-modal-datepicker {
    display: block !important;
}

.cr-modal-pick-up .cr-modal-places,
.cr-modal-drop-off .cr-modal-places {
    display: flex !important;
}

.cr-btn {
    cursor: pointer;
    width: auto;
    padding: .7em 1em;
    border: unset;
    margin: unset;
    border-radius: var(--cr-border-radius);
}

.cr-select {
    border: var(--cr-border-width) solid var(--cr-border-color);
    border-radius: var(--cr-border-radius);
    font-size: var(--cr-font-size-small);
    background-color: var(--cr-input-bg) !important;
}

.cr-btn:hover {
    border: unset;
}

.cr-checkbox,
.cr-radio {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cr-radio input[type="radio"],
.cr-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: var(--cr-secondary);
    transition: background-color .2s ease-in-out;
}

@media screen and (min-width: 768px) {
    .cr-radio input[type="radio"],
    .cr-checkbox input[type="checkbox"] {
        background-color: var(--cr-input-bg);
    }
}

.cr-radio input[type="radio"] {
    border-radius: 50%;
}

.cr-checkbox input[type="checkbox"] {
    border-radius: var(--cr-border-radius);
}

.cr-checkbox input[type="checkbox"]:checked {
    background-color: var(--cr-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.cr-radio input[type="radio"]:checked {
    background-color: var(--cr-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.cr-btn-primary {
    color: var(--cr-btn-color-primary);
    background-color: var(--cr-btn-bg-primary);
}

.car-rental svg {
    flex-shrink: 0;
}

.car-rental {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
}

.car-rental.loading * {
    transition: unset !important;
}

@media screen and (max-width: 768px) {
    .car-rental {
        gap: 32px;
        flex-direction: column;
    }
}

.cr-aside {
    flex: 0 0 auto;
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cr-place-selects {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.cr-place-selects .choices__item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .cr-aside {
        width: 100%;
    }

    .cr-place-selects {
        flex-direction: row;
    }

    .cr-pick-up, .cr-drop-off {
        flex: 1;
        min-width: 0;
    }

    .cr-class {
        flex-direction: row !important;
        align-items: center;
    }

    .cr-class svg {
        order: 1;
    }

    .cr-class span {
        order: 2;
    }
}

.cr-search {
    display: flex;
    flex-direction: column;
}

.cr-pick-up, .cr-drop-off {
    display: flex;
    flex-direction: column;
}

.cr-search label {
    margin-bottom: 8px;
}

.cr-aside-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media screen and (min-width: 768px) {
    .cr-aside-card-header {
        font-weight: bold;
        margin-bottom: 8px;
    }

    .cr-search, .cr-aside-card {
        background-color: var(--cr-secondary);
        border-radius: var(--cr-border-radius);
        padding: 16px;
    }
}


.car-rental .choices .choices__inner {
    border: var(--cr-border-width) solid var(--cr-border-color);
    border-radius: var(--cr-border-radius);
    font-size: var(--cr-font-size-small);
    background-color: var(--cr-secondary) !important;
}

.cr-calendar {
    border: var(--cr-border-width) solid var(--cr-border-color) !important;
    border-radius: var(--cr-border-radius) !important;
    font-size: var(--cr-font-size-small);
}

#mobileFiltersButton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media screen and (min-width: 768px) {
    .car-rental .choices .choices__inner, .cr-calendar {
        background-color: var(--cr-input-bg) !important;
    }

    #mobileFiltersButton {
        display: none;
    }

    [data-type="filter"].cr-hide {
        display: flex !important;
    }
}

.cr-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cr-class-list {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.cr-class {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;
    width: 100%;
    padding: 12px;
    cursor: pointer;
    font-size: var(--cr-font-size-small);
    background-color: var(--cr-btn-bg-secondary);
    border-radius: var(--cr-border-radius);
    border: 1px solid var(--cr-btn-bg-secondary);
    margin-bottom: 0;
}

.cr-class.active {
    border-color: var(--cr-border-color);
}

.cr-class div {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

@media screen and (max-width: 768px) {
    .cr-class-list {
        overflow-x: auto;
    }
}

.cr-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cr-sorting-select {
    padding: 0 32px 0 0;
    border: 0;
    background-size: auto;
    border-radius: 0;
}

.cr-not-found {
    font-weight: bold;
}

.cr-car-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cr-car {
    display: flex;
    padding: 32px 24px;
    gap: 32px;
    border: var(--cr-border-width) solid var(--cr-border-color);
    border-radius: var(--cr-border-radius);
}

@media screen and (max-width: 768px) {
    .cr-car {
        flex-direction: column;
        padding: 24px 14px;
        gap: 10px;
    }
}

.cr-car-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30%;
}

.cr-car-image img {
    width: 100%;
}

@media screen and (max-width: 768px) {
    .cr-car-image {
        width: 100%;
    }

    .cr-car-image img {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

.cr-car-content {
    flex-grow: 1;
}

.cr-placeholder {
    background-color: var(--cr-secondary);
    border-radius: var(--cr-border-radius);
}

.cr-car-name {
    margin-bottom: 32px;
}

@media screen and (max-width: 768px) {
    .cr-car-name {
        margin-bottom: 24px;
    }
}

.cr-car-name-label {
    font-size: 20px;
    font-weight: bold;
}

.cr-car-similar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--cr-font-size-small);
    margin-top: 6px;
}

.cr-car-option-list {
    display: flex;
    gap: 6px;
}

.cr-car-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cr-secondary);
    border-radius: var(--cr-border-radius);
    padding: 4px 12px;
}

.cr-car-mile-limit,
.cr-car-free-cancel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--cr-font-size-small);
}

.cr-car-mile-limit {
    margin-top: 32px;
}

@media screen and (max-width: 768px) {
    .cr-car-mile-limit {
        margin-top: 24px;
    }
}

.cr-car-free-cancel {
    margin-top: 8px;
}

.cr-car-book {
    display: flex;
    flex-direction: column;
    width: 25%;
}

@media screen and (max-width: 768px) {
    .cr-car-book {
        width: 100%;
    }
}

.cr-car-book button {
    margin-top: auto;
}

.cr-car-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.cr-car-price-total {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 6px;
}

.cr-car-price-day {
    font-size: var(--cr-font-size-small);
}

.cr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.cr-pagination > span {
    padding: 0 8px;
}

.cr-pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--cr-btn-bg-secondary);
}

.cr-pagination-btn.active {
    color: var(--cr-btn-color-primary);
    background-color: var(--cr-btn-bg-primary);
}
