/**
	* @package    VP File Upload Custom Field for VirtueMart
	* @author     Abhishek Das <info@virtueplanet.com>
	* @copyright  Copyright (C) 2024 VirtuePlanet Services LLP. All rights reserved.
	* @license    GNU General Public License version 2 or later; see LICENSE.txt
	* @link       https://www.virtueplanet.com
*/

.vpfileupload-admin {
    padding-top: 15px;
}

.vpfileupload-container {
    display: flex;
    flex-direction: column;
}

.vpfileupload-button {
    display: inline-flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.vpfileupload-remove-button {
    --btn-background-color: #a51f18;
    --btn-color: #fff;
    position: absolute;
    right: -8px;
    top: -8px;
    width: 16px;
    height: 16px;
    background-image: none !important;
    background-color: var(--btn-background-color) !important;
    border: 0 !important;
    opacity: 0.5;
    border-radius: 50%;
    line-height: 16px;
    padding: 0 !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: all 0.3s ease;
}

.vpfileupload-remove-button:hover {
    opacity: 1;
    background-image: none !important;
    background-color: var(--btn-background-color) !important;
    border: 0 !important;
}

.vpfileupload-remove-button:before,
.vpfileupload-remove-button:after {
    position: absolute;
    top: 50%;
    left: 50%;
    content: '';
    height: 10px;
    width: 2px;
    background-color: var(--btn-color);
}

.vpfileupload-remove-button:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.vpfileupload-remove-button:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.vpfileupload-input,
.vpfileupload-invisible {
    position: absolute;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.vpfileupload-button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.vpfileupload-button:disabled {
    display: none !important;
}

.vpfileupload-file-hint {
    font-size: 0.9em;
    color: #888888;
    margin-bottom: 15px;
}

.vpfileupload-preview-container:not(:empty) {
    margin-bottom: 15px;
}

.vpfileupload-section-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.vpfileupload-file-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 10px;
}

.vpfileupload-file-item {
    display: flex;
    /*flex-direction: column;*/
    position: relative;
    width: 100%;/*width: 120px;*/
    background-color: transparent;
    text-align: center;
    padding: 5px 5px;
    text-align: center;
    border-radius: 3px;
    transition: all 0.3s ease;
    gap: 5px;
	
	align-items: center;
  justify-content: space-between;
}

.vpfileupload-file-item a {
    display: block;
    text-decoration: none;
    color: inherit;
	line-height: 20px;
	
}

.vpfileupload-file-item a:before,
.vpfileupload-file-item a:after {
    display: none;
}

.vpfileupload-file-link {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.vpfileupload-file-item:hover {
    border-color: #eee;
    background-color: rgba(0, 0, 0, 0.03);
}

.vpfileupload-file-item a img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
}

.vpfileupload-file-item .vpfileupload-icon {
    font-size: 80px;
}

.vpfileupload-file-name,
.vpfileupload-file-size {
    font-size: 0.8em;
    opacity: 0.7;
    text-align: center;
    overflow-wrap: anywhere;
}

.vpfileupload-file-size {
    opacity: 0.5;
}

.vpfileupload-message {
    margin-bottom: 10px;
    animation: vpfileupload-fade-in 300ms;
}

.vpfileupload-progress-container {
    display: none;
    margin-bottom: 10px;
}

.vpfileupload-progress {
    display: flex;
    height: 16px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.vpfileupload-progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #0d6efd;
    transition: width 0.6s ease;
}

.vpfileupload-message-success {
    color: #4caf50;
}

.vpfileupload-message-error {
    color: #f44336;
}

.vpfileupload-message-warning {
    color: #ff9800;
}

.vpfileupload-cart-container,
.vpfileupload-order-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vpfileupload-cart-container .vpfileupload-file-item,
.vpfileupload-order-container .vpfileupload-file-item {
    width: 50px;
    padding: 2px;
}

.vpfileupload-cart-container .vpfileupload-file-item .vpfileupload-icon,
.vpfileupload-order-container .vpfileupload-file-item .vpfileupload-icon {
    font-size: 36px;
}

.vpfileupload-cart-container .vpfileupload-file-list,
.vpfileupload-order-container .vpfileupload-file-list {
    gap: 5px;
}
.attachmentfile_text_vis {
	display: flex;
	align-items: center;
}
.attachmentfile_text{
	position: relative;
	z-index: 9999;
	
}
.vpfileupload-file-list {
    justify-content: space-between;	
}
.is_admin.vpfileupload-file-list {
    flex-direction: column;
}
.vpfileupload-preview-list {
    animation: vpfileupload-fade-in 300ms;
}
.no_admin.vpfileupload-icon.vpfileupload-icon-application-pdf{
	font: normal normal normal 14px/1 FontAwesome !important;
    font-size: 14px;
	font-size: inherit;
	text-rendering: auto;
	
	margin-left: auto;
}
.no_admin.vpfileupload-icon.vpfileupload-icon-application-pdf::before{
	color: #ffffff;
    content: "\f019";
    font-size: 18px;
}
@keyframes vpfileupload-fade-in {
    from {
        opacity: 0;
	}
	
    to {
        opacity: 1;
	}
}