.image-sizer-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.sizer-inputs {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.sizer-field {
    display: flex;
    flex-direction: column;
}

.sizer-field label {
    margin-bottom: 5px;
    font-weight: bold;
}

/* Modal Styles */
.sizer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sizer-modal-content {
    background: #fff;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.sizer-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    z-index: 100;
}

.sizer-controls {
    padding: 10px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

/* Canvas Area */
.sizer-canvas-wrapper {
    flex: 1;
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sizer-viewport {
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    /* Dimensions will be set by JS */
}

#sizer-image {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    /* Transformation handled by JS */
    cursor: grab;
    user-select: none;
    max-width: none; /* Override standard WP max-width */
}

#sizer-image:active {
    cursor: grabbing;
}

.sizer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to image */
    z-index: 10;
}

/* Vertical Green Lines */
.sizer-guide-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #00ff00; /* Green lines as requested */
    border-right: 1px dashed rgba(255,255,255,0.5); /* Contrast */
}

.sizer-footer {
    padding-top: 20px;
    text-align: right;
}
