/**
 * WooCommerce Customized Styles
 */

.wc-custom-qr-host {
    position: relative !important;
}

.wc-custom-qr-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 9px;
    border: 0;
    border-radius: 50%;
    color: #111;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08) !important;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease;
}

.wc-custom-qr-trigger:hover,
.wc-custom-qr-trigger:focus-visible,
.wc-custom-qr-trigger[aria-expanded="true"] {
    color: #000;
    background: #fff;
    transform: scale(1.06);
}

.wc-custom-qr-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.wc-custom-qr-trigger svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.wc-custom-qr-trigger--product,
.wc-custom-qr-trigger--single {
    position: absolute;
    z-index: 100;
}

.wc-custom-qr-trigger--product {
    top: 12px;
    right: 12px;
}

.wc-custom-qr-trigger--single {
    top: 16px;
    right: calc(.5em + 50px);
}

.wc-custom-qr-menu-item > div {
    display: flex;
    align-items: center;
    height: 100%;
}

#header-outer .wc-custom-qr-trigger--header {
    width: 32px;
    height: 32px;
    padding: 7px;
    color: inherit;
    background: transparent;
    box-shadow: none;
}

.wc-custom-qr-popover {
    position: fixed;
    z-index: 100000;
    width: 252px;
    padding: 16px;
    border-radius: 10px;
    color: #171717;
    background: #fff;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

.wc-custom-qr-popover[hidden] {
    display: none !important;
}

.wc-custom-qr-canvas {
    width: 220px;
    height: 220px;
    line-height: 0;
    background: #fff;
}

.wc-custom-qr-canvas canvas {
    display: block;
    width: 220px;
    height: 220px;
}

.wc-custom-qr-caption {
    margin: 10px 4px 0;
    color: #333;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.wc-custom-qr-close {
    position: absolute;
    z-index: 1;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #111;
    background: rgba(255, 255, 255, 0.94);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 360px) {
    .wc-custom-qr-popover {
        width: 232px;
        padding: 12px;
    }

    .wc-custom-qr-canvas,
    .wc-custom-qr-canvas canvas {
        width: 208px;
        height: 208px;
    }
}