/* SMC customer-preview popup. All selectors are plugin-namespaced. */
.wcie-preview-trigger {
    display: inline-block !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    line-height: 0 !important;
    text-decoration: none !important;
    cursor: zoom-in !important;
}

.wcie-preview-trigger:hover,
.wcie-preview-trigger:focus,
.wcie-preview-trigger:active {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.wcie-preview-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.wcie-preview-thumbnail {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-height: 220px !important;
    object-fit: contain !important;
    object-position: center !important;
    clip-path: none !important;
}

.wcie-order-preview-wrap,
.wcie-checkout-preview,
.wcie-admin-order-preview-wrap {
    margin-top: 10px;
}

.wcie-cart-preview-open {
    overflow: hidden;
}

.wcie-cart-preview-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 40px;
    background: rgba(0, 0, 0, 0.82);
}

.wcie-cart-preview-lightbox.is-open {
    display: flex;
}

.wcie-cart-preview-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wcie-cart-preview-large {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 92vw !important;
    max-height: 88vh !important;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.45);
}

.wcie-cart-preview-close {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 1;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: #fff !important;
    color: #111 !important;
    font: 700 32px/42px Arial, sans-serif !important;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.35);
}

.wcie-cart-preview-download {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    min-width: 150px;
    margin: 0 !important;
    padding: 11px 18px !important;
    border: 1px solid #fff !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #111 !important;
    font: 600 15px/1.2 Arial, sans-serif !important;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%);
}

.wcie-cart-preview-download:hover,
.wcie-cart-preview-download:focus {
    background: #f2f2f2 !important;
    color: #111 !important;
}

.wcie-cart-preview-download:disabled {
    cursor: wait;
    opacity: 0.7;
}

.wcie-cart-preview-download-status {
    position: fixed;
    left: 50%;
    bottom: 66px;
    z-index: 2;
    display: block;
    max-width: 80vw;
    color: #fff;
    font: 600 13px/1.3 Arial, sans-serif;
    text-align: center;
    transform: translateX(-50%);
}

@media (max-width: 600px) {
    .wcie-cart-preview-lightbox {
        padding: 56px 16px 20px;
    }

    .wcie-cart-preview-large {
        max-width: 96vw !important;
        max-height: 74vh !important;
    }

    .wcie-cart-preview-download {
        bottom: 14px;
        width: calc(100% - 32px);
        max-width: 320px;
    }

    .wcie-cart-preview-download-status {
        bottom: 64px;
    }
}
