﻿/* Works on Chrome/Edge/Safari */
*::-webkit-scrollbar {
    width: 4px;
}

*::-webkit-scrollbar-track {
    background: var(--body-lightest);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--body-lighter);
    border-radius: 20px;
}

*[draggable] {
    cursor: move !important;
}

a[disabled] {
    pointer-events: none;
}

menu {
    margin: 0;
}

/* CMS Form Field Classes */
.cms-form-canvas {
    display: flex;
    flex-wrap: wrap;
}

.cms-form-row {
    display: flex;
    flex-direction: row;
    flex-basis: 100%;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .cms-form-row {
        flex-wrap: nowrap;
    }
}

/*@media (min-width: 768px) {
    .cms-form-row:has(.cms-form-field:nth-last-child(2)) .cms-form-field {
        flex-basis: 50%;
    }

    .cms-form-row:has(.cms-form-field:nth-last-child(3)) .cms-form-field {
        flex-basis: 50%;
    }

    .cms-form-row:has(.cms-form-field:nth-last-child(4)) .cms-form-field {
        flex-basis: 50%;
    }

    .cms-form-row:has(.cms-form-field:nth-last-child(5)) .cms-form-field {
        flex-basis: 50%;
    }
}


@media (min-width: 992px) {
    .cms-form-row:has(.cms-form-field:nth-last-child(2)) .cms-form-field {
        flex-basis: 50%;
    }

    .cms-form-row:has(.cms-form-field:nth-last-child(3)) .cms-form-field {
        flex-basis: 33.3333%;
    }

    .cms-form-row:has(.cms-form-field:nth-last-child(4)) .cms-form-field {
        flex-basis: 25%;
    }

    .cms-form-row:has(.cms-form-field:nth-last-child(5)) .cms-form-field {
        flex-basis: 20%;
    }
}*/

.cms-form-field {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    flex-basis: 100%;
}

.validation-message {
    color: var(--danger);
    width: 100%;
    font-size: 80%;
    font-weight: 400;
}

/* Accordion styles */
.accordion .card-header {
    cursor: pointer;
}

    .accordion .card-header[disabled] {
        cursor: default;
    }

.accordion-content {
    max-height: 500px;
    overflow: auto;
    transition: all 0.3s ease-in-out;
}

    .accordion-content:has(.multiselect-overlay:not([hidden])) {
        overflow: visible;
    }

.accordion-collapse {
    max-height: 0 !important;
    overflow: hidden;
}

.accordion-icon {
    transition: transform ease-in-out 0.20s
}
/* CMS Layout classes */
.cms-canvas {
    display: flex;
}

.cms-layout {
    display: flex;
    flex-grow: 1;
}

.cms-container {
    flex-grow: 1;
    background-clip: padding-box;
    position: relative;
}

.cms-row {
    flex-direction: row;
}

.cms-column {
    flex-direction: column;
}

@media (max-width: 800px) {
    .cms-row {
        flex-direction: column;
    }

    .cms-column {
        width: unset !important;
    }
}

*[data-anchor="true"] {
    scroll-margin-top: 6rem;
}

/* horizontal scroll and carousel support classes */
.hs-wrapper {
    position: relative;
}

.hs-container {
    display: flex;
    overflow-x: auto;
    max-width: 410px;
}

.hs-button-back {
    left: 12px;
}

.hs-button-next {
    right: 12px;
}

@media (min-width:576px) {
    .hs-container {
        max-width: unset;
    }

    .hs-button-back {
        left: 0;
    }

    .hs-button-next {
        right: 0;
    }
}

.hs-container img {
    height: 190px;
}

.hs-container::-webkit-scrollbar {
    display: none;
}

.hs-item {
    z-index: 60;
}

.hs-button {
    position: absolute;
    top: 30%;
    background-color: rgba(255,255,255,0.4);
    border: none;
    color: var(--body);
    border-radius: 0.5rem;
    z-index: 80;
    padding: 1rem;
    box-shadow: 0 4px 12px 0 rgb(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

    .hs-button:hover {
        background-color: rgba(255,255,255,0.9);
    }

    .hs-button:focus {
        outline: none;
    }

.icon-button-wrapper .btn-title {
    margin-left: 0.5rem;
    display: block;
}

@media (max-width:576px) {
    .icon-button-wrapper .btn-title {
        margin-left: 0;
        display: none;
    }
}

/* carousel support classes */
.carousel-wrapper {
    position: relative;
    min-height: 340px;
}

.carousel-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    overflow: hidden;
    counter-reset: carousel-item;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory
}

.carousel-item {
    position: relative;
    flex: 0 0 100%;
    counter-increment: carousel-item;
    transition-property: opacity, transform;
    transition-duration: 0.4s, 0.6s;
    transition-timing-function: linear, ease-in-out;
    transition-delay: 0.2s, 0s;
}

.carousel-item-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-item-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-button {
    position: absolute;
    background-color: rgba(255,255,255,0.4);
    border: none;
    color: var(--body);
    border-radius: 0.5rem;
    z-index: 80;
    padding: 1rem;
    box-shadow: 0 4px 12px 0 rgb(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

    .carousel-button:hover {
        background-color: rgba(255,255,255,0.9);
    }

    .carousel-button:focus {
        outline: none;
    }

.carousel-button-back {
    top: 50%;
    transform: translate(0, -50%);
    left: 12px;
}

.carousel-button-next {
    top: 50%;
    right: 12px;
    transform: translate(0, -50%);
}

.carousel-button-down {
    bottom: 12px;
    left: 50%;
    transform: translate(-50%, 0);
}

.camera-video-area {
    position: relative;
    /*overflow: hidden;*/
    width: 90%;
    max-width: 640px;
    height: 480px;
    display: inline-block;
}

@media (max-width: 576px) {
    .camera-video-area {
        width: 100%;
        height: 380px;
    }
}

/* Camera Classes */
.camera-stream {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    border: none;
    backdrop-filter: saturate(200%) blur(30px);
    background-color: rgb(255,255,255, 0.5);
    box-shadow: 0 4px 12px 0 rgb(0, 0, 0, 0.15);
}

.camera-selector {
    position: relative;
    margin-top: 1em;
    margin-left: 5%;
    width: 90%;
}

.camera-video-area button {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 1em;
}

.camera-grab {
    left: 0;
}

.camera-stop-hidden {
    background-color: transparent;
    color: transparent;
}

.square {
    width: 50%;
    height: 50%;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.camera-stream-scan-overlay {
    width: 40%;
    height: 1%;
    border-top: 2px solid rgba(255, 255, 255, 0.65);
    position: absolute;
    transform: translate(-50%, -50%);
    transition: height 2s;
    top: 30%;
    left: 50%;
    animation-duration: 3s;
    animation-name: lineup;
    animation-direction: alternate;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes lineup {
    100% {
        top: 70%;
    }
}

