/* ==================================================
   OBS TECH - DEMO VIEWER
================================================== */

html,
body.obs-demo-viewer-page {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #e9ecf4;
}


/* =========================================
   VIEWER
========================================= */

.obs-demo-viewer {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================
   TOOLBAR
========================================= */

.obs-demo-toolbar {
    position: relative;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 72px;
    padding: 0 22px;
    border-bottom: 1px solid #e4e7ee;
    background: #fff;
    box-shadow: 0 3px 15px rgba(15, 23, 42, .06);
}


.obs-demo-toolbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
}


.obs-demo-back {
    height: 40px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 17px;
    padding: 0 15px;
    border: 1px solid #e2e6ee;
    border-radius: 8px;
    background: #fff;
    color: #475467 !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .2s ease;
}


.obs-demo-back:hover {
    border-color: #283891;
    color: #283891 !important;
}


.obs-demo-back i {
    margin-right: 7px;
}


.obs-demo-product-info {
    min-width: 0;
}


.obs-demo-product-info span {
    display: block;
    margin-bottom: 2px;
    color: #98a2b3;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}


.obs-demo-product-info strong {
    display: block;
    max-width: 340px;
    overflow: hidden;
    color: #182033;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================
   DEVICE BUTTONS
========================================= */

.obs-demo-devices {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    gap: 5px;
    padding: 4px;
    border: 1px solid #e5e8ef;
    border-radius: 9px;
    background: #f7f8fc;
    transform: translate(-50%, -50%);
}


.obs-device-button {
    width: 39px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    outline: none !important;
    background: transparent;
    color: #98a2b3;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s ease;
}


.obs-device-button:hover {
    color: #283891;
}


.obs-device-button.active {
    background: #fff;
    color: #283891;
    box-shadow: 0 2px 7px rgba(40, 56, 145, .1);
}


/* =========================================
   RIGHT
========================================= */

.obs-demo-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}


.obs-demo-open,
.obs-demo-order {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .2s ease;
}


.obs-demo-open {
    border: 1px solid #dfe3ec;
    background: #fff;
    color: #344054 !important;
}


.obs-demo-open:hover {
    border-color: #283891;
    color: #283891 !important;
}


.obs-demo-order {
    border: 1px solid #283891;
    background: #283891;
    color: #fff !important;
}


.obs-demo-order:hover {
    border-color: #182768;
    background: #182768;
}


.obs-demo-open i,
.obs-demo-order i {
    margin-right: 7px;
}


/* =========================================
   STAGE
========================================= */

.obs-demo-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0;
    background:
        radial-gradient(
            circle at top center,
            rgba(40, 56, 145, .07),
            transparent 35%
        ),
        #e9ecf4;
}


/* =========================================
   FRAME WRAPPER
========================================= */

.obs-demo-frame-wrap {
    position: relative;
    height: 100%;
    min-height: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    transition:
        width .35s ease,
        max-width .35s ease,
        box-shadow .35s ease;
}


/* Desktop */
.obs-demo-frame-wrap.desktop {
    width: 100%;
}


/* Tablet */
.obs-demo-frame-wrap.tablet {
    width: 768px;
    max-width: calc(100% - 40px);
    box-shadow: 0 0 35px rgba(15, 23, 42, .17);
}


/* Mobile */
.obs-demo-frame-wrap.mobile {
    width: 390px;
    max-width: calc(100% - 30px);
    box-shadow: 0 0 35px rgba(15, 23, 42, .2);
}


/* =========================================
   IFRAME
========================================= */

.obs-demo-frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #fff;
}


/* =========================================
   LOADING
========================================= */

.obs-demo-loading {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #fff;
    color: #667085;
    font-size: 13px;
}


.obs-demo-loading i {
    margin-bottom: 10px;
    color: #283891;
    font-size: 26px;
}


/* =========================================
   MOBILE BAR
========================================= */

.obs-demo-mobile-bar {
    display: none;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 991.98px) {

    .obs-demo-toolbar {
        padding: 0 15px;
    }


    .obs-demo-product-info strong {
        max-width: 210px;
    }


    .obs-demo-order {
        display: none;
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767.98px) {

    body.obs-demo-viewer-page {
        overflow: hidden;
    }


    .obs-demo-toolbar {
        height: 58px;
        flex-basis: 58px;
        padding: 0 12px;
    }


    .obs-demo-back {
        width: 38px;
        height: 38px;
        justify-content: center;
        margin-right: 9px;
        padding: 0;
    }


    .obs-demo-back span {
        display: none;
    }


    .obs-demo-back i {
        margin: 0;
    }


    .obs-demo-product-info span {
        display: none;
    }


    .obs-demo-product-info strong {
        max-width: 160px;
        font-size: 12px;
    }


    .obs-demo-devices,
    .obs-demo-toolbar-right {
        display: none;
    }


    .obs-demo-frame-wrap.desktop,
    .obs-demo-frame-wrap.tablet,
    .obs-demo-frame-wrap.mobile {
        width: 100%;
        max-width: 100%;
        box-shadow: none;
    }


    .obs-demo-mobile-bar {
        height: 54px;
        display: flex;
        flex: 0 0 54px;
        border-top: 1px solid #e2e6ed;
        background: #fff;
    }


    .obs-demo-mobile-bar a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #475467;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
    }


    .obs-demo-mobile-bar a:last-child {
        background: #283891;
        color: #fff;
    }


    .obs-demo-mobile-bar i {
        margin-right: 6px;
    }


    .obs-product-demo-action {
        display: block;
    }


    .obs-demo-btn {
        width: 100%;
    }


    .obs-demo-note {
        display: block;
        margin-top: 8px;
        text-align: center;
    }

}