/* =========================================================
   BIJI 3D & AR
   Product Button
   ========================================================= */

.biji-3d-ar {
    margin-top: 16px;
    margin-bottom: 16px;
}

.biji-3d-ar-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 320px;

    min-height: 48px;

    padding: 12px 20px;

    border: 1px solid #222;
    border-radius: 6px;

    background: #fff;
    color: #222;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    line-height: 1.3;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.biji-3d-ar-button:hover {
    background: #222;
    color: #fff;
}

.biji-3d-ar-button:active {
    transform: scale(0.98);
}


/* =========================================================
   Fullscreen Viewer
   ========================================================= */

.biji-3d-ar-overlay {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.88);
}


/* =========================================================
   Model Viewer
   ========================================================= */

.biji-3d-ar-overlay model-viewer {

    width: 100%;
    height: 100%;

    background: #eeeeee;
}


/* =========================================================
   Close Button
   ========================================================= */

.biji-3d-ar-close {

    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 1000000;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}

.biji-3d-ar-close:hover {
    background: rgba(0, 0, 0, 0.95);
}

.biji-3d-ar-close:active {
    transform: scale(0.92);
}


/* =========================================================
   AR Button
   ========================================================= */

.biji-3d-ar-view-button {

    position: absolute;

    bottom: 30px;
    left: 50%;

    z-index: 1000000;

    transform: translateX(-50%);

    min-width: 190px;

    min-height: 50px;

    padding: 13px 24px;

    border: none;
    border-radius: 8px;

    background: #111;

    color: #fff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3);

    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}

.biji-3d-ar-view-button:hover {
    background: #333;
}

.biji-3d-ar-view-button:active {
    transform: translateX(-50%) scale(0.97);
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .biji-3d-ar {
        margin-top: 14px;
        margin-bottom: 14px;
    }

    .biji-3d-ar-button {
        width: 100%;
        max-width: none;
    }

    .biji-3d-ar-close {
        top: 14px;
        right: 14px;
    }

    .biji-3d-ar-view-button {
        bottom: 24px;

        width: calc(100% - 40px);
        max-width: 340px;
    }

}