.avatar-cropper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.avatar-cropper-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-cropper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .3s ease;
    background: rgba(0, 4, 50, 0.20);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}    

.avatar-cropper.avatar-cropper--open .avatar-cropper-overlay {
    opacity: 1;
}

 .avatar-cropper-block {
    width: 92%;
    max-width: 600px;
    top: -100px;
    opacity: 0;
    z-index: 1;
    position: relative;
    padding: clamp(20px, 3vw, 50px) clamp(20px, 3vw, 40px);
    overflow-y: auto;
    max-height: calc(100vh - 48px);
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0px 0px 1px 0px rgba(146, 146, 146, 0.50), -3px 4px 20px 0px rgba(144, 144, 144, 0.15);
 }

.avatar-cropper-header,
.avatar-cropper-footer,
.avatar-cropper-actions,
.avatar-cropper-stepper {
    display: flex;
    align-items: center;
}

.avatar-cropper-header {
    column-gap: 16px;
    row-gap: 4px;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.avatar-cropper-eyebrow {
    color: #878CA1;
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    margin-bottom: 4px;
}

.avatar-cropper-title {
    color: #878CA1;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.18px;
}

.avatar-cropper-label {
    color: #878CA1;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: 0.18px;
    width: 100%;
}

.avatar-cropper-range {
    flex: auto;
}

.avatar-cropper-name {
    color: #3949F5;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 135%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-cropper-icon[data-cropper-close] {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    fill: #1C1B1F;
    border-radius: 50%;
    background: none;
    border: none;
}

.avatar-cropper-icon[data-cropper-zoom-out],
.avatar-cropper-icon[data-cropper-zoom-in] {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DDDFE4;
    border-radius: 14px;
    background-color: #ffffff;
    color: #0A122F;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.avatar-cropper-stage {
    min-height: 440px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: #0A122F;
    touch-action: none;
    user-select: none;
    overscroll-behavior: contain;
}

.avatar-cropper-stage img {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    transform-origin: 0 0;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.avatar-cropper-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(72%, 420px);
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(10, 18, 47, .62);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.avatar-cropper-tools {
    display: flex;
    flex-wrap: wrap;
    row-gap: 4px;
    column-gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.avatar-cropper-tools label {
    display: grid;
    row-gap: 8px;
    color: #878CA1;
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
}

.avatar-cropper-tools input {
    width: 100%;
    accent-color: #3949F5;
    padding: 0;
    margin: 0;
    min-height: auto;
}

.avatar-cropper-stepper,
.avatar-cropper-actions {
    column-gap: 10px;
}

.avatar-cropper-footer {
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.avatar-cropper-footer .button {
    min-width: auto;
}

.avatar-cropper-actions {
    margin-left: auto;
}

@media (max-width: 520px) {
    .avatar-cropper-modal {
        align-items: end;
        padding: 0;
    }

    .avatar-cropper-dialog {
        width: 100%;
        max-height: 100svh;
        grid-template-rows: auto minmax(280px, 56svh) auto auto;
        border-radius: 20px 20px 0 0;
    }

    .avatar-cropper-stage {
        min-height: 280px;
    }

    .avatar-cropper-tools {
        grid-template-columns: 1fr;
    }

    .avatar-cropper-stepper .avatar-cropper-icon,
    .avatar-cropper-actions,
    .avatar-cropper-actions .button {
        flex: 1;
    }
}
