:root {

    --ar-dialog-model-bg: #fff;
    --ar-dialog-qr-bg: #fff;
    /* "row" displays model on the left side. row-reverse on the right side */
    --ar-dialog-direction: row;
    --ar-dialog-model-padding: 20px;
    --ar-dialog-content-padding: 20px;
    --ar-dialog-title-font-size: 16px;
    /* gap between QR code, title, subtitle and add to cart */
    --ar-dialog-content-gap: 16px;
    --ar-dialog-subtitle-font-size: 12px;
    /* change to specific value to set the gap between subtitle and add to cart section */
    --ar-dialog-addToCart-top-margin: auto;
    /* change to specific value to set the gap between QR code and the start of the dialog */
    --ar-dialog-content-top-margin: auto;
    /* set a specific border to the entire dialog ex. 1px solid black */
    --ar-dialog-border: unset;
}


/* AR DIALOG STYLY */

.ar-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: var(--ar-dialog-border);
}

.ar-dialog__content {
    display: flex;
    width: 100%!important;
    height: 100%;
    flex-direction: var(--ar-dialog-direction);
    flex-wrap: nowrap;
}

/* Section with 3D model */
.ar-dialog__left {
    flex: 2;
    background: var(--ar-dialog-model-bg);
    padding: var(--ar-dialog-model-padding);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Section with QR code */
.ar-dialog__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--ar-dialog-content-gap);
    padding: var(--ar-dialog-content-padding);
    text-align: center;
    background: var(--ar-dialog-qr-bg);;
}

/* Close dialog button */
.ar-dialog__close {
    position: absolute;
    right: 30px;
    top: 30px;
    background-color: transparent;
    border: none;
    font-size: 30px;
    font-weight: lighter;
    opacity: 0.5;
    z-index: 99999;
}

.ar-dialog__close:hover {
    opacity: 1;
    transition: opacity 0.3s linear;
}

.ar-dialog__model {
    width: 100%;
    height: 100%;
}

.ar-dialog__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-top: var(--ar-dialog-content-top-margin);
}

.ar-dialog__title {
    font-weight: bold;
    font-size: var(--ar-dialog-title-font-size);
}

.ar-dialog__subtitle {
    font-weight: normal;
    font-size: var(--ar-dialog-subtitle-font-size);
}

.ar-dialog__add-to-cart {
    margin-top: var(--ar-dialog-addToCart-top-margin);
}

@media screen and (min-width: 360px) and (max-width: 767px){
    .ar-dialog {
        height: auto;
    }

    .ar-dialog__content {
        flex-direction: column;
    }

    .ar-dialog__left {
        flex:1;
        min-height: 30vh;
        max-height: 30vh;
    }

    .ar-dialog__right {
        flex: auto;
        align-items: center;
        justify-content: flex-start;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .ar-dialog__image {
        position: relative;
        display: flex;
        max-height: 150px;
        width: 100%;
    }
}