/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */


.popover {
    font-family: inherit;
    border-radius: 1rem;
    border: 1px solid var(--color-300);

    &>.popover-body {
        padding: 0.5rem 1rem;
    }

    &.bs-popover-top>.arrow::before,
    &.bs-popover-auto[x-placement^=top]>.arrow::before {
        border-top-color: var(--color-300);
    }

    &.bs-popover-bottom>.arrow::before,
    &.bs-popover-auto[x-placement^=bottom]>.arrow::before {
        border-bottom-color: var(--color-300);
    }

    &.bs-popover-left>.arrow::before,
    &.bs-popover-auto[x-placement^=left]>.arrow::before {
        border-left-color: var(--color-300);
    }

    &.bs-popover-right>.arrow::before,
    &.bs-popover-auto[x-placement^=right]>.arrow::before {
        border-right-color: var(--color-300);
    }
}




.tm-free {
    display: inline-block;

    &:after {
        content: '';
        width: 100%;
        height: 2px;
        display: block;
        background: var(--color-300);
        margin-top: -5px;
    }
}

.wow-number-input {
    /* border: 2px solid #ddd; */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    align-items: center;
    border-radius: 0.625rem;
    background-color: var(--color-200);
    padding: 0.25rem;
    color: #ffffff;

    &>input[type="number"] {
        -webkit-appearance: textfield;
        -moz-appearance: textfield;
        appearance: textfield;
        border: 0;
        outline: none;
        box-shadow: none;
        text-align: center;
        width: 1.5rem;
        height: 1.5rem;
        padding: 0;
        background-color: transparent;
        color: #ffffff;

        &::-webkit-inner-spin-button,
        &::-webkit-outer-spin-button {
            -webkit-appearance: none;
        }
    }

    &>button {
        outline: none;
        -webkit-appearance: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin: 0;
        padding: 0 !important;
        width: 1.5rem;
        height: 1.5rem;
        border: 0 !important;
        border-radius: 0.25rem !important;
        display: grid;
        place-content: center;
        background: inherit;

        &:disabled {
            opacity: 0.15;
        }

        &:hover {
            background-color: var(--color-100);
        }

        &:before {
            display: inline-block;
            content: '';
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="2" viewBox="0 0 14 2" fill="none"><path d="M0.75 0.75H12.75" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
            background-repeat: no-repeat;
            background-position: center center;
            width: 0.75rem;
            height: 0.75rem;

        }

        &:last-child:before {
            content: '';
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none"><path d="M0.75 6.75H6.75M12.75 6.75H6.75M6.75 6.75V0.75M6.75 6.75V12.75" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        }

    }
}

/* 
.wow-number-input,
.wow-number-input * {
    box-sizing: border-box;
} */

input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    margin: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    border: 1px solid var(--color-600);
    cursor: pointer;
    transition: all 0.15s ease-in-out;

    display: grid;
    place-content: center;

    &:before {
        content: "" !important;
        width: 1.5rem !important;
        height: 1.5rem !important;
        background: none;
    }

    &:focus {
        outline: none;
        box-shadow: none;
    }

    &:checked {
        background-color: var(--color-200);
        box-shadow: none;

        &:before {
            content: "";
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="21" height="15" viewBox="0 0 21 15" fill="none"><path d="M0.75 8.75L6.08333 14.0833L19.4167 0.750001" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
            background-repeat: no-repeat;
            background-position: center center;
            margin: 0;
        }
    }

    &:disabled {
        background-color: var(--color-600);
        cursor: not-allowed;
    }
}

.form-label-group {
    position: relative;
    margin-bottom: 1rem;

    &>input.form-control,
    &>textarea.form-control,
    &>select.form-control,
    & .select2-selection,
    &>.iti input,
    &>label {
        height: 3.5rem;
        border-radius: 1rem;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        line-height: 2.5rem;
        font-weight: 500;
        color: var(--color-800);
        border: 1px solid var(--color-600);

        &>.select2-selection__rendered {
            padding: 0;
        }

        &>.select2-selection__arrow {
            height: 2.5rem;
            border-radius: 1rem;
            bottom: 1px;
            top: inherit;

            &>b[role="presentation"] {
                display: none;
            }

            &:before {
                content: '';
                width: 1.5rem;
                height: 1.5rem;
                right: 1rem;
                background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M6 9L12 15L18 9" stroke="%234A4741" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
                position: absolute;
            }
        }
    }
    
    &>textarea.form-control{
        field-sizing: content;
        height: auto;
        line-height: 1.625rem;
        min-height: 3.5rem;
    }

    &>label {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        margin-bottom: 0;
        /* Override default `<label>` margin */
        color: var(--color-700);
        pointer-events: none;
        cursor: text;
        /* Match the input under the label */
        border: 0;
        transition: all .1s ease-in-out;
        
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 100%;
        overflow-x: hidden;
    }

    &>input.form-control,
    &>textarea.form-control,
    &>select.form-control,
    &>.iti input {

        &::placeholder {
            color: transparent;
        }

        &:not(:placeholder-shown) {
            padding-top: 1.25rem;

            ~label {
                font-size: 0.75rem;
                line-height: 1rem;
            }
        }

        &:-webkit-autofill~label {
            padding-top: .25rem;
            padding-bottom: .25rem;
            font-size: 0.75rem;
        }


        &:focus {
            outline: 0;
            box-shadow: inherit;
        }
    }

    &>.select2 {

        & .select2-selection {
            padding-top: 1.25rem;
            padding-right: 2.5rem;
        }

        &~label {
            font-size: 0.75rem;
            line-height: 1rem;
        }
    }

    &>.iti {
        width: 100%;

        & .iti__flag-container {

            &>.iti__selected-flag {
                padding-left: 1rem;
                padding-top: 1rem;
                border-radius: 1rem;
            }
        }

        & input {
            padding-top: 1.25rem;
            padding-left: 3.75rem;
        }

        &~label {
            font-size: 0.75rem;
            line-height: 1rem;
        }
    }
}

