.wcmg-mockup-button {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 10px;
    z-index: 1000;
    touch-action: manipulation;
}

.wcmg-mockup-button:hover {
    background: #005177;
}

.wcmg-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.wcmg-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    z-index: 20001;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

.wcmg-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    pointer-events: auto;
    z-index: 20002;
}

.wcmg-canvas-container {
    position: relative;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    margin-bottom: 15px;
    z-index: 20003;
    width: 100%;
    aspect-ratio: 1 / 1;
    touch-action: none;
}

#wcmg-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    z-index: 20004;
}

#wcmg-canvas {
    width: 100% !important;
    height: 100% !important;
    z-index: 20005 !important;
    pointer-events: auto !important;
    user-select: none !important;
    touch-action: none !important;
}

.upper-canvas {
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto !important;
    z-index: 20006 !important;
    touch-action: none !important;
}

.wcmg-popup-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    pointer-events: auto;
    z-index: 20002;
}

.wcmg-popup-actions .button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

.wcmg-popup-actions .button-primary {
    background: #0073aa;
    color: #fff;
    border: none;
}

.wcmg-popup-actions .button-primary:hover {
    background: #005177;
}

.wcmg-popup-content * {
    pointer-events: none;
}

.wcmg-popup-content .wcmg-canvas-container,
.wcmg-popup-content .wcmg-popup-actions,
.wcmg-popup-content .wcmg-popup-close,
.wcmg-popup-content .wcmg-canvas-container * {
    pointer-events: auto;
}

@media (max-width: 600px) {
    .wcmg-popup-content {
        width: 95%;
        padding: 15px;
    }

    .wcmg-canvas-container {
        max-height: 60vh;
    }

    .wcmg-popup-actions {
        flex-direction: column;
        gap: 8px;
    }

    .wcmg-popup-actions .button {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
}

.button.alt.wcmg-mockup-button {
    margin-top: 20px !important;
}