.m-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    font-size: 16.5px;
    z-index: 10000;
}

.m-modal p, .m-modal span, .m-modal strong, .m-modal a {
	font-family: var(--font-primary);
}

.m-modal .m-modal-content a.m-copy {
	padding: 0.5rem 1rem;
    font-size: inherit;
}

.m-modal .m-modal-content .m-title {
	font-weight: 500;
    padding-left: 1rem;
}

.m-modal .m-modal-back {
	position: absolute;
    z-index: 10001;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 1;
    backdrop-filter: blur(5px);
}

.m-modal .m-modal-content {
	position: relative;
    z-index: 10002;
    box-sizing: content-box;
    text-align: center;
    overflow: hidden;
    min-width: 200px;
    max-width: 240px;
    opacity: .95;
    border-radius: 20px;
    border: 0;
    color: white;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 24px;
    transition: .5s box-shadow;
    font-size: 18px;
    box-shadow: inset 0px 0px 0px 2px rgb(255 255 255 / 10%);
    background: linear-gradient(45deg, rgb(0 0 0 / 25%), transparent, rgb(0 0 0 / 30%));
    color: white;
    backdrop-filter: blur(10px) contrast(0.5) saturate(2);
    filter: drop-shadow(0px 0px 20px rgb(255 255 255 / 25%));
	gap: 0.5rem;
	transition: all 0.2s ease;
}

.m-modal .m-modal-content .m-title,
.m-modal .m-modal-content a {
	color: white !important;
	text-align: left;
	filter: drop-shadow(0px 0px 4px rgb(0 0 0 / 50%));
	background: transparent !important;
}

.m-modal .m-modal-content .m-details,
.m-modal .m-modal-content a.m-by,
#m-yahoo, #m-outlook {
	display: none;
}

.m-modal .m-modal-content .w-500 {
	font-weight: 400;
}

.m-modal .m-modal-content a {
	padding: 0.5rem 1rem;
	border-radius: 12px;
}

.m-modal .m-modal-content a:hover {
	background-color: rgba(255, 255, 255, 0.1) !important;
	color: white;
	border-color: rgba(255, 255, 255, 0.05);
	transform: translateX(4px);
}

#m-title:before,
#m-gmail:before,
#m-outlook:before,
#m-yahoo:before,
#m-open:before,
#m-copy:before {
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
	display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    margin-right: 0.8rem;
	opacity: 0.7;
}

#m-gmail:before {
    content: "\f1a0";
    font-family: "Font Awesome 7 Brands";
    font-weight: 400;
}

#m-outlook:before {
    content: "\f3ca"; 
    font-family: "Font Awesome 7 Brands";
    font-weight: 400;
}

#m-yahoo:before {
    content: "\f19e";
    font-family: "Font Awesome 7 Brands";
    font-weight: 400;
}

#m-open:before {
    content: "\f0e0";
}

#m-copy:before {
    content: "\f0c5";
}

#m-title:before {
	content: "\2937";
    margin-right: 0.5rem;
    opacity: 1;
}

@keyframes mailgo-in {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.m-modal .m-modal-content {
  animation: mailgo-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.m-modal .m-modal-back::before {
  content: "\f00d";
  font-family: "Font Awesome 7 Pro";
  font-weight: 300;
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 10005;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.m-modal .m-modal-back::before:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
  backdrop-filter: blur(4px);
}

@media screen and (max-width: 500px) {
  .m-modal .m-modal-back::before {
    top: 20px;
    right: 20px;
    font-size: 24px;
  }
}