﻿.foto-upload-wrap {
    display: inline-block;
}

.foto-upload {
    position: relative;
    width: 160px;
    height: 160px;
}

.foto-upload-label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.foto-upload__img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #ffffff;
}

.foto-upload__camera {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #168fd8;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    z-index: 5;
    pointer-events: none;
}

.foto-upload__camera-icon {
    width: 15px;
    height: 15px;
    fill: #ffffff;
}

.foto-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .foto-upload {
        width: 170px;
        height: 170px;
    }

    .foto-upload__camera {
        right: 6px;
        bottom: 6px;
        width: 30px;
        height: 30px;
    }

    .foto-upload__camera-icon {
        width: 12px;
        height: 12px;
    }
}
