﻿/* Set this to 50% for a circle, 12px for rounded square, or 0 for square. */
.profile-upload.circle {
    --profile-image-radius: 50%;
}
.profile-upload.square {
    --profile-image-radius: 12px;
}
.profile-upload {
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color, #e4e6e8);
    border-radius: .75rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.profile-upload__preview {
    position: relative;
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
}

.profile-upload__image {
    display: block;
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: var(--profile-image-radius);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(34, 48, 62, .15);
    background: #fff;
}

.profile-upload__image.is-placeholder {
    object-fit: contain;
    padding: 18px;
}

.profile-upload__remove {
    position: absolute;
    top: -7px;
    inset-inline-end: -7px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #ea5455;
    box-shadow: 0 2px 8px rgba(34, 48, 62, .2);
    cursor: pointer;
}

.profile-upload__remove:hover {
    background: #d84343;
}

.profile-upload__remove i {
    font-size: 17px;
}

@media (max-width: 575.98px) {
    .profile-upload {
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1rem;
    }

    .profile-upload__preview, .profile-upload__image {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
    }
}
