/* Target the specific file upload container */
.field.review-field-media .control {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Hide the default browser text and button but keep it clickable */
.field.review-field-media input[type="file"] {
    color: transparent;
    width: 100%;
}

/* Create the fake Arabic "Choose Files" button */
.field.review-field-media input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}

.field.review-field-media input[type="file"]::before {
    content: 'اختيار الملفات';
    display: inline-block;
    background: #fff;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    border-radius: 50px;
    padding: 8px 20px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.field.review-field-media input[type="file"]:hover::before {
    background: #f0f8ff;
}

/* Force the custom currency symbol to keep its shape globally */
img.custom-sar-symbol {
    height: 1.2em !important;
    width: auto !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
    display: inline-block !important;
    max-width: none !important; /* Prevents 100% width squishing */
}

/* Specifically target Owl Carousel's aggressive styling */
.owl-carousel .owl-item img.custom-sar-symbol,
.products-grid .product-item img.custom-sar-symbol {
    display: inline-block !important;
    width: auto !important;
    transform-style: flat !important;
}