.edpi-image-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    line-height: 0;
    box-sizing: border-box;
}

.edpi-image-wrapper.edpi-fill-container {
    width: 100% !important;
    height: 100% !important;
}

.edpi-image-wrapper img.edpi-product-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    box-sizing: border-box;
}

.edpi-resize-handle-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
    z-index: 10;
    background: transparent;
    transition: background 0.2s ease;
}

.edpi-resize-handle-right:hover,
.edpi-resize-handle-right.edpi-dragging {
    background: rgba(93, 56, 224, 0.35);
}

.edpi-resize-handle-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    cursor: ns-resize;
    z-index: 10;
    background: transparent;
    transition: background 0.2s ease;
}

.edpi-resize-handle-bottom:hover,
.edpi-resize-handle-bottom.edpi-dragging {
    background: rgba(93, 56, 224, 0.35);
}

.edpi-resize-handle-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    z-index: 11;
    background: transparent;
    transition: background 0.2s ease;
}

.edpi-resize-handle-corner:hover,
.edpi-resize-handle-corner.edpi-dragging {
    background: rgba(93, 56, 224, 0.5);
}

.edpi-dimension-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 20;
    white-space: nowrap;
}

.edpi-dimension-tooltip.edpi-visible {
    opacity: 1;
}

.elementor-widget-dynamic_product_image {
    height: 100%;
}

.elementor-widget-dynamic_product_image .elementor-widget-container {
    height: 100%;
    line-height: 0;
}

.elementor-widget-dynamic_product_image.edpi-no-spacing,
.elementor-widget-dynamic_product_image.edpi-no-spacing .elementor-widget-container,
.elementor-widget-dynamic_product_image.edpi-no-spacing .edpi-image-wrapper,
.elementor-widget-dynamic_product_image.edpi-no-spacing .edpi-image-wrapper img {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}
