/**
 * ADOBE CONFIDENTIAL
 *
 * Copyright 2024 Adobe
 * All Rights Reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of Adobe and its suppliers, if any. The intellectual
 * and technical concepts contained herein are proprietary to Adobe
 * and its suppliers and are protected by all applicable intellectual
 * property laws, including trade secret and copyright laws.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe.
 */

.asset-selector-field .admin__field-control {
    display: flex;
    align-items: center;
}

.asset-selector-field .admin__field-control .asset-selector-field-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.asset-selector-field .admin__field-control button {
    height: 32px;
}

.asset-selector-field .asset-selector-field-image-preview {
    max-width: 120px;
    max-height: 120px;
    position: relative;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
}

.asset-selector-field .asset-selector-field-image-preview:hover {
    cursor: pointer;
}

.asset-selector-field .asset-selector-field-image-placeholder {
    content: '';
    width: 120px;
    height: 120px;
    padding: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../images/adobe-icon-image-preview.png');
    background-color: #adadad;
    background-size: 80px;
    position: relative;
    transition: border 0.3s ease-in-out;
    border-radius: 4px;
    display: block;
}

.asset-selector-field .asset-selector-field-image-preview::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.asset-selector-field .asset-selector-field-image-preview:hover::after {
    opacity: 1;
}

.asset-selector-field .asset-selector-field-image-preview .asset-selector-field-image-container {
    position: relative;
    height: 120px;
    width: 120px;
}

.asset-selector-field .asset-selector-field-image-preview:hover .asset-selector-field-image-delete-btn {
    opacity: 1;
}

.asset-selector-field .asset-selector-field-image-preview .asset-selector-field-image-delete-btn {
    border-radius: 4px;
    height: 32px;
    width: 32px;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: background 0.1s ease-in-out, opacity 0.3s ease-in-out;
    position: absolute;
    top: calc(50% - 16px);
    left: calc(50% - 16px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 8;
}

.asset-selector-field .asset-selector-field-image-preview .asset-selector-field-image-delete-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(5px 5px 15px);
}

.asset-selector-field .asset-selector-field-image-preview .asset-selector-field-image-delete-btn:hover::before {
    background-color: #FF0000;
}

.asset-selector-field .asset-selector-field-image-preview .asset-selector-field-image-delete-btn::before {
    content: '';
    position: relative;
    top: 1px;
    mask: url('../images/spectrum-delete.svg');
    background-color: #ffffff;
    background-size: cover;
    height: 18px;
    width: 18px;
    background-blend-mode: multiply;
    display: inline-block;
    transition: background 0.1s ease-in-out;
}
