body.modal-open {
overflow: hidden;
position: relative;
width: 100%;
}
.modal {
display: none;
position: fixed;
inset: 0;
z-index: 10002;
background-color: rgba(0,0,0,0.5);
}
.modal.show {
display: flex;
align-items: center;
justify-content: center;
}
.modal-dialog {
width: 720px;
max-width: 100%;
margin: 0;
}
.modal-content {
background-color: var(--grey-100);
border-radius: 40px;
max-height: 80vh;
display: flex;
flex-direction: column;
overflow: hidden;
animation: fadeInUp 0.3s ease-out;
}
.modal-header {
position: relative;
padding: 20px 24px;
}
.modal-header .close {
position: absolute;
top: 10px;
left: 14px;
width: 44px;
height: 44px;
background: none;
border: none;
font-size: 32px;
color: var(--kokoa-600);
cursor: pointer;
border-radius: 25px;
display: flex;
align-items: center;
justify-content: center;
}
.modal-header .close:hover {
background-color: var(--beju-600);
}
.modal-header .close i {
font-size: 32px;
line-height: 1;
}
.modal-body {
padding: 30px 24px;
overflow-y: auto;
flex: 1;
}
.modal-list {
list-style: none;
margin: 0 0 40px 0;
padding: 0;
}
.modal-list li {
display: flex;
align-items: center;
padding: 0.75rem 0;
border-bottom: 1px solid #eee;
}
.modal-list li:last-child {
border-bottom: none;
}
.modal-list li i {
font-size: 24px;
margin-right: 16px;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 575px) {
.modal-dialog {
width: 100vw;
height: 100vh;
}
.modal-content {
width: 100%;
height: 100%;
max-height: 100vh;
border-radius: 0;
}
.modal-header {
position: fixed;
width: 100%;
height: 64px;
background-color: var(--grey-100);
display: flex;
}
.modal-body {
padding: 64px 24px;
}
}