:root {
    --clr-white: #ffffff;
    --clr-black: #000000;
    --clr-light: #f5f8ff;
    --clr-light-gray: #c4c3c4;
    --clr-blue: #3f86ff;
    --clr-light-blue: #abcaff;
    --clr-dark-gray: #333;
    --clr-gray: #777;
}

.cropbox-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.cropbox {
    background: var(--clr-white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.cropbox-header {
    display: flex;
    justify-content: flex-end;
}

.cropbox-body {
    margin: 20px 0;
}

.cropbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cropbox-footer label {
    margin-right: 10px;
}

.cropbox-footer label,
.cropbox-footer input[type="range"] {
    display: inline-block;
    vertical-align: middle;
}

.btn-close, .btn-save, .btn-change {
    background: var(--clr-blue) !important;
    color: var(--clr-white) !important;
    border: none !important;
    padding: 10px 14px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.2s ease !important;

}

.btn-close:hover, .btn-save:hover, .btn-change:hover {
    background: var(--clr-light-blue)!important;
    transform: scale(1.05)!important;
}

.btn-close {
    background: transparent;
    color: var(--clr-dark-gray);
    font-size: 20px;
    line-height: 1;
}

.btn-close:hover {
    color: var(--clr-gray);
}

.wc-dnd-file-upload label {
    margin-bottom: 0.5rem;
    display: block;
}

.wc-drag-n-drop-file.d-none {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
}

.wc-dnd-file-upload .dnd-upload-status {
    display: flex;
    padding: 4px 0;
    position: relative;
}

.wc-dnd-file-upload .dnd-upload-image {
    width: 40px;
    height: 40px;
    border: 1px solid var(--clr-light-gray);
    text-align: center;
    border-radius: 8px;
    position: relative;
}

.wc-dnd-file-upload .dnd-upload-image.has-bg {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border: none;
    transition: transform 0.3s ease;
    max-width: 40px;
    width: 100%;
}

.wc-dnd-file-upload .dnd-upload-image.has-bg:hover {
    transform: scale(1.5);
}

.wc-dnd-file-upload .dnd-upload-image span {
    font-size: 16px;
    color: var(--clr-dark-gray);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
}

.wc-dnd-file-upload .dnd-upload-image.no-thumbnail span {
    display: none;
}

.xdnd-upload-status .dnd-upload-image.no-bg .icon-images {
    display: none;
}

.wc-dnd-file-upload .dnd-upload-image.no-bg img {
    width: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wc-dnd-file-upload .codedropz--preview .dnd-upload-image {
    width: 100%;
}

.wc-dnd-file-upload .codedropz--results .dnd-upload-image {
    overflow: hidden;
}

.wc-dnd-file-upload .codedropz--results .dnd-upload-image.no-bg:not(.no-thumbnail) {
    border: none;
    transition: transform 0.3s ease-in-out;
}

.wc-dnd-file-upload .codedropz--results .dnd-upload-image.no-bg:hover:not(.no-thumbnail) {
    transform: scale(1.3);
}

.wc-dnd-file-upload .codedropz--results .dnd-upload-image.no-bg .preview {
    max-width: none;
    width: auto;
    height: 50px;
    background-size: cover;
    background-position: center;
}

.wc-dnd-file-upload .dnd-upload-details {
    padding-left: 10px;
    width: calc(100% - 40px);
}

.wc-dnd-file-upload .dnd-upload-details .name {
    color: var(--clr-blue);
    padding: 0 0 4px;
    padding-right: 25px;
    display: flex;
}

.wc-dnd-file-upload .dnd-upload-details .name span {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    padding-right: 10px;
}

.wc-dnd-file-upload .dnd-upload-details .name em {
    color: var(--clr-gray);
    font-weight: 700;
}

.wc-dnd-file-upload .remove-file {
    position: absolute;
    right: 0;
    top: 6px;
    text-decoration: none;
    box-shadow: none;
    outline: none;
    color: var(--clr-dark-gray);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wc-dnd-file-upload .remove-file:hover {
    color: var(--clr-gray);
}

.wc-dnd-file-upload .dnd-upload-details span.has-error {
    color: #f50505;
}

.wc-dnd-file-upload .dnd-progress-bar {
    display: block;
    border-radius: 5px;
    overflow: hidden;
    background: var(--clr-light-gray);
    height: 14px;
    margin-top: 5px;
}

.wc-dnd-file-upload .dnd-progress-bar span {
    background: var(--clr-blue);
    display: block;
    font-size: 11px;
    text-align: right;
    color: var(--clr-white);
    height: 100%;
    width: 0;
    line-height: 13px;
}

.wc-dnd-file-upload .dnd-progress-bar span.complete {
    width: 100% !important;
    padding-right: 5px;
}

.wc-dnd-file-upload .dnd-upload-counter {
    font-size: 12px;
}

.codedropz-upload-handler {
    width: 100%;
    background-color: var(--clr-white);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    margin: 0 0 0.5rem;
    text-align: center;
    padding: 0.5rem;
}

.wc-dnd-file-upload .codedropz-upload-inner {
    overflow: hidden;
    width: 100%;
    text-align: center;
    text-overflow: ellipsis;
    font-weight: inherit;
}

.wc-dnd-file-upload .cd-upload-btn {
    text-decoration: none;
    box-shadow: none;
    padding: 5px 10px;
    color: var(--clr-white);
    background-color: var(--clr-dark-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.wc-dnd-file-upload .cd-upload-btn:hover {
    background-color: var(--clr-gray);
    transform: scale(1.05);
}

.wc-dnd-file-upload .codedropz-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-family: GothamRounded-Medium;
}

.wc-dnd-file-upload .cd-separator {
    padding: 0 10px;
}

.wc-dnd-file-upload .cd-icon {
    font-size: 30px;
    padding-right: 15px;
}

.wc-dnd-file-upload .codedropz-dragover {
    border-color: var(--clr-dark-gray);
}

.wc-dnd-file-upload .has-error-msg {
    display: inline-block;
    color: #ff0000;
    padding: 5px 0;
    font-style: italic;
}

.wc-dnd-file-upload .codedropz--preview {
    display: block;
    align-items: center;
    align-self: center;
    align-content: center;
}

.wc-dnd-file-upload .codedropz--preview .dnd-upload-image.has-bg .preview {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 60px;
    height: 40px;
    border-radius: 10px;
}

/* Tooltip */
.wc-dnd-file-upload__tooltip {
    position: relative;
    color: var(--clr-light-blue);
    cursor: pointer;
    transition: color 300ms ease-in-out;
}

.wc-dnd-file-upload__tooltip:hover {
    color: var(--clr-blue);
}

.wc-dnd-file-upload__tooltip-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -125%);
    min-width: max-content;
    background-color: var(--clr-white);
    color: var(--clr-blue);
    border: 1px solid var(--clr-light-blue);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-in-out, visibility 300ms ease-in-out;
}

.wc-dnd-file-upload__tooltip:hover .wc-dnd-file-upload__tooltip-data {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsiveness */
@media screen and (max-width: 767px) {
    .dnd-upload-status .dnd-upload-details .name em {
        font-weight: normal;
    }

    .dnd-upload-status .dnd-upload-details .name {
        padding-right: 60px;
    }

    .codedropz-upload-inner .codedropz-label {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .codedropz-upload-inner .codedropz-label {
        font-size: 13px;
    }

    .codedropz-label .text,
    .codedropz-label .cd-separator,
    .codedropz-label .cd-icon {
        display: none;
    }

    .wc-dnd-file-upload__title {
        font-size: 16px;
        margin: 0;
        display: inline-flex;
        align-items: center;
    }

    .wc-dnd-file-upload__paragraph {
        font-size: 12px;
        
    }

    .wc-dnd-file-upload__header {
        display: inline-flex;
        align-items: center;
    }

    svg {
        width: 40px;
        margin: 0 10px 0 0;
    }
}
