.cf-modal { position: fixed; z-index: 9; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding: 1.6rem 1.6rem 28% 1.6rem; &__overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba($color: #000000, $alpha: 0.6); z-index: 8; } &__dialog { background-color: $color_bg; padding: 1.6rem; position: relative; max-width: 100%; width: 328px; z-index: 9; border-radius: 12px; } }