/* This file is reserved for overriding and extending the template styles. */


/* The switch - the box around the slider */

/* svg style */
.svgBtn:hover svg path {
    fill: white !important;
}

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}


/* Hide default HTML checkbox */

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


/* The slider */

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

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

input:checked+.slider.primary {
    background-color: #2196F3;
}

input:focus+.slider.primary {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider.success {
    background-color: #439b38;
}

input:focus+.slider.success {
    box-shadow: 0 0 1px #439b38;
}

input:checked+.slider.danger {
    background-color: #dc3545;
}

input:focus+.slider.danger {
    box-shadow: 0 0 1px #dc3545;
}

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


/* Rounded sliders */

.slider.round {
    border-radius: 17px;
}

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


/* Fix select2 */

.select2-selection__rendered {
    margin-bottom: 0px !important;
}


/* Vertical nav */
.logo-default {
    background-image: url(../img/cmw/logo_cmw_email.png) !important;
    background-size: contain;
    width: 100%;
    min-height: 55px;
}

.nav-vertical .nav-link.active {
    border-bottom: 3px rgb(153, 38, 69) solid;
}

/*progressbar*/
.progress-bar-line .progressbar-text {
    font-size: 0.7rem;
    margin-top: .25rem !important;
    margin-left: .25rem;
}



/*css for collection form  */
.cmw-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cmw-scrollbar {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
    /* Height of the scrollbar */
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
}

.cmw-scrollbar-top {
    top: 0;
}

.cmw-scrollbar-bottom {
    bottom: 0;
}

.cmw-scrollbar-inner {
    width: 100%;
    /* Match the scrollable content width dynamically */
    height: 1px;
    /* Minimal height for scrollbar */
}

.cmw-table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
    position: relative;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on mobile */
}

.cmw-min-width-container {
    min-width: 1200px;
    /* Match the content width */
}

/* Item row styling */
.cmw-item-row {
    display: flex;
    align-items: center;
    width: 100%;
    white-space: nowrap;
    height: 48px;
    gap: 10px;
}

.cmw-fixed-width-section {
    display: flex;
    align-items: center;
    width: 100px;
    flex: 0 0 auto;
    padding: 0 8px;
}

.cmw-fixed-width-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 450px;
    flex: 0 0 auto;
    padding: 0 8px;
    overflow: hidden;
}

.scroll-container {
    max-height: 450px;
    overflow-y: scroll;
    overflow-x: hidden;
    -ms-overflow-style: none;
    padding-bottom: 10px !important;
    padding-top: 10px !important;
    padding-right: 10px !important;
}


.cmw-scrollable-content {
    display: flex;
    align-items: center;
    width: 1110px;
    flex: 0 0 auto;
    gap: 8px;
    padding: 0 8px;
}

.cmw-single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmw-text-truncate {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.remove-item-btn {
    margin-top: -16px;
}

.price-or-promo-delete-btn {
    margin-top: -6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cmw-min-width-container {
        min-width: 100%;
    }

    .cmw-fixed-width-section,
    .cmw-fixed-width-info,
    .cmw-scrollable-content {
        width: auto;
        min-width: auto;
    }
}


/* calerndar input year and month padding */
.year {
    padding: 0 5px !important;
}

.month {
    padding: 0 5px !important;
}


/* Remove number input arrows in Chrome, Safari, and Firefox */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinner {
    -moz-appearance: textfield; /* Firefox */
}


.was-validated .input-group .form-control:invalid, .input-group .form-control.is-invalid, .was-validated .input-group .form-select:invalid, .input-group .form-select.is-invalid {
    z-index: 1;
}
