/* 공통 Modal fragment */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    overflow: auto;
}

.modal-overlay.is-open {
    display: flex;
}

body:has(.modal-overlay.is-open) {
    overflow: hidden;
}

.modal {
    width: 384px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.modal--signup-complete {
    width: 336px;
    height: 274px;
}

.modal__icon {
    width: 80px;
    height: 80px;
    font-size: 64px;
    line-height: 80px;
}

.modal__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    color: var(--color-black);
}

.modal__title {
    margin: 0;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.1px;
}

.modal__body {
    margin: 0;
    font-weight: 400;
    font-size: 15px;
    line-height: 23px;
}

.modal__body-line {
    display: block;
}

.modal__value {
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-primary);
    text-decoration: underline;
}