.select2-container .select2-results .select2-results__option--highlighted[aria-selected] {
    background-color: #232323;
}

.select2-container .select2-results .select2-results__option {
    margin-bottom: 0px;
}

.form-control.flatpickr-input[readonly],
.form-control[data-fp-omit][readonly] {
    background-color: #fff;
}

.btn-group-toggle {
    gap: 0.5rem;

    &>.btn {
        border-radius: 0.5rem;
        font-size: 1rem;
        line-height: 1.5rem;
        font-weight: 500;
        flex-basis: 0;

        &.btn-outline-dark:not(:disabled):not(.disabled) {
            background-color: transparent;
            border-color: var(--color-600);
            color: var(--color-700);

            &.active {
                background-color: var(--color-200);
                border-color: var(--color-200);
                color: var(--color-400);
            }
        }
    }
}

.form-control.StripeElement {
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    min-height: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
.snackbar {
    visibility: hidden;
    min-width: 200px;
    margin: 1rem;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 2px;
    padding: 1rem;
    position: fixed;
    /* z-index: 1050; */
    z-index: 9999;
    left: 0;
    bottom: 1rem;

    &.show {
        visibility: visible;
        /* Show the snackbar */
        /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
        However, delay the fade out process for 2.5 seconds */
        -webkit-animation: fadein 0.5s, fadeout 0.5s 4.5s;
        animation: fadein 0.5s, fadeout 0.5s 4.5s;
    }
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 1rem;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 1rem;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 1rem;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 1rem;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.input-group>.select2,
.input-group>.btn-group {
    position: relative;
    flex: 1 1 0%;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .input-group .select2 .select2-selection {
        border-top: 0;
    }
}


form {

    ul.parsley-errors-list.filled,
    .stripe-card-errors{
        color: #ff0000;
        padding: 0.25rem 1rem 0;
        font-size: 0.875rem;
    }

    ul.parsley-errors-list.filled{
        list-style: none;
    }
}


[data-help] {
    position: relative;
}

[data-help]::after {
    content: attr(data-help);
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 11px;
}

table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before,
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:before {
    background-color: #0073aa;
    top: 50%;
    margin-top: -9px;
}

table.dataTable>tbody>tr.child ul.dtr-details>li {
    display: flex;
    align-items: center;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.child,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.child,
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty {
    background: #f9f9f9;
    border-left: 3px solid #333333;
}

.input-group>.iti {
    position: relative;
    flex: 1 1 0%;
    min-width: 1rem;
    margin-bottom: 0;
}

body .flatpickr-day.selected,
body .flatpickr-day.selected:is(:focus, :hover) {
    background: #6C8F3B;
    border-color: #6C8F3B;
}


.iti__flag {
    background-image: url("../../lib/intl-tel-input/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("../../lib/intl-tel-input/img/flags@2x.png");
    }
}

[class^="tm-rotate-"],
[class*=" tm-rotate-"] {
    display: inline-block;
}

.tm-rotate-90 {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
    filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.tm-rotate-180 {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
    filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.tm-rotate-270 {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
    filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}

.tm-flip-horizontal {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
    filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
    -webkit-transform: scale(-1, 1);
    -moz-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

.tm-flip-vertical {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
    filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
    -webkit-transform: scale(1, -1);
    -moz-transform: scale(1, -1);
    -ms-transform: scale(1, -1);
    transform: scale(1, -1);
}

[data-vehicle-promotion] {
    background-color: var(--primary-light);
    padding: 0;
}

[data-vehicle-promotion] .promotion_block,
[data-banner-promotion] .promotion_block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    background-color: #000;
    color: #fff;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    min-height: 36px;
    position: relative;
    padding-left: 50px;
    padding-right: 8px;
}

[data-vehicle-promotion] .promotion_block svg,
[data-banner-promotion] .promotion_block svg {
    width: 60px;
    position: absolute;
    left: -5px;
    top: -23px;
}

[data-vehicle-promotion] .promotion_block .promo_val,
[data-banner-promotion] .promotion_block .promo_val {
    background: #fff;
    color: #000;
    border-radius: 20px 0 20px 20px;
    padding: 0 6px;
}

[data-banner-promotion] {
    position: absolute;
    top: -35px;
    width: 100%;
    left: 0;
    padding: 0 1.5rem;
}

[data-banner-promotion] .promotion_block {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-left: 1rem;
}

[data-banner-promotion] .promotion_block svg {
    border-bottom-left-radius: inherit;
}

[data-banner-promotion] .promotion_block:has(svg) {
    padding-left: 3.75rem;
}