.photo-preview {
    display: inline-block;
    position: relative;
    background: #f8f8f8;
    overflow: hidden;
    margin: auto;
}

.photo-preview img {
    width: 100%;
    height: auto;
    display: block;
    height: 100%;
    object-fit: cover;
}

#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
}
.sidebar-section {
    position: absolute;
    height: 100%;
    width: 100%;
}

@media screen and (min-width: 1200px) {
    .sidebar-item:not(.sidebar-off) {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .sidebar-sticky:not(.sidebar-off) {
        position: -webkit-sticky;
        position: sticky;
        top: 180px;
        top: 0px;
        padding: 0 15px;
    }
}

.preview-container {
    position: relative;
    display: inline-block;
    margin: 30px;
}

.photo-frame {
    /* padding: 15px; */
    line-height: 100%;
    background-color: transparent;
    /* box-shadow: 0 0 16px -2px rgba(0, 0, 0, .3); */
}

.photo-frame {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.photo-frame.mask-black {
    background-color: #000;
}

.photo-frame * {
    line-height: 100%;
}


.mask-black {
    border-color: #000;
}

.pew-drug-toast {
    font-size: 13px;
    line-height: 2;
}

.pew-form-label {
    font-weight: 700;
}

.pew-form-control {

}

/* Pew loader */
.pew-loading {
    position: relative;
}

.pew-loading:before {
    content: '';
    background-color: rgba(255, 255, 255, 0.6);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='L6' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 100 100' enable-background='new 0 0 100 100' xml:space='preserve'%3E%3Crect fill='none' stroke='%23333' stroke-width='4' x='25' y='25' width='50' height='50'%3E%3CanimateTransform attributeName='transform' dur='0.5s' from='0 50 50' to='180 50 50' type='rotate' id='strokeBox' attributeType='XML' begin='rectBox.end'%3E%3C/animateTransform%3E%3C/rect%3E%3Crect x='27' y='27' fill='%23333' width='46' height='50'%3E%3Canimate attributeName='height' dur='1.3s' attributeType='XML' from='50' to='0' id='rectBox' fill='freeze' begin='0s;strokeBox.end'%3E%3C/animate%3E%3C/rect%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 120px;
    background-position: 50% 50%;
}



/* Vertical */
.measure-vertical {
    background-color: #333;
    display: block;
    position: relative;
    width: 7px;
    height: calc(100% - 37px);
    margin: 0;
    border-top: 1px solid;
    border-bottom: 1px solid;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.product-glass-template .measure-vertical {
    height: calc(100% - 0px);
}

.measure-vertical {
    right: -10px;
}

.measure-vertical::before,
.measure-vertical::after {
    content: '';
    height: 100%;
    width: 3px;
    display: block;
    background-color: #fff;
    position: absolute;
}


.measure-vertical::before {
    content: '';
    top: 0;
    left: 0px;
}

.measure-vertical::after {
    content: '';
    top: 0;
    right: 0px;
}


/* Horizontal */
.measure-horizontal {
    background-color: #333;
    display: block;
    position: relative;
    width: calc(100% - 30px);
    height: 7px;
    margin: 0;
    border-left: 1px solid;
    border-right: 1px solid;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.product-glass-template .measure-horizontal {
    width: calc(100% - 0px);
}

.measure-horizontal {
    top: -10px;
    left: 50%;
}

.measure-horizontal::before, .measure-horizontal::after {
    content: '';
    height: 3px;
    width: 100%;
    display: block;
    background-color: #fff;
    position: absolute;
}

.measure-horizontal::before {
    content: '';
    top: 0px;
}

.measure-horizontal::after {
    content: '';
    bottom: 0px;
}

.measure-count {
    position: absolute;
    top: -20px;
    font-size: 12px;
    width: 100%;
    left: 0;
    text-align: center;
    z-index: 5;
}

.measure-vertical .measure-count {
    top: 50%;
    transform: translate(20px, -50%);
}

.cropper-view-box:after {
    content: '';
    position: absolute;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgb(255 255 255 / 0%);
    padding: 15px;
}

.cropper-view-box:after {

}

.photo-frame .corner {
    display: block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    z-index: 10;
    position: absolute;
}

.product-glass-template .photo-frame .corner {
    opacity: 0;
}

.photo-frame .corner:nth-child(1) {
    top: 0;
    left: 0;
}

.photo-frame .corner:nth-child(2) {
    top: 0;
    right: 0;
}

.photo-frame .corner:nth-child(3) {
    bottom: 0;
    right: 0;
}

.photo-frame .corner:nth-child(4) {
    bottom: 0;
    left: 0;
}

/* Effects */
.photo-frame:not(.mask-white):not(.mask-black):not(.mask-color-picker):not(.mask-stretched):not(.mask-mirrored) .effects {
    display: none;
}


.photo-frame .effects.top,
.photo-frame .effects.bottom {
    height: 15px;
    display: block;
    width: calc(100% - 32px);
    position: absolute;
    z-index: 1;
}

.photo-frame .effects.left,
.photo-frame .effects.right {
    width: 15px;
    display: block;
    position: absolute;
    z-index: 15;
    top: 50%;
    height: calc(100% - 32px);
    transform: translateY(-50%);
}

/* Grey border for white border */
.photo-frame.mask-white .effects.top,
.photo-frame.mask-white .effects.bottom,
.photo-frame.mask-white .effects.left,
.photo-frame.mask-white .effects.right {
    border: 1px solid #ccc;
}

/* White background for white border */
.photo-frame.mask-white .effects {
    background-color: #fff;
}

/* Black background for white border */
.photo-frame.mask-black .effects {
    background-color: #000;
    border-color: #000 !important
}

/* Stratched */
.photo-frame.mask-stretched .effects {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

/* Mirrored */
.photo-frame .effects.top {
    background-position: bottom center;
}

.photo-frame .effects.right {
    background-position: left center;
}

.photo-frame .effects.bottom {
    background-position: top center;
}

.photo-frame .effects.left {
    background-position: right center;
}

/* Border effects positions */
.photo-frame .effects.top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.photo-frame .effects.right {
    right: 0;
}

.photo-frame .effects.bottom {
    left: 50%;
    bottom: 1px;
    transform: translateX(-50%);
}

.photo-frame .effects.left {
    left: 0;
}